/* =====================================================================
   GLOBAL VARIABLES & BASE STYLES
   ===================================================================== */
:root {
    --beer-amber: #c55a11;
    --beer-gold: #f5a623;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e8e8e8;
    --dark-gray: #333333;
    --text-dark: #2c2c2c;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #070707;
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

/* =====================================================================
   HERO BANNER & LOGO
   ===================================================================== */
.hero-banner {
    background: linear-gradient(180deg, var(--beer-amber) 0%, #161212 50%, #050505 100%);
    padding: 3rem 2rem 2rem;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 100;
}

@keyframes slideDownHeader {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* 
   SCROLLED STATE (STICKY HEADER)
   These rules kick in when JS applies the .scrolled class.
   It transforms the massive hero banner into a sleek top navigation bar.
*/
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    opacity: 0;
    z-index: 0;
}

.hero-banner.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    min-height: 80px;
    max-height: 110px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: slideDownHeader 0.35s ease forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.hero-banner.scrolled::before {
    opacity: 1;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-banner.scrolled .hero-top {
    display: none;
}

.logo-panel {
    flex: 0 0 220px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-banner.scrolled .logo-panel {
    display: none;
}

#main-logo {
    width: 100%;
    display: block;
    border-radius: 18px;
}

.hero-banner.scrolled #main-logo {
    border-radius: 8px;
}

.listen-on {
    margin: 2rem auto 0;
    text-align: center;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-banner.scrolled .listen-on {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.hero-banner.scrolled .listen-on p {
    margin: 0;
}

.listen-on p {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.listen-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.hero-banner.scrolled .listen-icons {
    flex-wrap: nowrap;
    gap: 0.4rem;
}

.hero-banner.scrolled .listen-icons a {
    width: 30px;
    height: 30px;
}

.listen-icons a {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff; /* Provides a clean backdrop if icons are transparent */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listen-icons a:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.listen-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-copy {
    flex: 1 1 460px;
    min-width: 280px;
}

.eyebrow {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    opacity: 1;
}

.hero-banner.scrolled .hero-copy {
    display: none;
}

.hero-copy h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.4rem, 2.8vw, 2.8rem);
    line-height: 1.02;
    white-space: nowrap;
}

.hero-description {
    max-width: 680px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    opacity: 1;
}

/* =====================================================================
   NAVIGATION & TRAILER
   ===================================================================== */
.hero-nav {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 2rem auto 0;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-banner.scrolled .hero-nav {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.hero-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-banner.scrolled .hero-nav a {
    background: var(--beer-amber);
    border-color: var(--beer-amber);
}

.hero-banner.scrolled .hero-nav a:hover {
    background: #9e460e;
    border-color: #9e460e;
}

#mobile-trailer-container {
    display: none;
}

#mini-trailer-container {
    display: none;
}

.hero-banner.scrolled #mini-trailer-container {
    display: block;
}

.mini-trailer-card {
    display: flex;
    align-items: center;
    background: var(--dark-gray);
    border-radius: 999px;
    padding: 0.3rem 1.5rem 0.3rem 0.3rem;
    gap: 0.75rem;
}

.mini-trailer-card .card-play {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
    box-shadow: none;
    margin: 0;
}

.mini-trailer-card .card-play:hover {
    transform: scale(1.03);
}

.mini-trailer-card span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* =====================================================================
   MAIN CONTENT & EPISODE CARDS
   ===================================================================== */
#app-content {
    max-width: 1264px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    width: 100%;
}

/* =====================================================================
   SITE FOOTER
   ===================================================================== */
.site-footer {
    text-align: center;
    padding: 1rem 2rem;
    color: #b3b3b3;
    font-size: 0.75rem;
    font-style: italic;
    width: 100%;
    z-index: 1;
    position: relative;
}

.site-footer p {
    margin: 0;
}

#app-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.center-text {
    text-align: center;
}

.episode-feed {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

#trailer-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
    opacity: 1;
}

.hero-banner.scrolled #trailer-container {
    display: none;
}

