@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --blue: #2563eb;
  --orange: #fb923c;
  --yellow: #facc15;
  --red: #ef4444;
  --slate: #0f172a;
  --muted: #64748b;
  --border: #bae6fd;
  --soft: #f0f9ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: #1f2937;
  background: #f0f9ff;
  font-family: Nunito, Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg path[fill], .record-orb .icon svg { fill: currentColor; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, #38bdf8, #0ea5e9, #3b82f6); box-shadow: 0 14px 30px rgba(14, 116, 144, .22); }
.color-bar { height: 8px; }
.color-bar.warm { background: linear-gradient(90deg, #facc15, #fb923c, #ef4444); }
.color-bar.cool { height: 4px; background: linear-gradient(90deg, #7dd3fc, #60a5fa, #7dd3fc); }
.header-inner { max-width: 1280px; margin: auto; padding: 0 24px; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { height: 80px; width: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transition: transform .2s; }
.logo-link:hover .site-logo { transform: scale(1.04); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; color: #fff; font-weight: 900; background: transparent; transition: .2s; }
.nav-pill:hover { background: rgba(255,255,255,.22); transform: scale(1.04); }
.nav-pill.active { background: #fff; color: var(--sky-dark); box-shadow: 0 10px 20px rgba(0,0,0,.14); }
.mobile-menu-button { display: none; width: 52px; height: 52px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.22); font-size: 28px; }
.main-content { flex: 1; }

.page-sky { min-height: 100vh; padding: 22px 16px; background: linear-gradient(180deg, #bae6fd, #e0f2fe 45%, #fff); position: relative; overflow: hidden; }
.page-sky::before, .page-sky::after { content: ""; position: absolute; border-radius: 999px; filter: blur(42px); opacity: .45; pointer-events: none; }
.page-sky::before { width: 180px; height: 180px; background: #fde047; top: 90px; left: 40px; }
.page-sky::after { width: 210px; height: 210px; background: #fdba74; top: 260px; right: 35px; }
.container { max-width: 1024px; margin: 0 auto; position: relative; z-index: 1; }
.wide-container { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.page-title { text-align: center; margin-bottom: 40px; }
.title-pill { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border: 4px solid var(--border); border-radius: 999px; background: #fff; box-shadow: 0 18px 35px rgba(14,116,144,.16); margin-bottom: 12px; }
.title-pill h1 { margin: 0; color: var(--sky-dark); font-size: clamp(2rem, 4vw, 3rem); font-weight: 1000; letter-spacing: 0; }
.title-pill .icon { color: var(--orange); width: 40px; height: 40px; }
.page-title p { margin: 0; color: #0ea5e9; font-size: 1.25rem; font-weight: 800; }

.card { background: #fff; border: 4px solid var(--border); border-radius: 32px; box-shadow: 0 24px 50px rgba(14,116,144,.16); overflow: hidden; }
.stripe-warm { height: 16px; background: linear-gradient(90deg, #facc15, #fb923c, #ef4444); }
.stripe-cool { height: 16px; background: linear-gradient(90deg, #38bdf8, #2563eb, #38bdf8); }
.home-top-grid { display: grid; grid-template-columns: minmax(132px, 1.35fr) 6.65fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.home-top-grid.no-vote-cover { grid-template-columns: 1fr; }
.hero-slider { position: relative; overflow: hidden; }
.announcement-zone { min-width: 0; }
.slides { display: flex; transition: transform .7s ease; }
.slide { min-width: 100%; padding: 4px; }
.promo { border-radius: 32px; padding: 4px; background: linear-gradient(90deg, #fb923c, #facc15, #fb923c); box-shadow: 0 18px 35px rgba(251,146,60,.25); }
.promo-inner { min-height: clamp(132px, 13vw, 172px); border-radius: 24px; background: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 14px; text-align: left; }
.promo.orange .promo-inner { color: #fff; background: linear-gradient(135deg, #f97316, #ea580c); }
.promo img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 3px solid #fed7aa; }
.promo-symbol { width: 54px; height: 54px; display: grid; place-items: center; font-size: 36px; flex: 0 0 auto; }
.promo h3 { margin: 0; color: var(--sky-dark); font-size: 1.3rem; font-weight: 1000; }
.promo.orange h3, .promo.orange p, .promo.orange strong { color: #fff; }
.promo p { margin: 2px 0; color: #374151; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.promo-link { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.92); color: #ea580c; font-weight: 1000; box-shadow: 0 10px 20px rgba(0,0,0,.14); white-space: nowrap; }
.promo-link:hover { transform: scale(1.04); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; background: #bae6fd; }
.slider-dots button.active { background: #0ea5e9; transform: scale(1.15); }
.vote-cover-slider { position: relative; width: 100%; border-radius: 26px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 16px 34px rgba(14,116,144,.2); background: linear-gradient(135deg, #e0f2fe, #fff7ed); }
.vote-cover-stage { position: relative; width: 100%; aspect-ratio: 1; }
.vote-cover-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 2.6s ease; }
.vote-cover-stage img.is-active { opacity: 1; transform: scale(1); }
.vote-cover-shade { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; pointer-events: none; background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.16)); }
.vote-cover-button { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 8px 9px; background: linear-gradient(90deg, #ef4444, #fb923c, #facc15); color: #fff; font-size: clamp(.72rem, 1.25vw, .98rem); font-weight: 1000; text-align: center; text-shadow: 0 2px 7px rgba(0,0,0,.25); border-top: 3px solid #fff; box-shadow: 0 -8px 18px rgba(15,23,42,.16); transition: .2s; line-height: 1.08; white-space: normal; }
.vote-cover-label { display: block; width: 100%; max-width: 100%; overflow-wrap: normal; word-break: keep-all; }
.vote-cover-label strong { display: block; white-space: nowrap; font: inherit; }
.vote-cover-button:hover { filter: brightness(1.05); }

.player-card { position: relative; }
.player-body { padding: clamp(14px, 3vw, 24px); position: relative; }
.on-air { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--sky-dark); font-size: 1rem; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; }
.is-playing .live-dot { background: var(--red); animation: pulse 1.1s infinite; }
.player-grid { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 22px; align-items: center; }
.cover-wrap { width: min(190px, 42vw); aspect-ratio: 1; border-radius: 22px; padding: 5px; background: linear-gradient(90deg, #7dd3fc, #38bdf8); margin: auto; box-shadow: 0 14px 24px rgba(0,0,0,.14); }
.is-playing .cover-wrap { background: linear-gradient(90deg, #facc15, #fb923c, #ef4444); animation: pulseGlow 1.7s infinite; }
.cover-wrap img { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; background: #fff; }
.track-title { margin: 0 0 6px; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.05; font-weight: 1000; }
.track-artist { margin: 0 0 14px; color: var(--sky-dark); font-size: 1.08rem; font-weight: 900; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.play-button { position: relative; width: 66px; height: 66px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #22c55e, #14b8a6); box-shadow: 0 14px 26px rgba(34,197,94,.35); display: grid; place-items: center; transition: .2s; }
.play-button .icon { width: 30px; height: 30px; }
.is-playing .play-button { background: linear-gradient(135deg, #f87171, #f97316, #eab308); box-shadow: 0 18px 35px rgba(249,115,22,.35); }
.play-button:hover { transform: scale(1.05); }
.volume-box { flex: 1 1 220px; max-width: 340px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 16px; background: var(--soft); }
.volume-box button { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--sky-dark); box-shadow: 0 8px 15px rgba(0,0,0,.08); }
.volume-box input { flex: 1; accent-color: var(--orange); }
.volume-value { color: var(--sky-dark); font-weight: 1000; min-width: 48px; text-align: right; }
.player-help { color: #0ea5e9; font-weight: 800; margin-top: 10px; margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: #fff; border: 2px solid #fde68a; border-radius: 24px; padding: 24px; text-align: center; box-shadow: 0 12px 25px rgba(0,0,0,.08); transition: .2s; }
.feature:hover { transform: scale(1.04); }
.feature .bubble { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #facc15, #fb923c); }
.feature h3 { margin: 0; font-size: 1.1rem; font-weight: 1000; }
.feature p { margin: 4px 0 0; color: #0ea5e9; font-weight: 700; }

.selector-row, .filters { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.round-button { width: 48px; height: 48px; border-radius: 999px; background: #fff; color: var(--sky-dark); box-shadow: 0 10px 20px rgba(0,0,0,.1); font-weight: 1000; }
.day-pill, .filter-pill { padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--sky-dark); border: 2px solid var(--border); box-shadow: 0 8px 15px rgba(0,0,0,.07); font-weight: 900; }
.day-pill.active, .filter-pill.active { background: linear-gradient(90deg, #38bdf8, #2563eb); color: #fff; border-color: transparent; }
.search-box { max-width: 460px; margin: 0 auto 28px; position: relative; }
.search-box input { width: 100%; padding: 16px 22px 16px 52px; border: 3px solid var(--border); border-radius: 999px; background: #fff; box-shadow: 0 12px 25px rgba(0,0,0,.08); font-size: 1.05rem; font-weight: 800; outline: none; }
.search-box .icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: #38bdf8; }
.list-card { padding: 24px; }
.track-list, .schedule-list { display: grid; gap: 14px; max-height: 70vh; overflow: auto; }
.track-row, .schedule-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--soft); transition: .2s; }
.track-row:hover, .schedule-row:hover { background: #e0f2fe; transform: translateY(-1px); }
.track-row img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid var(--border); }
.track-row h3, .schedule-row h3 { margin: 0; font-size: 1.15rem; font-weight: 1000; }
.track-row p, .schedule-row p { margin: 2px 0 0; color: var(--sky-dark); font-weight: 800; }
.row-time { margin-left: auto; color: #0ea5e9; font-weight: 1000; white-space: nowrap; }
.preview-button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #14b8a6); color: #fff; font-size: .9rem; font-weight: 1000; box-shadow: 0 10px 18px rgba(20,184,166,.18); white-space: nowrap; transition: .2s; }
.preview-button .icon { width: 16px; height: 16px; }
.preview-button:hover { transform: scale(1.04); }
.preview-button.is-loading { background: #94a3b8; cursor: wait; }
.preview-button.is-playing { background: linear-gradient(90deg, #ef4444, #fb923c); }
.preview-button.is-missing { background: #cbd5e1; color: #475569; }
.empty-state { text-align: center; padding: 48px 20px; color: #0ea5e9; font-size: 1.15rem; font-weight: 800; }
.stats-pill { display: table; margin: 28px auto 0; padding: 12px 22px; background: #fff; border: 4px solid #fde047; border-radius: 999px; color: var(--sky-dark); font-weight: 1000; box-shadow: 0 14px 25px rgba(0,0,0,.09); }

.onair-card { margin-bottom: 28px; padding: 4px; border-radius: 32px; background: linear-gradient(90deg, #facc15, #fb923c, #ef4444); box-shadow: 0 16px 35px rgba(251,146,60,.26); }
.onair-inner { background: #fff; border-radius: 28px; padding: 28px; }
.onair-label { color: var(--red); font-weight: 1000; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.program-hero { display: flex; align-items: center; gap: 24px; }
.dj-avatar { width: 112px; height: 112px; border-radius: 22px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 14px 25px rgba(0,0,0,.18); }
.program-time { min-width: 118px; padding: 12px 16px; border-radius: 14px; background: #e0f2fe; color: var(--sky-dark); font-weight: 1000; text-align: center; }
.schedule-row.live { border: 4px solid var(--orange); box-shadow: 0 0 0 4px #fed7aa; }
.live-badge { margin-left: 10px; font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; animation: pulse 1.1s infinite; }

.dj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dj-card { padding: 28px; border-radius: 40px; background: #fff; border: 4px solid #e0f2fe; box-shadow: 0 24px 45px rgba(14,116,144,.15); text-align: center; transition: .25s; }
.dj-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.dj-photo-wrap { display: inline-block; padding: 6px; border-radius: 30px; margin-bottom: 18px; box-shadow: 0 18px 30px rgba(0,0,0,.16); }
.dj-card img { width: 160px; height: 160px; object-fit: cover; border: 4px solid #fff; border-radius: 26px; }
.dj-card h2 { margin: 0 0 10px; font-size: 1.8rem; font-weight: 1000; }
.dj-card p { color: var(--sky-dark); font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.soft-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--soft); color: var(--sky-dark); font-weight: 1000; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-card, .side-card { padding: 32px; }
.form-card label, .recorder-card label, .admin-form label { display: grid; gap: 8px; color: var(--sky-dark); font-weight: 1000; margin-bottom: 18px; }
.form-card input, .form-card textarea, .recorder-card input, .admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; border: 3px solid var(--border); background: var(--soft); border-radius: 18px; padding: 14px 18px; outline: none; font-weight: 800;
}
.form-card textarea, .admin-form textarea { resize: vertical; min-height: 130px; }
.primary-button, .success-button, .footer-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 18px; color: #fff; font-weight: 1000; background: linear-gradient(90deg, #fb923c, #facc15); box-shadow: 0 14px 25px rgba(251,146,60,.22);
}
.success-button { background: #22c55e; }
.outline-button { border: 2px solid #fecaca; color: var(--red); background: #fff; border-radius: 18px; padding: 12px 18px; font-weight: 1000; }
.button-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.notice { padding: 18px; border-radius: 22px; margin-bottom: 22px; font-weight: 900; }
.notice.success { background: #dcfce7; color: #166534; }
.notice.error { background: #fee2e2; color: #991b1b; }
.mascot-card img { width: 144px; height: 144px; border-radius: 20px; object-fit: cover; border: 4px solid #facc15; box-shadow: 0 14px 25px rgba(0,0,0,.12); }
.iframe-card { height: 800px; position: relative; }
.iframe-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.request-browser { padding: 30px; overflow: hidden; }
.request-search { padding: 24px; margin-bottom: 22px; border: 3px solid var(--border); border-radius: 24px; background: var(--soft); }
.request-search label { display: block; margin-bottom: 10px; color: var(--sky-dark); font-size: 1.15rem; font-weight: 1000; }
.request-search-row { display: flex; gap: 12px; }
.request-search input { flex: 1; min-width: 0; border: 3px solid #bae6fd; border-radius: 18px; padding: 14px 18px; background: #fff; color: #334155; font-size: 1rem; font-weight: 800; outline: none; }
.request-search input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56,189,248,.16); }
.request-feedback { margin: 0 4px 16px; color: #64748b; font-weight: 900; }
.request-song-list { display: grid; border: 2px solid var(--border); border-radius: 22px; overflow: hidden; }
.request-song { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #e0f2fe; }
.request-song:last-child { border-bottom: 0; }
.request-song:nth-child(even) { background: #f8fdff; }
.request-song:hover { background: #fff7ed; }
.request-song div { min-width: 0; }
.request-song strong, .request-song span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-song strong { color: var(--sky-dark); font-size: 1rem; }
.request-song span { margin-top: 3px; color: #475569; font-weight: 800; }
.request-song time { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #e0f2fe; color: var(--sky-dark); font-size: .85rem; font-weight: 1000; }
.request-browser.is-loading .request-song-list { opacity: .55; }
.request-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.request-pagination span { color: var(--sky-dark); font-weight: 1000; }
.request-pagination button:disabled { cursor: not-allowed; opacity: .4; }

@media (max-width: 600px) {
  .request-browser { padding: 18px; }
  .request-search { padding: 18px; }
  .request-search-row { flex-direction: column; }
  .request-search-row .primary-button { width: 100%; }
  .request-pagination { gap: 8px; }
  .request-pagination .outline-button { padding: 10px 12px; }
}

.site-footer { background: linear-gradient(180deg, #0ea5e9, #2563eb); color: #fff; overflow: hidden; padding: 48px 16px 28px; }
.footer-inner { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 80px; width: auto; }
.footer-brand p { color: #dbeafe; font-size: 1.1rem; font-weight: 700; max-width: 480px; }
.footer-badge { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 1000; }
.site-footer h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #dbeafe; font-weight: 800; }
.footer-links a:hover { color: #fde047; }
.footer-mail { color: #dbeafe; font-weight: 900; }
.footer-button { border-radius: 999px; }
.footer-bottom { max-width: 1180px; margin: 34px auto 0; border-top: 2px solid rgba(255,255,255,.22); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #dbeafe; font-weight: 800; }
.license-logos { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 22px; }
.license-logos img { height: 38px; width: auto; opacity: .85; }
.license-text { text-align: center; color: #bfdbfe; font-size: .8rem; margin: 12px 0 0; }

.bottom-nav { display: none; position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; height: 64px; background: #fff; border-top: 4px solid var(--sky); box-shadow: 0 -8px 20px rgba(0,0,0,.12); }
.bottom-nav a { flex: 1; display: grid; place-items: center; align-content: center; color: #64748b; font-size: .7rem; font-weight: 1000; text-transform: uppercase; }
.bottom-nav a.active { color: var(--sky-dark); }
.bottom-nav .icon { width: 24px; height: 24px; }
.voice-fab { position: fixed; z-index: 48; right: 24px; bottom: 24px; width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #fb923c, #ef4444); border: 4px solid #fff; box-shadow: 0 18px 35px rgba(0,0,0,.22); transition: .2s; }
.voice-fab:hover { transform: scale(1.08); }
.voice-fab .icon { width: 32px; height: 32px; }
.mini-player { position: fixed; z-index: 44; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 48px)); background: #fff; border: 3px solid var(--border); border-radius: 22px; box-shadow: 0 18px 40px rgba(15,23,42,.2); padding: 10px; display: flex; align-items: center; gap: 10px; }
.mini-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; background: transparent; text-align: left; }
.mini-info img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 2px solid var(--border); flex: 0 0 auto; }
.mini-info strong, .mini-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-info small { color: var(--sky-dark); }
.mini-play, .mini-mute { width: 42px; height: 42px; border-radius: 999px; color: #fff; background: var(--red); display: grid; place-items: center; flex: 0 0 auto; }
.mini-mute { color: var(--sky-dark); background: #e0f2fe; }
@media (min-width: 721px) {
  .mini-player .mini-mute { display: none; }
  body.player-playing .voice-fab { bottom: 112px; }
}

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); }
.recorder-card { width: min(460px, 100%); background: #fff; border: 4px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.recorder-card header { padding: 16px 20px; background: var(--soft); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e0f2fe; }
.recorder-card h2 { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--sky-dark); font-size: 1.25rem; font-weight: 1000; }
.recorder-card header button { width: 38px; height: 38px; border-radius: 999px; background: transparent; color: #64748b; font-size: 30px; line-height: 1; }
.recorder-body { padding: 28px; text-align: center; }
.record-orb { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 999px; display: grid; place-items: center; background: #e0f2fe; color: var(--sky-dark); }
.record-orb.recording { background: var(--red); color: #fff; animation: pulse 1s infinite; }
.record-orb .icon { width: 46px; height: 46px; }
.recorder-card footer { background: var(--soft); color: #38bdf8; text-align: center; padding: 14px; font-size: .8rem; font-weight: 800; }
.recorder-error { background: #fee2e2; color: #991b1b; padding: 12px; border-radius: 14px; margin-bottom: 16px; font-weight: 900; }

.admin-shell { min-height: 100vh; display: flex; background: #f1f5f9; }
.admin-sidebar { width: 260px; background: #0f172a; color: #cbd5e1; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 1000; padding-bottom: 22px; border-bottom: 1px solid #334155; }
.admin-nav { display: grid; gap: 8px; margin-top: 20px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.admin-nav a.active, .admin-nav a:hover { background: #0ea5e9; color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { height: 68px; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.admin-content { padding: 28px; }
.admin-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 1px 6px rgba(15,23,42,.05); margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.admin-action { text-align: left; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 1px 6px rgba(15,23,42,.05); display: block; }
.admin-action strong { display: block; color: #0f172a; margin-bottom: 4px; }
.admin-action span { color: #64748b; font-size: .9rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.admin-table th { background: #f8fafc; color: #475569; font-size: .9rem; }
.admin-table img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tiny-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; color: #475569; font-weight: 800; }
.tiny-button.danger { color: #dc2626; background: #fef2f2; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a); }
.login-card { width: min(440px, 100%); color: #fff; }
.login-card h1 { text-align: center; }
.login-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 28px; padding: 28px; backdrop-filter: blur(14px); }
.login-panel label { display: grid; gap: 8px; color: #bfdbfe; font-weight: 800; margin-bottom: 18px; }
.login-panel input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; outline: none; }
.login-panel button { width: 100%; padding: 14px 16px; border-radius: 14px; color: #fff; background: linear-gradient(90deg, #0ea5e9, #2563eb); font-weight: 1000; }
.admin-color-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-color-grid label { margin-bottom: 0; }
.admin-color-grid input[type="color"] { height: 46px; padding: 4px; }

@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 12px rgba(251,146,60,.15); } }

@media (max-width: 1040px) {
  .mobile-menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 18px; background: rgba(14,165,233,.98); border-top: 2px solid rgba(255,255,255,.2); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-pill { justify-content: flex-start; padding: 16px 22px; border-radius: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-grid, .dj-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-shell { display: block; }
  .admin-sidebar { width: auto; height: auto; position: static; }
}
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .header-inner { min-height: 76px; padding: 0 16px; }
  .site-logo { height: 66px; }
  .page-sky { padding: 24px 12px; }
  .home-top-grid { grid-template-columns: minmax(108px, 1.45fr) 6.55fr; gap: 10px; }
  .home-top-grid.no-vote-cover { grid-template-columns: 1fr; }
  .vote-cover-slider { border-width: 4px; border-radius: 22px; }
  .vote-cover-stage img { padding: 6px; }
  .vote-cover-button { min-height: 40px; padding: 7px 5px 8px; font-size: .68rem; border-top-width: 3px; }
  .promo-inner, .program-hero, .track-row, .schedule-row { text-align: center; flex-direction: column; }
  .home-top-grid .promo-inner { min-height: 126px; padding: 12px 10px; gap: 6px; }
  .home-top-grid .promo img, .home-top-grid .promo-symbol { width: 42px; height: 42px; font-size: 30px; }
  .home-top-grid .promo h3 { font-size: 1.2rem; }
  .home-top-grid .promo p { font-size: .92rem; line-height: 1.25; }
  .home-top-grid .promo strong { font-size: .86rem; line-height: 1.2; }
  .home-top-grid .promo-link { margin-left: 0; padding: 8px 12px; font-size: .82rem; }
  .player-grid { grid-template-columns: 118px 1fr; gap: 12px; }
  .cover-wrap { width: 112px; border-radius: 18px; padding: 4px; }
  .cover-wrap img { border-radius: 14px; }
  .on-air { font-size: .84rem; margin-bottom: 10px; gap: 7px; }
  .track-title { font-size: 1.22rem; margin-bottom: 4px; }
  .track-artist { font-size: .92rem; margin-bottom: 10px; }
  .play-button { width: 54px; height: 54px; }
  .play-button .icon { width: 24px; height: 24px; }
  .volume-box { flex-basis: 100%; padding: 8px 10px; }
  .volume-box button { width: 32px; height: 32px; }
  .player-help { display: none; }
  .row-time { margin-left: 0; }
  .bottom-nav { display: flex; }
  .voice-fab { bottom: 82px; right: 18px; }
  body.player-playing .voice-fab { bottom: 152px; }
  .mini-player { left: 0; right: 0; bottom: 64px; width: auto; border: 0; border-top: 4px solid var(--sky); border-radius: 0; box-shadow: 0 -8px 20px rgba(0,0,0,.12); padding: 10px 16px; justify-content: center; gap: 18px; }
  .mini-info { max-width: 620px; }
  .mini-info img { width: 48px; height: 48px; border-radius: 10px; }
  .site-footer { padding-bottom: 86px; }
  .footer-bottom { display: grid; text-align: center; justify-content: center; }
}
