:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #607087;
  --line: #dce4ee;
  --surface: #fff;
  --surface-soft: #f7f9fc;
  --page: #f3f6fa;
  --navy: #062d63;
  --blue: #0a4b8e;
  --blue-soft: #eaf1fb;
  --red: #d3092f;
  --red-soft: #fff0f3;
  --gold: #b27b24;
  --gold-soft: #fff5df;
  --shadow: 0 20px 50px rgba(6, 45, 99, .1);
  --shadow-soft: 0 8px 24px rgba(6, 45, 99, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--navy); font-size: clamp(31px, 5vw, 49px); line-height: 1.08; letter-spacing: -.045em; }
h2 { color: #17365d; font-size: clamp(23px, 3vw, 28px); letter-spacing: -.025em; }
.eyebrow { margin-bottom: 7px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .095em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: linear-gradient(180deg, #0b559c, var(--blue)); border-color: var(--blue); box-shadow: 0 8px 18px rgba(10, 75, 142, .18); }
.button.secondary { color: var(--navy); background: #fff; border-color: #cbd6e3; }
.button:hover { filter: brightness(.97); }

.app-header { position: sticky; top: 0; z-index: 20; display: flex; min-height: 76px; align-items: center; gap: 22px; padding: 10px clamp(18px, 4vw, 52px); background: rgba(255, 255, 255, .95); border-bottom: 1px solid rgba(6, 45, 99, .11); box-shadow: 0 5px 22px rgba(6, 45, 99, .06); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 178px; height: 49px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.product-name { color: var(--navy); font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.main-nav { margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #53647a; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; }
.main-nav a.active, .main-nav a:hover { color: var(--navy); background: var(--blue-soft); }
.main-nav svg, .icon-button svg { width: 18px; height: 18px; }
.app-header form { margin: 0; padding-left: 16px; border-left: 1px solid var(--line); }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 9px; }
.icon-button:hover { color: var(--red); background: var(--red-soft); }
.page { width: min(1240px, calc(100% - 40px)); min-height: calc(100vh - 166px); margin: auto; padding: 34px 0 60px; }
.site-footer { display: flex; width: min(1240px, calc(100% - 40px)); min-height: 90px; align-items: center; justify-content: space-between; gap: 20px; margin: auto; color: #7a8798; border-top: 1px solid var(--line); font-size: 11px; }

.hero { position: relative; display: flex; min-height: 250px; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 26px; padding: clamp(30px, 5vw, 58px); overflow: hidden; color: #fff; background: linear-gradient(125deg, #052956 0%, #073a79 64%, #0b5298 100%); border-radius: 24px; box-shadow: 0 24px 60px rgba(6, 45, 99, .2); }
.hero::after { position: absolute; right: -60px; bottom: -110px; width: 330px; height: 330px; content: ""; border: 52px solid rgba(255, 255, 255, .055); border-radius: 50%; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 15px; color: #fff; }
.hero p:last-child { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 16px; }
.hero .eyebrow { color: #ffb7c4; }
.hero-stats { display: grid; min-width: 145px; justify-items: center; padding: 22px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; backdrop-filter: blur(10px); }
.hero-stats strong { font-size: 42px; line-height: 1; }
.hero-stats span { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 750; text-transform: uppercase; }

.global-search { position: relative; display: flex; max-width: 760px; min-height: 54px; align-items: center; gap: 12px; margin: -52px auto 42px; padding: 0 16px; z-index: 2; background: #fff; border: 1px solid #d5dfeb; border-radius: 14px; box-shadow: 0 14px 34px rgba(6, 45, 99, .14); }
.global-search svg, .search-field svg { flex: 0 0 auto; width: 21px; height: 21px; color: var(--blue); }
.global-search input { width: 100%; height: 52px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-clear { width: 30px; height: 30px; color: var(--muted); background: #f0f3f7; border: 0; border-radius: 50%; font-size: 19px; }
.section { margin-bottom: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.count-badge, .playback-only { display: inline-flex; min-height: 29px; align-items: center; padding: 5px 10px; color: var(--navy); background: var(--blue-soft); border: 1px solid #cbdcf1; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.sync-note, .result-summary { color: var(--muted); font-size: 12px; }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collection-card { --accent: var(--blue); position: relative; display: grid; min-height: 150px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px; overflow: hidden; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-soft); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.collection-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: var(--accent); }
.collection-card:hover { transform: translateY(-3px); border-color: #b9cbe0; box-shadow: 0 20px 42px rgba(6, 45, 99, .13); }
.collection-card.accent-red { --accent: var(--red); }
.collection-card.accent-gold { --accent: var(--gold); }
.collection-card.accent-slate { --accent: #58728f; }
.collection-icon { display: inline-grid; width: 58px; height: 58px; place-items: center; color: var(--accent); background: #eef3f9; border-radius: 15px; }
.collection-icon svg { width: 30px; height: 30px; }
.collection-copy { display: grid; gap: 5px; min-width: 0; }
.collection-copy strong { overflow: hidden; color: var(--navy); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.collection-copy > span { color: var(--muted); font-size: 13px; }
.collection-counts b { color: var(--ink); }
.card-arrow { color: var(--accent); font-size: 25px; transition: transform .18s ease; }
.collection-card:hover .card-arrow { transform: translateX(4px); }

.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-card { display: grid; height: 100%; min-width: 0; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.media-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(6, 45, 99, .12); }
.media-art { position: relative; display: grid; min-height: 158px; place-items: center; color: #fff; background: linear-gradient(145deg, #092f62, #0d66ac); }
.media-art.audio { background: linear-gradient(145deg, #6d4311, #c28a2d); }
.media-art > svg { width: 43px; height: 43px; opacity: .82; }
.play-mark { position: absolute; display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy); background: rgba(255, 255, 255, .94); border-radius: 50%; font-size: 12px; box-shadow: 0 6px 15px rgba(0, 0, 0, .18); }
.media-copy { display: grid; min-width: 0; align-content: center; gap: 7px; padding: 15px; }
.media-copy strong { display: -webkit-box; overflow: hidden; color: var(--navy); font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.media-copy > span:not(.media-badges), .media-copy time { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-badges { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.type-badge { padding: 3px 7px; color: var(--navy); background: var(--blue-soft); border-radius: 999px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.type-badge.audio { color: #765011; background: var(--gold-soft); }

.back-link { display: inline-flex; margin-bottom: 22px; color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.page-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 7px; }
.page-heading p:last-child, .player-heading p:last-child { margin: 0; color: var(--muted); }
.heading-icon { display: grid; flex: 0 0 auto; width: 65px; height: 65px; place-items: center; color: var(--red); background: var(--red-soft); border: 1px solid #f3c7d0; border-radius: 17px; }
.heading-icon svg { width: 33px; height: 33px; }
.type-tabs { display: flex; gap: 5px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.type-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: var(--muted); border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.type-tabs a:hover, .type-tabs a.active { color: var(--navy); background: var(--blue-soft); }
.type-tabs span { padding: 1px 6px; background: rgba(255, 255, 255, .7); border-radius: 999px; font-size: 9px; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 190px auto; align-items: end; gap: 11px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); }
.search-field { display: flex; min-height: 43px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid #cbd6e3; border-radius: 8px; }
.search-field input { width: 100%; height: 40px; border: 0; outline: 0; }
.select-field { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.select-field select { min-height: 43px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #cbd6e3; border-radius: 8px; }
.result-summary { padding: 16px 3px 10px; }
.result-summary strong { color: var(--ink); }

.player-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.player-heading h1 { max-width: 900px; font-size: clamp(28px, 4vw, 42px); }
.player-shell { position: relative; overflow: hidden; background: #06101d; border: 1px solid #172d47; border-radius: 17px; box-shadow: 0 24px 55px rgba(4, 22, 44, .24); }
.media-stage { position: relative; display: grid; min-height: min(68vh, 700px); place-items: center; background: #02070d; }
.player-shell.audio .media-stage { min-height: 390px; background: radial-gradient(circle at 50% 30%, #0c4a87, #051a33 55%, #020b16); }
.media-stage video { display: block; width: 100%; max-height: min(68vh, 700px); background: #000; }
.media-stage audio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.audio-art { display: grid; max-width: 660px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 40px; color: #fff; }
.audio-art > span { display: grid; width: 150px; height: 150px; place-items: center; background: linear-gradient(145deg, #b27b24, #70420d); border: 1px solid rgba(255, 255, 255, .24); border-radius: 30px; box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.audio-art svg { width: 70px; height: 70px; }
.audio-art small { color: #ffda96; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.audio-art strong { display: block; margin: 9px 0; font-size: clamp(22px, 4vw, 36px); line-height: 1.15; }
.audio-art p { margin: 0; color: rgba(255, 255, 255, .66); }
.center-play { position: absolute; display: grid; width: 76px; height: 76px; padding: 0; place-items: center; color: #fff; background: rgba(10, 75, 142, .9); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; box-shadow: 0 15px 35px rgba(0, 0, 0, .3); transition: transform .15s ease, opacity .15s ease; }
.center-play svg { grid-area: 1 / 1; width: 32px; height: 32px; stroke-width: 2.2; }
.center-play:hover { transform: scale(1.05); }
.center-play.playing { opacity: 0; pointer-events: none; }
.player-message { position: absolute; inset: auto 20px 20px; padding: 13px; color: #fff; background: rgba(160, 20, 40, .92); border-radius: 9px; text-align: center; }
.controls { padding: 15px 18px 17px; color: #fff; background: linear-gradient(180deg, #0b1d34, #071426); }
.timeline-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) 45px; align-items: center; gap: 10px; color: #aebed1; font-variant-numeric: tabular-nums; font-size: 11px; }
input[type="range"] { accent-color: #3b91dc; cursor: pointer; }
.timeline { width: 100%; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; }
.control-group { display: flex; align-items: center; gap: 7px; }
.control-button { display: grid; width: 40px; height: 40px; place-items: center; color: #e9f1fa; background: transparent; border: 0; border-radius: 9px; font-size: 18px; }
.control-button > svg { grid-area: 1 / 1; width: 23px; height: 23px; stroke-width: 2; }
.control-button:hover { background: rgba(255, 255, 255, .1); }
.main-play { color: #fff; background: var(--blue); }
.skip { position: relative; padding: 0; }
.skip .material-skip-icon { width: 27px; height: 27px; fill: currentColor; stroke: none; }
.volume-control { display: flex; align-items: center; }
.volume-control input { width: 85px; }
.speed-control { display: flex; align-items: center; gap: 7px; color: #aebed1; font-size: 10px; }
.speed-control select { height: 33px; padding: 0 7px; color: #fff; background: #132b48; border: 1px solid #294565; border-radius: 7px; }
.skip-feedback { position: absolute; top: 40%; left: 50%; z-index: 4; padding: 9px 14px; color: #fff; background: rgba(0, 0, 0, .72); border-radius: 999px; font-weight: 850; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); transition: opacity .15s ease, transform .15s ease; }
.skip-feedback.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.player-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.player-navigation a { display: grid; min-width: 0; gap: 4px; padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.player-navigation a.next { text-align: right; }
.player-navigation span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.player-navigation strong { overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-disclaimer { margin: 22px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.empty-state, .no-results, .error-page { padding: 55px 24px; text-align: center; background: #fff; border: 1px dashed #bdcad9; border-radius: 17px; }
.empty-state p, .no-results, .error-page > p:not(.eyebrow) { color: var(--muted); }
.error-page > span { display: grid; width: 60px; height: 60px; place-items: center; margin: 0 auto 18px; color: var(--red); background: var(--red-soft); border-radius: 50%; font-size: 27px; font-weight: 900; }
.alert { margin-bottom: 18px; padding: 13px 15px; color: #9f1530; background: var(--red-soft); border: 1px solid #f1c0ca; border-radius: 9px; font-size: 13px; }

.login-body { background: #e9eef5; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.login-shell { display: grid; width: min(1080px, 100%); min-height: 660px; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border-radius: 26px; box-shadow: 0 30px 90px rgba(6, 45, 99, .18); }
.login-visual { position: relative; display: grid; overflow: hidden; place-items: center; color: #fff; background: linear-gradient(145deg, #041f46, #07447f 65%, #0d64ab); }
.visual-rings span { position: absolute; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.visual-rings span:nth-child(1) { width: 480px; height: 480px; inset: -140px auto auto -180px; }
.visual-rings span:nth-child(2) { width: 330px; height: 330px; right: -130px; bottom: -80px; }
.visual-rings span:nth-child(3) { width: 180px; height: 180px; right: -50px; bottom: -10px; }
.visual-icon { position: relative; display: grid; width: 145px; height: 145px; place-items: center; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: 34px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); backdrop-filter: blur(8px); }
.visual-icon svg { width: 74px; height: 74px; }
.visual-copy { position: absolute; right: 48px; bottom: 48px; left: 48px; }
.visual-copy span { display: block; width: 35px; height: 3px; margin-bottom: 14px; background: #f04665; }
.visual-copy p { max-width: 390px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.login-panel { display: grid; place-items: center; padding: 55px; }
.login-card { width: min(390px, 100%); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 70px; }
.login-brand img { width: 190px; }
.login-brand span { padding-left: 13px; color: var(--navy); border-left: 1px solid var(--line); font-weight: 850; }
.login-heading h1 { margin-bottom: 12px; }
.login-heading > p:last-child { margin-bottom: 25px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 14px; color: var(--ink); font-size: 12px; font-weight: 800; }
.field input { min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #c8d4e2; border-radius: 9px; outline: 0; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 75, 142, .12); }
.login-card .button { width: 100%; }
.secure-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.secure-note span { color: #277849; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(10, 75, 142, .25); outline-offset: 2px; }

@media (max-width: 980px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: .85fr 1.15fr; }
  .login-panel { padding: 38px; }
}

@media (max-width: 720px) {
  .app-header { flex-wrap: wrap; gap: 10px; }
  .brand img { width: 128px; height: 38px; }
  .brand-divider, .product-name { display: none; }
  .main-nav { margin-left: auto; }
  .main-nav a { padding: 8px; }
  .main-nav a { font-size: 0; }
  .main-nav a svg { width: 20px; height: 20px; }
  .app-header form { padding-left: 8px; }
  .page { width: min(100% - 24px, 1240px); padding-top: 20px; }
  .site-footer { width: min(100% - 24px, 1240px); flex-direction: column; justify-content: center; text-align: center; }
  .hero { min-height: 285px; align-items: flex-start; flex-direction: column; padding: 30px; border-radius: 17px; }
  .hero-stats { display: flex; min-width: 0; align-items: baseline; gap: 7px; padding: 11px 15px; }
  .hero-stats strong { font-size: 25px; }
  .global-search { margin: -45px 12px 35px; }
  .collection-grid, .media-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 135px; padding: 20px; }
  .media-card { grid-template-columns: 100px minmax(0, 1fr); }
  .media-art { min-height: 145px; }
  .section-heading { align-items: flex-start; }
  .page-heading { align-items: flex-start; }
  .heading-icon { width: 52px; height: 52px; border-radius: 14px; }
  .heading-icon svg { width: 27px; }
  .filter-bar { grid-template-columns: 1fr; }
  .type-tabs { overflow-x: auto; }
  .player-heading { align-items: flex-start; flex-direction: column; }
  .media-stage { min-height: 260px; }
  .player-shell.audio .media-stage { min-height: 340px; }
  .audio-art { grid-template-columns: 1fr; justify-items: center; padding: 28px; text-align: center; }
  .audio-art > span { width: 105px; height: 105px; border-radius: 22px; }
  .audio-art svg { width: 52px; }
  .center-play { width: 62px; height: 62px; }
  .control-row { align-items: flex-start; }
  .control-group { flex-wrap: wrap; }
  .volume-control input { display: none; }
  .speed-control > span { display: none; }
  .controls { padding: 12px; }
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .login-visual { display: none; }
  .login-panel { padding: 30px 24px; }
  .login-brand { margin-bottom: 65px; }
}

@media (max-width: 430px) {
  .collection-card { grid-template-columns: auto minmax(0, 1fr); }
  .card-arrow { display: none; }
  .collection-icon { width: 48px; height: 48px; }
  .player-navigation { grid-template-columns: 1fr; }
  .control-button { width: 36px; }
  .speed-control select { width: 57px; }
}