.episode-card {
    position: relative;
    background: #050505;
    border: 1px solid var(--dark-gray);
    border-radius: 0;
    padding: 1.5rem 2.5rem 1.5rem 3rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    min-height: 280px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.episode-card:hover {
    background-color: var(--dark-gray);
}

.episode-card:hover h3 a {
    color: var(--beer-amber);
}

.trailer-card {
    background: var(--dark-gray);
    min-height: auto;
    padding: 1rem 1.5rem 1rem 3rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.episode-card.trailer-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1;
    margin-top: -1px;
}

.trailer-card .trailer-length {
    display: inline-block;
    margin: 0 0 0 auto;
    white-space: nowrap;
}

.episode-card-top {
    min-height: 0;
}

.featured-card-top .episode-card-top {
    min-height: 32px;
}

.episode-card h3 {
    margin: 0.5rem 0 0.75rem 0;
    font-size: 1.45rem;
    color: #ffffff;
}

.episode-card h3 a {
    color: #ffffff;
    text-decoration: none;
}

.episode-card h3 a:hover {
    color: var(--beer-amber);
}

/* 
   THE "CLICKABLE CARD" TRICK 
   Stretching an invisible ::after pseudo-element from the title link
   to cover the entire card. This makes the whole card clickable 
   without needing JavaScript click listeners on the div itself!
*/
.episode-card h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.episode-description-block {
    max-height: 7.2rem;
    overflow: hidden;
    flex-grow: 0;
    margin-bottom: 1.5rem;
}

.episode-card .feed-description {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.click-more {
    display: none;
}

.episode-card small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    display: block;
    margin: 0;
}

.episode-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.trailer-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0 auto;
}

.trailer-card .trailer-length {
    margin: 0;
}

.card-share {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-share:hover {
    color: var(--beer-amber);
    transform: scale(1.1);
}

.episode-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    color: #ffffff;
    background: #c55a11;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-card-top {
    background: #050505;
    color: var(--white);
}

.featured-card-top h3,
.featured-card-top .feed-description {
    color: #ffffff;
}

.featured-card-top .episode-tag {
    background: rgba(197, 90, 17, 0.95);
}

/* =====================================================================
   PLAY BUTTONS
   ===================================================================== */
.card-play,
.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card-play {
    position: absolute;
    top: 50%;
    left: -26px;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #c55a11;
    box-shadow: 0 14px 28px rgba(197, 90, 17, 0.36);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0;
    z-index: 2;
}

.card-play:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 16px 30px rgba(197, 90, 17, 0.4);
}

.card-play.playing {
    background: var(--beer-gold);
    box-shadow: 0 14px 28px rgba(245, 166, 35, 0.36);
}

.card-play.playing:hover {
    box-shadow: 0 16px 30px rgba(245, 166, 35, 0.4);
}

.play-btn {
    background: #c55a11;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(197, 90, 17, 0.22);
}

.play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(197, 90, 17, 0.3);
}

.play-btn.playing {
    background: var(--beer-gold);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.22);
}

.play-btn.playing:hover {
    box-shadow: 0 12px 24px rgba(245, 166, 35, 0.3);
}

.play-btn:active {
    transform: translateY(0);
    background-color: #9e460e;
}

.card-play:active {
    background-color: #9e460e;
}

/* =====================================================================
   GLOBAL AUDIO PLAYER (STICKY FOOTER)
   ===================================================================== */
#global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--beer-gold);
    border-top: none;
    color: var(--text-dark);
    padding: 0.75rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#visualizer {
    position: absolute;
    top: -48px;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 48px;
    overflow: hidden;
    border-radius: 0;
}

