@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --white: #fff;
    --paper: #f3f3f3;
    --ink: #1a1a1a;
    --muted: #707070;
    --line: #d6d6d6;
    --blue: #002f87;
    --cyan: #b3daf2;
    --azure: #d5edfb;
    --orange: #ffcb8b;
    --red: #f62660;
    --shadow: 0 4px 12px rgba(0, 47, 135, .08);
    --shadow-up: 0 -8px 30px rgba(0, 25, 72, .18);
    --radius: 6px;
    --radius-md: 10px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    padding-bottom: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Satoshi", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.25;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 47, 135, .28); outline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 42px; }
.site-header {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 22px; color: var(--ink); text-decoration: none; font-weight: 500; }
.brand img { width: 220px; height: auto; }
.brand span { padding-left: 22px; border-left: 1px solid var(--line); font-size: 16px; }
.install-button, .notification-button, .primary-action, .ghost-button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.install-button, .notification-button { background: var(--white); border-color: var(--white); box-shadow: var(--shadow); }
.notification-button.enabled { color: var(--white); background: var(--blue); border-color: var(--blue); }
.install-button:hover, .notification-button:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.install-button svg, .notification-button svg, .primary-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-action { min-width: 250px; border-radius: 30px; background: var(--blue); color: var(--white); }
.primary-action svg { fill: currentColor; stroke: none; }
.primary-action:hover { background: var(--ink); transform: translateY(-1px); }
.ghost-button { background: var(--white); border-color: var(--line); color: var(--ink); }
.ghost-button:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.hero {
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(360px, 45%);
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}
.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(52px, 7vw, 104px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 98px;
    opacity: .08;
    background: url("../img/bg-footer.svg") center bottom / cover no-repeat;
    pointer-events: none;
}
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; color: var(--blue); font-size: clamp(44px, 5.4vw, 76px); line-height: .98; letter-spacing: -.045em; }
.hero-text { max-width: 640px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; }
.hero-visual { min-width: 0; min-height: 540px; margin: 0; position: relative; overflow: hidden; background: var(--azure); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0, 47, 135, .82)); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 36px; color: var(--white); }
.hero-kicker { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hero-visual strong { display: block; max-width: 360px; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.hero-wave { height: 32px; margin-top: 20px; display: flex; align-items: center; gap: 6px; }
.hero-wave i { width: 3px; height: 12px; border-radius: 3px; background: var(--white); animation: wave 1.1s ease-in-out infinite alternate; }
.hero-wave i:nth-child(2), .hero-wave i:nth-child(4) { height: 25px; animation-delay: -.4s; }
.hero-wave i:nth-child(3) { height: 32px; animation-delay: -.7s; }
@keyframes wave { to { transform: scaleY(.4); opacity: .55; } }

.notice { margin: 24px 0; padding: 16px 18px; border-radius: var(--radius); }
.notice-error { color: #86122f; background: #fff3f7; border: 1px solid rgba(246, 38, 96, .28); }
.video-section { margin-top: 40px; position: relative; overflow: hidden; background: #000; border-radius: var(--radius-md); box-shadow: var(--shadow); }
.video-section .section-heading { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--white); }
.video-section h2 { margin: 0; color: var(--blue); font-size: 24px; }
.video-section video { display: block; width: 100%; max-height: min(68vh, 720px); object-fit: contain; background: #000; }
.audio-cover { display: none; min-height: 420px; padding: 56px 24px; color: var(--blue); background: linear-gradient(135deg, var(--white), var(--azure)); text-align: center; }
.video-section.audio-only .audio-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.video-section audio { display: none; }
.video-section.audio-only video, .video-section.audio-only audio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.audio-cover img { width: min(230px, 70%); margin-bottom: 34px; }
.audio-cover > span { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.audio-cover strong { max-width: 720px; font-size: clamp(28px, 4vw, 50px); line-height: 1.05; }
.audio-wave { height: 46px; margin-top: 30px; display: flex; align-items: center; gap: 7px; }
.audio-wave i { width: 4px; height: 18px; border-radius: 4px; background: var(--blue); animation: wave 1.1s ease-in-out infinite alternate; }
.audio-wave i:nth-child(2), .audio-wave i:nth-child(6) { height: 30px; animation-delay: -.35s; }
.audio-wave i:nth-child(3), .audio-wave i:nth-child(5) { height: 40px; animation-delay: -.65s; }
.audio-wave i:nth-child(4) { height: 46px; animation-delay: -.9s; }

.library { padding: 86px 0 64px; }
.library-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.library h2 { margin: 0; color: var(--blue); font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.035em; }
.search-box { width: min(440px, 100%); min-height: 50px; padding: 0 16px; display: flex; align-items: center; gap: 11px; background: var(--white); border: 1px solid var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--blue); }
.search-box svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #858585; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.filter-chip { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 500; }
.results-line { min-height: 50px; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.podcast-list { display: flex; flex-direction: column; gap: 8px; }
.podcast-card {
    min-height: 86px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) minmax(120px, auto) 50px;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .04);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.podcast-card:hover { border-color: var(--cyan); transform: translateX(3px); box-shadow: var(--shadow); }
.podcast-card.active { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue), var(--shadow); }
.episode-cover { width: 58px; height: 58px; display: block; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.podcast-card.active .episode-cover { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 47, 135, .12); }
.episode-copy { min-width: 0; }
.episode-copy strong { display: block; color: var(--ink); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-copy p { margin: 5px 0 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-labels { max-width: 360px; display: flex; justify-content: flex-end; gap: 6px; overflow: hidden; }
.episode-label { flex: 0 0 auto; padding: 5px 9px; color: var(--blue); border: 1px solid var(--cyan); border-radius: 3px; font-size: 11px; text-transform: uppercase; }
.episode-play { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); transition: background .2s, transform .2s; }
.episode-play:hover { background: var(--ink); transform: scale(1.05); }
.episode-play svg { width: 18px; height: 18px; fill: currentColor; }
.empty-state { padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; background: var(--white); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 5px; color: var(--blue); }

.site-footer { min-height: 150px; width: 100%; margin: 0; padding: 48px clamp(14px, 3vw, 42px); display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; color: var(--blue); background: var(--white); }
form:has(.player-bar:not([hidden])) .site-footer { padding-bottom: 148px; }
.site-footer > div { display: flex; align-items: center; gap: 18px; }
.site-footer img { width: 190px; }
.site-footer span { padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }

.player-bar {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100px;
    padding: 12px clamp(18px, 3vw, 44px) max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.4fr) minmax(170px, 1fr);
    align-items: center;
    gap: 24px;
    color: var(--white);
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow-up);
}
.player-track { min-width: 0; display: flex; align-items: center; gap: 13px; }
.cover-button { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; position: relative; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--white); }
.cover-button img { width: 100%; height: 100%; object-fit: cover; }
.playing-bars { position: absolute; right: 5px; bottom: 5px; height: 20px; padding: 4px; display: none; align-items: end; gap: 2px; border-radius: 3px; background: rgba(0, 47, 135, .88); }
.player-bar.is-playing .playing-bars { display: flex; }
.playing-bars i { width: 2px; height: 9px; background: var(--white); animation: bars .65s ease-in-out infinite alternate; }
.playing-bars i:nth-child(2) { height: 13px; animation-delay: -.3s; }
.playing-bars i:nth-child(3) { height: 7px; animation-delay: -.5s; }
@keyframes bars { to { height: 4px; } }
.track-copy { min-width: 0; }
.track-copy strong, .track-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-copy strong { font-size: 15px; }
.track-copy span { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 12px; }
.player-center { min-width: 0; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 7px; }
.player-controls button, .player-extra button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--white); }
.player-controls button:hover, .player-extra button:hover { background: rgba(255,255,255,.14); }
.player-controls svg, .player-extra svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-controls .play-button { width: 46px; height: 46px; color: var(--blue); background: var(--white); }
.player-controls .play-button:hover { color: var(--white); background: var(--ink); }
.play-button svg { fill: currentColor; stroke: none; }
.icon-pause { display: none; }
.player-bar.is-playing .icon-play { display: none; }
.player-bar.is-playing .icon-pause { display: block; }
.skip-button { position: relative; }
.skip-button span { position: absolute; top: 50%; left: 50%; width: 16px; line-height: 1; font-size: 8px; font-weight: 700; text-align: center; pointer-events: none; transform: translate(-50%, -50%) translateY(-1px); }
.timeline { margin-top: 5px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline span:last-child { text-align: right; }
input[type="range"] { accent-color: var(--white); cursor: pointer; }
.timeline input { width: 100%; height: 3px; }
.player-extra { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.player-extra input { width: min(100px, 40%); }

@media (max-width: 980px) {
    body { padding-bottom: 0; }
    .app-shell { padding: 0 24px; }
    .site-header { min-height: 104px; }
    .hero { min-height: 0; grid-template-columns: 1fr; }
    .hero-copy { padding: 56px 44px; }
    .hero-visual { min-height: 340px; }
    .player-bar { grid-template-columns: 1fr auto; gap: 8px; }
    .player-center { grid-column: 1 / -1; grid-row: 2; }
    .player-extra { display: none; }
    .episode-labels { display: none; }
    .podcast-card { grid-template-columns: 64px minmax(0, 1fr) 46px; }
    form:has(.player-bar:not([hidden])) .site-footer { padding-bottom: 178px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 0; }
    .app-shell { padding: 0 14px; }
    .site-header { min-height: 86px; }
    .brand img { width: 160px; }
    .brand span { display: none; }
    .install-button, .notification-button { width: 44px; height: 44px; min-height: 44px; padding: 0; }
    .install-button span, .notification-button span { display: none; }
    .hero { border-radius: var(--radius); }
    .hero-copy { padding: 42px 24px 48px; }
    .hero h1 { font-size: clamp(40px, 13vw, 58px); }
    .hero-text { margin-block: 22px 28px; font-size: 16px; }
    .primary-action { width: 100%; min-width: 0; }
    .hero-visual { min-height: 260px; }
    .hero-visual figcaption { left: 24px; right: 24px; bottom: 22px; }
    .library { padding-top: 58px; }
    .library-toolbar { align-items: stretch; flex-direction: column; gap: 22px; }
    .search-box { width: 100%; }
    .filter-chips { margin-top: 24px; }
    .podcast-card { min-height: 74px; padding: 11px 10px; grid-template-columns: 52px minmax(0, 1fr) 46px; gap: 10px; }
    .episode-cover { width: 48px; height: 48px; }
    .episode-copy strong { font-size: 15px; }
    .episode-copy p { max-width: 55vw; }
    .video-section .section-heading { padding: 16px; }
    .video-section .section-heading .eyebrow { display: none; }
    .video-section h2 { font-size: 16px; }
    .audio-cover { min-height: 280px; padding: 40px 20px; }
    .audio-cover img { margin-bottom: 24px; }
    .ghost-button { min-height: 40px; padding: 0 13px; font-size: 12px; }
    .site-footer { min-height: 180px; padding: 40px 14px; flex-direction: column; gap: 20px; }
    .site-footer > div { align-items: flex-start; flex-direction: column; gap: 10px; }
    .site-footer span { padding-left: 0; border-left: 0; }
    .player-bar { padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
    .cover-button { width: 48px; height: 48px; }
    .player-controls { gap: 1px; }
    .player-controls button { width: 36px; height: 36px; }
    .player-controls .play-button { width: 42px; height: 42px; }
    .timeline { grid-template-columns: 34px 1fr 34px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}