/* Custom song request UI for Radio «Забытая кассета» */
.custom-request-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 0;
}
.custom-request-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}
.custom-request-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.custom-request-head h2 { margin: 4px 0 8px; }
.custom-request-head p { margin: 0; color: #9fb2ba; max-width: 760px; }
.custom-request-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,20,28,.28);
}
.custom-request-search {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(73,199,189,.28);
  border-radius: 12px;
  padding: 0 14px;
  background: #0b202a;
  color: #f3e6c5;
  outline: none;
  font: inherit;
}
.custom-request-search:focus { border-color: #49c7bd; box-shadow: 0 0 0 3px rgba(73,199,189,.10); }
.custom-request-count { align-self: center; color: #8fa8b2; font-size: 13px; white-space: nowrap; }
.custom-request-content {
  min-height: 320px;
  overflow: auto;
  padding: 20px 28px;
}
.custom-track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.custom-track-card {
  min-width: 0;
  background: #102631;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.custom-track-card:hover {
  transform: translateY(-2px);
  border-color: rgba(73,199,189,.36);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.custom-track-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0b1d26;
  object-fit: cover;
  display: block;
}
.custom-track-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.custom-track-title {
  color: #f3e6c5;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}
.custom-track-artist {
  color: #91a9b2;
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.custom-track-order {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #2a9da0;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.custom-track-order:hover { filter: brightness(1.08); }
.custom-request-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9fb2ba;
  gap: 10px;
}
.custom-request-state i { font-size: 32px; color: #49c7bd; }
.custom-request-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.custom-request-pager button {
  border: 1px solid rgba(73,199,189,.30);
  border-radius: 10px;
  padding: 9px 15px;
  background: #102b35;
  color: #f3e6c5;
  cursor: pointer;
}
.custom-request-pager button:disabled { opacity: .38; cursor: default; }
.custom-request-page { color: #9fb2ba; min-width: 92px; text-align: center; font-size: 13px; }

/* Centered order form. It never appears somewhere lower in the catalog. */
.custom-order-layer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(1,10,15,.78);
  backdrop-filter: blur(5px);
}
.custom-order-layer.is-open { display: flex; }
.custom-order-card {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(73,199,189,.32);
  border-radius: 18px;
  background: #102631;
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  color: #f3e6c5;
  padding: 24px;
}
.custom-order-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.custom-order-thumb { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 12px; object-fit: cover; background: #0b1d26; }
.custom-order-track { min-width: 0; }
.custom-order-track small { display: block; color: #49c7bd; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 5px; }
.custom-order-track strong { display: block; font-size: 18px; line-height: 1.25; }
.custom-order-track span { display: block; color: #9fb2ba; margin-top: 4px; }
.custom-order-field { margin-top: 14px; }
.custom-order-field label { display: block; font-weight: 700; margin-bottom: 7px; }
.custom-order-field input,
.custom-order-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #31515d;
  border-radius: 11px;
  background: #0a1d26;
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}
.custom-order-field input:focus,
.custom-order-field textarea:focus { border-color: #49c7bd; box-shadow: 0 0 0 3px rgba(73,199,189,.10); }
.custom-order-field textarea { min-height: 108px; resize: vertical; }
.custom-order-counter { margin-top: 6px; text-align: right; color: #849ca6; font-size: 12px; }
.custom-order-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.custom-order-actions button { border: 0; border-radius: 10px; padding: 11px 17px; font-weight: 800; cursor: pointer; }
.custom-order-cancel { background: #203a45; color: #d8e1e4; }
.custom-order-submit { background: #2a9da0; color: #fff; }
.custom-order-submit:disabled { opacity: .55; cursor: wait; }
.custom-order-message { display: none; margin-top: 14px; border-radius: 10px; padding: 11px 12px; font-size: 14px; }
.custom-order-message.is-success { display: block; background: rgba(73,199,189,.12); color: #8ce5de; border: 1px solid rgba(73,199,189,.22); }
.custom-order-message.is-error { display: block; background: rgba(238,125,103,.12); color: #ffae9d; border: 1px solid rgba(238,125,103,.24); }

@media (max-width: 980px) {
  .custom-track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .custom-request-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .custom-request-shell { max-height: calc(100vh - 16px); }
  .custom-request-head { padding: 20px 18px 14px; }
  .custom-request-tools { grid-template-columns: 1fr; padding: 13px 18px; }
  .custom-request-count { display: none; }
  .custom-request-content { padding: 15px 18px; }
  .custom-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .custom-request-pager { padding: 12px 18px 16px; }
}
@media (max-width: 440px) {
  .custom-track-grid { grid-template-columns: 1fr 1fr; }
  .custom-track-body { padding: 9px 9px 11px; }
  .custom-track-title { font-size: 13px; }
  .custom-track-artist { font-size: 12px; }
  .custom-order-card { padding: 18px; }
}