/* 
   [FEATURE]: Splashing Wave Audio Visualizer
   The `cubic-bezier(0.4, 1.8, 0.5, 1)` transition gives the wave an elastic "spring" effect 
   so it bounces down smoothly into a flat head of beer when paused. 
   The waves themselves are drawn using inline SVGs and scroll horizontally.
*/
#visualizer .wave {
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: repeat-x;
    transition: height 1s cubic-bezier(0.4, 1.8, 0.5, 1), bottom 1s cubic-bezier(0.4, 1.8, 0.5, 1);
}

#visualizer .wave.foam {
    bottom: 0;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q100,0 200,50 T400,50 L400,100 L0,100 Z' fill='rgba(255, 255, 255, 0.4)'/%3E%3C/svg%3E");
    background-size: 200px 100%;
    animation: scrollWave 6s linear infinite;
    z-index: 1;
}

#visualizer .wave.liquid {
    bottom: -1px;
    height: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q100,0 200,50 T400,50 L400,100 L0,100 Z' fill='%23f5a623'/%3E%3C/svg%3E");
    background-size: 160px 100%;
    animation: scrollWave 4s linear infinite;
    z-index: 2;
}

#visualizer .droplets {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* Drops fall securely behind the liquid and foam */
    pointer-events: none;
}

#visualizer .droplet {
    position: absolute;
    bottom: 5px;
    background: var(--beer-gold);
    border-radius: 50%;
    opacity: 0;
    width: 6px;
    height: 6px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/*
   [FEATURE]: Splashing Droplet Physics
   To simulate chaotic splashing without heavy JavaScript, we use a 3-Phase CSS keyframe loop.
   Each droplet is assigned three different sets of variables (--x, --y, --s).
   While invisible at the bottom of a splash, the droplet instantly teleports to its next position
   and size. With 8 droplets doing 3 unique jumps, it creates 24 totally unpredictable splashes!
*/

#visualizer .droplet.white {
    background: rgba(255, 255, 255, 0.65);
}

#visualizer.active .droplet {
    animation-name: splashDropletAmber;
    animation-iteration-count: infinite;
}

#visualizer.active .droplet.white {
    animation-name: splashDroplet;
}

/* Pseudo-randomizer: 8 droplets running a 3-phase loop creates 24 totally unique, unpredictable splashes! */
.droplet:nth-child(1) { animation-delay: 0.2s; animation-duration: 7.5s; --x1: 10%; --y1: -25px; --s1: 0.8; --x2: 45%; --y2: -35px; --s2: 1.3; --x3: 80%; --y3: -20px; --s3: 0.9; }
.droplet:nth-child(2) { animation-delay: 1.7s; animation-duration: 8.2s; --x1: 25%; --y1: -18px; --s1: 1.1; --x2: 60%; --y2: -28px; --s2: 0.7; --x3: 15%; --y3: -32px; --s3: 1.4; }
.droplet:nth-child(3) { animation-delay: 0.5s; animation-duration: 6.8s; --x1: 40%; --y1: -30px; --s1: 0.9; --x2: 85%; --y2: -22px; --s2: 1.5; --x3: 35%; --y3: -15px; --s3: 0.8; }
.droplet:nth-child(4) { animation-delay: 2.1s; animation-duration: 7.9s; --x1: 55%; --y1: -15px; --s1: 0.6; --x2: 20%; --y2: -40px; --s2: 1.2; --x3: 65%; --y3: -25px; --s3: 1.6; }
.droplet:nth-child(5) { animation-delay: 0.8s; animation-duration: 8.5s; --x1: 70%; --y1: -28px; --s1: 1.4; --x2: 10%; --y2: -20px; --s2: 0.8; --x3: 90%; --y3: -38px; --s3: 1.1; }
.droplet:nth-child(6) { animation-delay: 1.5s; animation-duration: 7.1s; --x1: 85%; --y1: -22px; --s1: 0.7; --x2: 50%; --y2: -15px; --s2: 1.3; --x3: 25%; --y3: -28px; --s3: 0.9; }
.droplet:nth-child(7) { animation-delay: 2.8s; animation-duration: 8.8s; --x1: 48%; --y1: -32px; --s1: 1.5; --x2: 75%; --y2: -25px; --s2: 0.9; --x3: 5%;  --y3: -20px; --s3: 0.7; }
.droplet:nth-child(8) { animation-delay: 0.3s; animation-duration: 6.5s; --x1: 80%; --y1: -20px; --s1: 0.8; --x2: 30%; --y2: -32px; --s2: 1.6; --x3: 55%; --y3: -18px; --s3: 1.2; }

