/* === Base === */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    html, body {
        height: 100%;
    }
    body {
        font-family: 'Montserrat', sans-serif;
        background-color: #0d0d0d;
        color: var(--light-text);
        display: flex;
        flex-direction: column;
    }
    main {
        flex: 1;
    }
    :root {
        --ahs-yellow: #ffde59;
        --background: #1a1a1a;
        --light-text: #f0f0f0;
        --card-bg: rgba(255, 255, 255, 0.05);
        --card-shadow: rgba(0, 0, 0, 0.3);

        --yt-red: #ff0000;
        --tt-black: #000000;
        --ig-pink: #dd2a7b;
        --bs-blue: #1182FE;
    }

/* === Header === */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background-color: var(--background);
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    #navbar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        width: 100%;
    }
    #menu-toggle {
        display: none;
        font-size: 1.75rem;
        background: none;
        color: var(--light-text);
        border: none;
        cursor: pointer;
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .nav-links a {
        text-decoration: none;
        font-weight: bold;
    }
    .nav-links a.frosted-link {
        margin-left: 0;
        margin-right: 0;
        display: inline-block;
    }
    .nav-links a:not(.frosted-link) {
        color: var(--light-text);
    }
    .nav-links a:not(.frosted-link):hover {
        color: var(--ahs-yellow);
    }
    .nav-links a.active {
        color: var(--ahs-yellow);
        border-bottom: 2px solid var(--ahs-yellow);
        padding-bottom: 0.2rem;
    }

/* === Hero === */
    .hero {
        text-align: center;
        padding: 3rem 1rem;
        background: radial-gradient(
            ellipse farthest-side at bottom center,
            #b205c6 0%,
            #5f0b88 100%
        );
    }
    .hero h2 {
        font-size: 3rem;
        margin-bottom: 1rem;
        letter-spacing: 4px;
    }
    .hero p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        letter-spacing: 5px;
    }

/* === Sections === */
    .section {
        padding: 1.5rem;
        margin: 1rem auto;
        width: min(100% - 2rem, 1000px);
        background-color: var(--background);
        border-radius: 12px;
        box-shadow: 0 0 10px var(--card-shadow);
    }
    .section h3 {
        font-size: 2rem;
        margin-top: 0rem;
        margin-bottom: 1rem;
        color: var(--ahs-yellow);
    }
    .section p {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    .section > :first-child {
        margin-top: 0;
    }
    .section p:last-child {
        margin-bottom: 0;
    }
    .section hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 2rem 0;
    }


    /* === Footer === */
    .footer {
        background-color: var(--background);
        color: #999;
        font-size: 0.9rem;
        padding: 1rem 1rem 0.5rem;
    }
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        text-align: left;
    }
    .footer-links div {
        min-width: 150px;
    }
    .footer-links h4 {
        color: #fff;
        margin-bottom: 0.5rem;
    }
    .footer-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-links a {
        color: var(--ahs-yellow);
        text-decoration: none;
    }						
    .footer-links a:hover{
        text-decoration: underline;
    }
    .footer-note {
        margin: 0.5rem 0 0.2rem;
    }
    #secret-game-trigger {
        cursor: pointer;
    }