#visualizer.active .wave.foam {
    bottom: -1px;
    animation: scrollWave 4.5s linear infinite, soundBounceFoam 1.4s ease-in-out infinite alternate;
}

#visualizer.active .wave.liquid {
    bottom: -1px;
    animation: scrollWave 3.5s linear infinite, soundBounceLiquid 1.1s ease-in-out infinite alternate;
}

@keyframes scrollWave {
    0% { background-position-x: 0px; }
    100% { background-position-x: -800px; }
}

@keyframes soundBounceFoam {
    0% { height: 25px; }
    20% { height: 48px; }
    40% { height: 22px; }
    60% { height: 52px; }
    80% { height: 28px; }
    100% { height: 44px; }
}

@keyframes soundBounceLiquid {
    0% { height: 22px; }
    15% { height: 42px; }
    35% { height: 18px; }
    55% { height: 50px; }
    75% { height: 24px; }
    85% { height: 38px; }
    100% { height: 45px; }
}

@keyframes splashDropletAmber {
    /* PHASE 1: Quicker jump (25% of loop) */
    0% { left: var(--x1); transform: translateY(0) scale(var(--s1)); opacity: 0; animation-timing-function: ease-out; }
    4% { opacity: 0.8; }
    12% { left: var(--x1); transform: translateY(var(--y1)) scale(var(--s1)); opacity: 1; animation-timing-function: ease-in; }
    21% { opacity: 0.8; }
    25% { left: var(--x1); transform: translateY(5px) scale(calc(var(--s1) * 0.6)); opacity: 0; }
    /* PHASE 2: Normal speed jump (33% of loop) */
    25.01% { left: var(--x2); transform: translateY(0) scale(var(--s2)); opacity: 0; animation-timing-function: ease-out; }
    30% { opacity: 0.8; }
    41% { left: var(--x2); transform: translateY(var(--y2)) scale(var(--s2)); opacity: 1; animation-timing-function: ease-in; }
    53% { opacity: 0.8; }
    58% { left: var(--x2); transform: translateY(5px) scale(calc(var(--s2) * 0.6)); opacity: 0; }
    /* PHASE 3: Very quick jump with pause at end (22% jump, 20% rest) */
    58.01% { left: var(--x3); transform: translateY(0) scale(var(--s3)); opacity: 0; animation-timing-function: ease-out; }
    62% { opacity: 0.8; }
    69% { left: var(--x3); transform: translateY(var(--y3)) scale(var(--s3)); opacity: 1; animation-timing-function: ease-in; }
    76% { opacity: 0.8; }
    80% { left: var(--x3); transform: translateY(5px) scale(calc(var(--s3) * 0.6)); opacity: 0; }
    100% { left: var(--x3); transform: translateY(5px) scale(calc(var(--s3) * 0.6)); opacity: 0; }
}

@keyframes splashDroplet {
    /* PHASE 1 */
    0% { left: var(--x1); transform: translateY(0) scale(var(--s1)); opacity: 0; animation-timing-function: ease-out; }
    5% { opacity: 0.8; }
    16% { left: var(--x1); transform: translateY(var(--y1)) scale(var(--s1)); opacity: 1; animation-timing-function: ease-in; }
    28% { opacity: 0.8; }
    33% { left: var(--x1); transform: translateY(5px) scale(calc(var(--s1) * 0.6)); opacity: 0; }
    /* PHASE 2: Snaps instantly while invisible */
    33.01% { left: var(--x2); transform: translateY(0) scale(var(--s2)); opacity: 0; animation-timing-function: ease-out; }
    38% { opacity: 0.8; }
    49% { left: var(--x2); transform: translateY(var(--y2)) scale(var(--s2)); opacity: 1; animation-timing-function: ease-in; }
    61% { opacity: 0.8; }
    66% { left: var(--x2); transform: translateY(5px) scale(calc(var(--s2) * 0.6)); opacity: 0; }
    /* PHASE 3: Snaps instantly while invisible */
    66.01% { left: var(--x3); transform: translateY(0) scale(var(--s3)); opacity: 0; animation-timing-function: ease-out; }
    71% { opacity: 0.8; }
    82% { left: var(--x3); transform: translateY(var(--y3)) scale(var(--s3)); opacity: 1; animation-timing-function: ease-in; }
    94% { opacity: 0.8; }
    100% { left: var(--x3); transform: translateY(5px) scale(calc(var(--s3) * 0.6)); opacity: 0; }
}

#global-player.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.now-playing-container {
    width: 95%;
    max-width: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#now-playing {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

audio {
    display: none;
}

#custom-audio-controls {
    width: 95%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s, color 0.2s;
}

.ctrl-btn:hover {
    transform: scale(1.1);
    color: #000000;
}

#current-time,
#total-time {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

#seek-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 6px;
    border-radius: 3px;
    outline: none;
}

#seek-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--text-dark);
    margin-top: -5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    transition: transform 0.1s;
}

#seek-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#seek-bar::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#seek-bar::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--text-dark);
    border: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    transition: transform 0.1s;
}

#seek-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* =====================================================================
   DETAILED EPISODE VIEW
   ===================================================================== */
.episode-title {
    font-size: 2rem;
    color: var(--white);
    margin: 1rem 0 1.5rem;
    line-height: 1.3;
}

.episode-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.episode-detail-view {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.episode-detail-view .card-play {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex-shrink: 0;
}

.episode-detail-view .card-play:hover {
    transform: scale(1.03);
}

.episode-detail-content {
    flex: 1;
}

.episode-detail-content .episode-title {
    margin-top: 0;
}

.episode-detail-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.episode-detail-content .episode-length {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

/* =====================================================================
   ABOUT US SECTION
   ===================================================================== */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-container .intro-text {
    margin-bottom: 3rem;
    border: none;
    background: transparent;
    padding: 0;
}

.host-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.host-card {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.host-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.host-avatar-placeholder {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    overflow: hidden;
}

.host-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.8rem;
    color: var(--white);
}

.host-role {
    color: var(--beer-amber);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.host-bio {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 70px; /* Keeps the stats tags aligned evenly across cards */
}

.host-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.stat-tag {
    background: #2a2a2a;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.about-gallery-section {
    margin-top: 4rem;
    text-align: center;
}

.gallery-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 800;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #161616;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* =====================================================================
   MERCH SECTION
   ===================================================================== */
.merch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

#app-content .merch-container h2 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =====================================================================
   MOBILE HAMBURGER MENU & DRAWER
   ===================================================================== */
#hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 101;
}

#hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

#hamburger-menu.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#hamburger-menu.open span:nth-child(2) { opacity: 0; }
#hamburger-menu.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

#mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #111111;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1002;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
}

#mobile-drawer.open {
    right: 0;
}

#close-drawer {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

#close-drawer:hover {
    color: var(--beer-amber);
    transform: scale(1.1);
}

#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.drawer-nav a {
    color: var(--white); text-decoration: none; font-size: 1.25rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s ease;
}
.drawer-nav a:hover { color: var(--beer-amber); }