/* === Frosted Links === */
    .frosted-link {
        padding: 0.4rem 0.8rem;
        border-radius: 10px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition:
            color 0.2s ease, 
            background 0.2s ease,
            box-shadow 0.2s ease;
        text-decoration: none;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }
    .neutral-style {
        color: #eaeaea;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .neutral-style:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.14);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    }
    .discord-style {
        color: #c3ceff;
        background: rgba(88, 101, 242, 0.15);
        border: 1px solid rgba(88, 101, 242, 0.35);
    }
    .discord-style:hover {
        color: #ffffff;
        background: rgba(88, 101, 242, 0.25);
        box-shadow: 0 0 8px rgba(88, 101, 242, 0.4);
    }
    .patreon-style {
        color: #f5c1bb; 
        background: rgba(249, 104, 84, 0.10); 
        border: 1px solid rgba(249, 104, 84, 0.25); 
    }
    .patreon-style:hover {
        color: #ffffff;
        background: rgba(249, 104, 84, 0.18); 
        box-shadow: 0 0 6px rgba(249, 104, 84, 0.3);
    }

/* === Videos === */
    #youtube-videos > a {
        flex: 1 1 450px;
        max-width: 480px;
        text-align: left;
        text-decoration: none;
        display: block;
    }	
    .video-container {
        flex: 1 1 450px;
        max-width: 480px;
        text-align: left;
        background: var(--card-bg);
        border-radius: 12px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1rem;
        padding-bottom: 0.75rem;
        box-shadow: 0 4px 12px var(--card-shadow);
        transition: 
            transform 0.2s ease,
            box-shadow 0.3s ease,
            background 0.3s ease;
    }	
    .video-container:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.07);
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(255, 255, 255, 0.15);
    }
    .video-container:hover strong {
        text-decoration: underline;
    }
    .video-container p:last-child {
        margin-bottom: 0;
    }	
    .video-container .responsive-video {
        margin-bottom: 0.75rem;
    }
    .responsive-video {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
        border-radius: 10px;
        overflow: hidden;
    }
    .responsive-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }
    .video-link {
        color: #ffffff;
        text-decoration: none;
    }
    .video-link:hover {
        text-decoration: underline;
    }
    .video-meta {
        font-size: 0.85rem;
        color: #bbb;
        margin-top: 0.25rem;
        margin-bottom: 0;
    }
    .thumbnail {
        width: 100%;
        border-radius: 10px;
    }
    .flex-wrap-center {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 1.5rem;
        text-align: center;
    }

    .podcast-thumbnail-link {
        display: inline-block;
    }
    .podcast-thumbnail-link .thumbnail {
        transition: transform 0.2s ease;
        display: block;
    }
    .podcast-thumbnail-link:hover .thumbnail {
        transform: translateY(-4px);
    }

    @media (max-width: 1018px) and (min-width: 880px) {
        #youtube-videos {
            flex-wrap: nowrap !important;
            justify-content: space-between;
        }
        #youtube-videos > a {
            flex: 1 1 auto;
            max-width: calc(50% - 0.75rem);
        }
        .video-container {
            width: 100%;
        }
    }
    @media (max-width: 879px) {
        #youtube-videos {
            flex-direction: column !important;
            align-items: center;
        }
        #youtube-videos > a,
        .video-container {
            flex: 1 1 100%;
            width: 100%;
            max-width: none;
        }
    }
    @media (max-width: 768px) {
        .nav-links {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--background);
            flex-direction: column;
            align-items: center;
            padding: 1rem 0;
            display: flex;
            gap: 0.75rem;
            transform: translateY(-20px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.3s ease, opacity 0.3s ease;
            z-index: 999;
        }
        .nav-links a {
            font-size: 1.1rem;
            padding: 0.6rem 1rem;
        }
        .nav-links.show {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }
        .nav-links a.frosted-link {
            font-size: 1.1rem;
            padding: 0.6rem 1.2rem;
            align-self: center;
        }

        #menu-toggle {
            display: block;
        }
    }
    
/* === Podcast Sections === */
    .podcast-section {
    position: relative;
    overflow: hidden;
    }
    .podcast-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
        position: relative;
    z-index: 1;
    }
    .release-tag {
    display: inline-block;
    background: var(--ahs-yellow);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    }
    .podcast-info {
    flex: 1 1 300px;
    }
    .podcast-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    }
    .podcast-player {
    flex: 1 1 300px;
    }
    .podcast-links {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
    background-color: transparent;
    }
    @media (max-width: 768px) {
    .podcast-links {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
    }
    .background-gradient {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: bottom right;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 70%);
    }
    #sgl .background-gradient { background-image: url('/img/backgrounds/bg-sgl.png'); }
    #ahp .background-gradient { background-image: url('/img/backgrounds/bg-ahp.webp'); }
    #tftf .background-gradient { background-image: url('/img/backgrounds/bg-tftf.png'); }
    #tpp .background-gradient { background-image: url('/img/backgrounds/bg-tpp.png'); }