/* =====================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ===================================================================== */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner.scrolled {
        gap: 1rem;
    }
    .hero-banner.scrolled .hero-nav {
        gap: 0.5rem;
    }
    .hero-banner.scrolled .hero-nav a {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .hero-banner.scrolled .mini-trailer-card span {
        font-size: 0.8rem;
    }
    .hero-banner.scrolled .listen-on p {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-top {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-copy {
        flex: 0 0 auto;
        min-height: 41px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-copy h1,
    .hero-description {
        display: none;
    }

    .eyebrow {
        display: none;
    }

    #mobile-trailer-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }

    #main-logo {
        border-radius: 26px;
    }

    .episode-detail-active .logo-panel,
    .episode-detail-active .hero-banner.scrolled .logo-panel,
    .about-active .logo-panel,
    .merch-active .logo-panel,
    .about-active .hero-banner.scrolled .logo-panel,
    .merch-active .hero-banner.scrolled .logo-panel,
    .episode-detail-active .listen-on,
    .episode-detail-active .hero-banner.scrolled .listen-on,
    .about-active .listen-on,
    .merch-active .listen-on,
    .about-active .hero-banner.scrolled .listen-on,
    .merch-active .hero-banner.scrolled .listen-on {
        display: none;
    }

    .hero-banner {
            padding: 2rem 1rem 0;
            min-height: 420px;
    }

    .listen-on {
        margin: 1.5rem auto 0;
        min-height: 70px;
    }

    .listen-icons {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .listen-icons a {
        width: auto;
        height: auto;
        flex: 0 1 34px;
        min-width: 0;
        aspect-ratio: 1 / 1;
    }

    #trailer-container {
        display: none;
    }

    .hero-nav {
        display: none !important;
    }

    #hamburger-menu {
        display: flex;
        position: absolute;
        top: 2rem;
        right: 1.5rem;
    }

    .hero-banner.scrolled #hamburger-menu {
            position: fixed;
            top: 35px;
            right: 1.5rem;
        transform: translateY(-50%);
            z-index: 1000;
            animation: slideDownHamburger 0.35s ease forwards;
        }

        @keyframes slideDownHamburger {
            from { top: -35px; }
            to { top: 35px; }
        }

        /* Completely override desktop `.scrolled` layout so the hero banner 
           doesn't crush itself. Independent sticky elements take over instead. */
        .hero-banner.scrolled {
            display: block;
            position: relative;
            padding: 2rem 1rem 0;
            animation: none;
            transform: none;
            box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
            max-height: none;
        }

        .hero-banner.scrolled::before {
            opacity: 0;
        }

        .hero-banner.scrolled .hero-top { display: flex; }
        .hero-banner.scrolled .logo-panel { display: block; }
        .hero-banner.scrolled #main-logo { border-radius: 26px; }
        .hero-banner.scrolled .hero-copy { display: flex; }
        .hero-banner.scrolled .listen-on {
            display: block;
            margin: 1.5rem auto 0;
        }
        .hero-banner.scrolled .listen-on p {
            display: block;
            margin: 0 0 0.75rem;
        }
        .hero-banner.scrolled .listen-icons {
        flex-wrap: nowrap;
        gap: 0.4rem;
        }
        .hero-banner.scrolled .listen-icons a {
        width: auto;
        height: auto;
        flex: 0 1 34px;
        min-width: 0;
        aspect-ratio: 1 / 1;
        }
        .hero-banner.scrolled #trailer-container { display: none; }

        .hero-banner.scrolled::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: #050505;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            z-index: 999;
            animation: slideDownHeader 0.35s ease forwards;
    }

    header nav {
        align-items: flex-start;
    }

    #app-content {
            padding: 2rem 2rem 10rem;
    }

    .episode-card {
            padding: 1.75rem 1.25rem 1.5rem 3rem;
    }
}

.logo-container {
    max-width: 220px;
    margin: 0;
}

#main-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