/* === Meet Your Hosts Section === */
    /* === Featured Hosts (Nathan & Laurence) === */
        .host-top-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
            width: 100%;
        }
        .featured-host {
            width: 100%;
            max-width: 100%;
        }
        .host-card.featured-host img {
            max-height: 320px;
            max-width: 320px;
            margin: 0 auto 0.75rem;
            display: block;
        }
    /* === Other Hosts Grid === */
        .host-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            justify-items: center;
        }
        .host-card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            width: 100%;
            box-shadow: 0 4px 12px var(--card-shadow);
            transition: transform 0.2s ease;
        }
        .host-top-row .host-card {
            max-width: none;
            width: 100%;
        }
        .host-role-label {
            display: block;
            font-weight: bold;
            color: var(--ahs-yellow);
            margin-top: -0.5rem;
            margin-bottom: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
        }
        .host-card img {
            width: 100%;
            max-height: 200px;
            max-width: 200px;
            object-fit: contain;
            margin-bottom: 0.75rem;
        }
        .host-card:hover {
            transform: translateY(-4px);
        }
        .host-card h4 {
            color: var(--ahs-yellow);
            margin-bottom: 0.75rem;
            font-size: 24px;
        }
    /* === Host Podcast Buttons === */
        .host-podcast-list {
            margin-top: 1rem;
            text-align: center;
        }
        .host-podcast-label {
            display: block;
            font-weight: bold;
            color: var(--ahs-yellow);
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        .host-podcast-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
        }
        .podcast-button {
            padding: 0.4rem 0.9rem;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #fff;
            font-size: 0.9rem;
            text-decoration: none;
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .podcast-button:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            color: #fff;
        }

/* === Contact Page === */
    .contact-two-col {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        align-items: flex-start;
    }
    .contact-left {
    display: grid;
    grid-auto-rows: auto;
    gap: 1rem;
    width: max-content;
    align-items: start;
    }
    .email-entry {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    }
    .email-label {
    display: block;
    font-weight: 600;
    color: var(--ahs-yellow);
    margin-bottom: 0.25rem;
    }
    .email-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    }
    .email-link:hover {
    text-decoration: underline;
    }
    .contact-right {
    flex: 1;
    min-width: 350px;
    }
    .contact-right iframe {
    width: 100%;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #23272a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .contact-right h4 {
    margin-bottom: 1rem;
    }

    /* === Socials === */
        .social-podcast-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 1.5rem;
        justify-content: center;
        }
        .podcast-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 200px;
        gap: 0.75rem;
        }
        .podcast-cover {
        width: 200px;
        height: 200px;
        border-radius: 12px;
        object-fit: cover;
        }
        .social-pill {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
        width: fit-content;
        }
        .pill-icons {
        display: flex;
        gap: 0.5rem;
        }
        /* Base button styling */
            .social-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 1rem;
            color: white;
            background-color: #999;
            transition: background 0.2s ease, color 0.2s ease;
            }
        /* Platform colors */
            /* Platform backgrounds */
            .social-icon.yt { background-color: var(--yt-red); }
            .social-icon.tt { background-color: var(--tt-black); }
            .social-icon.ig { background-color: var(--ig-pink);}
            .social-icon.bs { background-color: var(--bs-blue); }
            /* Hover: invert background and color */
            .social-icon:hover { background-color: #fff; }
            .social-icon.yt:hover i { color: var(--yt-red); }
            .social-icon.tt:hover i { color: var(--tt-black); }
            .social-icon.ig:hover i { color: var(--ig-pink); }
            .social-icon.bs:hover i { color: var(--bs-blue); }

/* DW Runner Game */
    #dw-runner {
        position: fixed;
        bottom: 0;
        left: 0;
        background: #111;
        z-index: 9999;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.6);
    }
    #dw-runner-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #dw-runner-modal {
        background: #111;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 0 20px #000;
        max-width: 95vw;
        max-height: 80vh;
        overflow: hidden;
    }
    #dw-canvas {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        z-index: 1;
        background: transparent;
    }
    #game-bg {
        position: relative;
        background: url('/img/backgrounds/bg-sgl.png') center / cover no-repeat;
        border-radius: 8px;
        overflow: hidden;
    }
    .game-gradient-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        z-index: 0;
    }