.hero-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    header nav {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    header nav a {
        border-left-color: transparent;
        border-radius: 999px;
    }
    
    .episode-feed {
        gap: 0;
    }

    .episode-feed .episode-card + .episode-card {
        margin-top: -1px;
    }

    #app-content {
        padding: 1rem 0 150px;
    }
    
    /* 
       [LAYOUT FIX]: Adjust hero banner height for subpages
       We let the hero banner shrink naturally to just hold the hamburger menu
       on detailed views so normal scrolling is restored.
    */
    .episode-detail-active .hero-banner,
    .about-active .hero-banner,
    .merch-active .hero-banner {
        min-height: 75px;
        background: transparent;
        box-shadow: none;
    }

    /* 
       [LAYOUT FIX]: Persistent Amber Background
       Inject the massive amber gradient directly onto the body so it spans 420px 
       even when the header shrinks to 75px.
    */
    body.episode-detail-active::before,
    body.merch-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 420px;
        background: linear-gradient(180deg, var(--beer-amber) 0%, #161212 50%, #050505 100%);
        box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
        z-index: 0;
        pointer-events: none;
    }

    body.about-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 420px;
        background: linear-gradient(to bottom, rgba(7, 7, 7, 0) 60%, #070707 100%), url('blue-jays-beer.jpg') no-repeat center calc(50% - 75px) / 130%;
        z-index: 0;
        pointer-events: none;
    }

    .episode-detail-active #app-content,
    .about-active #app-content,
    .merch-active #app-content {
        padding-top: 0;
        z-index: 100;
    }

    #app-content h2 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .episode-card {
        padding: 1.25rem 1rem;
        border-left: none;
        border-right: none;
            min-height: auto;
    }

    .episode-card h3 {
        font-size: 1.15rem;
    }

        .episode-description-block {
            margin-bottom: 0.5rem;
            max-height: none;
        }

        .host-profiles {
            gap: 0;
        }

        .host-profiles .host-card + .host-card {
            margin-top: -1px;
        }

        .host-card {
            border-radius: 0;
            border-left: none;
            border-right: none;
        }

        /* 
           [LAYOUT FIX]: Truncate mobile descriptions
           Limits descriptions on the main feed to exactly 2 lines and hides any lists 
           so the cards don't take up the entire mobile screen.
        */
        .episode-card .feed-description {
            font-size: 0.9rem;
            -webkit-line-clamp: 2;
        }

        .episode-card .feed-description ul,
        .episode-card .feed-description ol {
            display: none;
        }

        .click-more {
            display: block;
            text-align: center;
            font-style: italic;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 1rem;
    }

    .card-play {
        top: auto;
        left: auto;
        right: 1rem;
        bottom: 1rem;
        transform: none;
    }

    .trailer-card {
        padding: 1rem 7rem 1rem 1rem;
    }

        .trailer-card .card-play {
        position: absolute;
            left: auto;
            right: 1rem;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }

        .trailer-card .card-play:hover {
            transform: translateY(-50%) scale(1.03);
        }

    .trailer-card .trailer-length {
        display: none;
    }

        .card-play:hover {
            transform: scale(1.03);
        }

        .episode-card small {
            font-size: 0.8rem;
            padding-right: 0;
            display: block;
            min-height: auto;
            margin-top: 0;
            line-height: 1.3;
        }
        
        .pub-date {
            display: block;
            margin-top: 0.15rem;
            color: rgba(255, 255, 255, 0.55);
        }

        .bullet {
            display: none;
        }
        
        .episode-card-footer {
            padding-right: 90px;
            display: flex;
            align-items: center;
            min-height: 52px;
            margin-top: auto;
        }
        
        .card-share {
            position: absolute;
            right: 4.5rem;
            bottom: 1rem;
            margin: 0;
            height: 52px;
            padding: 0 0.5rem;
        }
        
        .trailer-footer {
            padding-right: 0;
        }
        
        .trailer-card .card-share {
            right: 4.5rem;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
            height: auto;
        }
        
        .trailer-card .card-share:hover {
            transform: translateY(-50%) scale(1.1);
        }

    .episode-detail-view {
        gap: 0;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        position: relative;
        margin-top: 0.5rem;
    }

    .episode-detail-view .card-play {
        position: absolute;
        top: -26px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: auto;
        z-index: 2;
    }

    .episode-detail-view .card-play:hover {
        transform: translateX(-50%) scale(1.03);
    }

    .episode-detail-content {
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        padding: 2.5rem 1.25rem 1.25rem;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        text-align: center;
    }

    .center-text {
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        padding: 1.5rem 1.25rem;
        margin: 0.5rem 1rem 0;
        background: rgba(255, 255, 255, 0.03);
    }

    #app-content .center-text h2 {
        font-size: clamp(1.1rem, 4vh, 1.5rem);
        padding: 0;
        margin-top: 0;
    }

    .center-text p {
        font-size: clamp(0.8rem, 2.5vh, 1.05rem);
        margin-bottom: 0;
    }

    .episode-detail-content .episode-title {
        font-size: clamp(0.95rem, 3vh, 1.25rem);
        font-weight: 800;
        margin-bottom: 0.75rem;
        margin-top: 0;
    }

    .episode-detail-content .episode-description,
    .episode-detail-content .episode-description * {
        font-size: clamp(0.75rem, 2vh, 0.85rem);
        margin-bottom: 0;
    }

    .episode-detail-content .episode-description ul,
    .episode-detail-content .episode-description ol {
        padding-left: 0.5rem;
        list-style-position: inside;
        list-style-type: disc;
        margin-top: 0.5rem;
        text-align: left;
    }

    .episode-detail-content .episode-description li {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-style: italic;
    }

    .episode-detail-footer {
        margin-top: 1.25rem;
    }

    .episode-detail-footer .card-share {
        position: relative;
        right: auto;
        bottom: auto;
        height: auto;
        padding: 0.5rem;
    }

    .episode-detail-content .episode-length {
        font-size: clamp(0.75rem, 2vh, 0.9rem);
        text-align: center;
        line-height: 1.4;
    }

    .now-playing-container {
        display: block;
        width: calc(100% + 2.5rem);
        max-width: none;
        margin-left: -1.25rem;
    }

    #now-playing {
        display: inline-block;
        overflow: visible;
        text-overflow: clip;
        padding-left: 100%;
        animation: marquee 12s linear infinite;
    }

    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    
    /* Hide 'About Us' text in mobile to make room for background image */
    .about-active .intro-text {
        display: none;
    }

    /* Put the white hamburger menu inside a gradient circle on the About Us view */
    .about-active #hamburger-menu {
        background: linear-gradient(180deg, var(--beer-amber) 0%, #161212 50%, #050505 100%);
        background-size: 100% 420px;
        background-position: 0 -2rem;
        background-repeat: no-repeat;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .about-active #hamburger-menu span {
        background: #ffffff;
    }

    /* Ensure it reverts to normal when the sticky black header slides down */
    .about-active .hero-banner.scrolled #hamburger-menu {
        background: transparent;
        width: auto;
        height: auto;
        padding: 10px;
    }

    /* Disable hover/click animations for host cards in mobile view */
    .about-active .host-card:hover,
    .about-active .host-card:active {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

    .about-gallery-section {
        margin-top: 2rem;
    }

    .about-gallery {
        gap: 0;
    }

    .gallery-item {
        border-radius: 0;
        box-shadow: none;
    }
    }

.episode-detail-active #trailer-container,
.episode-detail-active #mobile-trailer-container,
.episode-detail-active .hero-banner.scrolled #trailer-container,
.episode-detail-active .hero-banner.scrolled #mobile-trailer-container,
.about-active #trailer-container,
.about-active #mobile-trailer-container,
.about-active .hero-banner.scrolled #trailer-container,
.about-active .hero-banner.scrolled #mobile-trailer-container,
.merch-active #trailer-container,
.merch-active #mobile-trailer-container,
.merch-active .hero-banner.scrolled #trailer-container,
.merch-active .hero-banner.scrolled #mobile-trailer-container {
    display: none;
}merch-active .hero-banner.scrolled #mobile-trailer-container {
    display: none;
}