/* --- Social Media Corner --- */
.social-corner {
    position: fixed;
    bottom: 80px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.social-btn:hover {
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-corner {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

:root {
    --bg-dark: #0a0a0a;
    --bg-purple: #1a0520;
    --accent-red: #FF0055;
    --accent-purple: #2A0033;
    --text-white: #ffffff;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-brand: 'ethnocentric', sans-serif;
    /* Adobe Font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-purple) 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-link {
    color: var(--accent-red);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-red);
    transition: all 0.3s ease;
}

.text-link:hover {
    color: #ff3377;
    text-shadow: 0 0 8px var(--accent-red);
    border-bottom-style: solid;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    max-width: none;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--text-white);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}


.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-red);
}

.btn.btn-amazon {
    background-color: #FF9900;
    color: #000;
}

.btn.btn-amazon:hover {
    background-color: #cc7a00;
    box-shadow: 0 0 20px #FF9900;
}

/* --- Audio Player --- */
.audio-container {
    margin-top: 2.5rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 4px;
}

/* --- Warning Overlay --- */
.audio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 1rem;
    text-align: center;
    border: 1px solid yellow;
}

.hazard-stripes {
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg,
            #000,
            #000 10px,
            #ffd700 10px,
            #ffd700 20px);
    position: absolute;
}

.stripe-top {
    top: 0;
}

.stripe-bottom {
    bottom: 0;
}

.warning-text {
    color: var(--accent-red);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: 0 0 5px var(--accent-red);
}

.unlock-btn {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.unlock-btn:hover {
    background: #ffea00;
    box-shadow: 0 0 10px #ffd700;
}

/* --- Unlocked Player --- */
.audio-player {
    background: rgba(20, 0, 40, 0.95);
    border: 4px solid var(--accent-red);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 480px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.track-info {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 5px var(--accent-cyan);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.play-btn {
    background: none;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: rgba(255, 62, 62, 0.2);
    box-shadow: 0 0 15px var(--accent-red);
}

/* --- Waveform --- */
.waveform {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: center;
}

.bar {
    width: 4px;
    background: var(--accent-red);
    height: 100%;
    animation: none;
}

.playing .bar {
    animation: wave 1s infinite ease-in-out;
}

.bar:nth-child(1) {
    animation-delay: 0.1s;
}

.bar:nth-child(2) {
    animation-delay: 0.3s;
}

.bar:nth-child(3) {
    animation-delay: 0.5s;
}

.bar:nth-child(4) {
    animation-delay: 0.2s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        height: 20%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

/* --- Volume Slider --- */
.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}


.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: rgba(255, 62, 62, 0.3);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    box-shadow: 0 0 5px var(--accent-red);
}

.volume-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px var(--accent-red);
}

/* --- Chapter One Page --- */
.chapter-content p {
    margin-bottom: 2rem;
}

.chapter-content p:last-child {
    margin-bottom: 0;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-purple);
    color: var(--text-white);
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.audio-btn:hover {
    opacity: 1;
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(255, 62, 62, 0.1);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.4);
}

.audio-btn .icon {
    font-size: 1.4rem;
}

/* --- The Ledger (Books) --- */
.ledger {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.book-cover-container {
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.book-cover-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.book-cover {
    border: 4px solid white;
    box-shadow: 15px 15px 0px #000;
}

.ledger-content h2 {
    font-size: 3rem;
    color: var(--accent-red);
}

.ledger-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.ledger-btn {
    display: block;
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.status-classified {
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-red);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 5px var(--accent-red);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--accent-red), 0 0 30px var(--accent-red);
    }

    100% {
        opacity: 0.7;
        text-shadow: 0 0 5px var(--accent-red);
    }
}

/* --- The Syndicate (Newsletter) --- */
.syndicate-section {
    background-color: var(--accent-purple);
    max-width: none;
    /* Full width bg */
    margin-top: 4rem;
    margin-bottom: 1rem;
}

.syndicate-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0 0.5rem 0;
}

.syndicate-container h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-white);
    text-shadow: 0 0 10px var(--accent-purple);
    letter-spacing: 2px;
}

/* Hero Character Styles */
.hero-character {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
}

.char-card.hero-card {
    width: 312px;
    height: 442px;
}

.hero-bio {
    color: var(--text-white);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    text-shadow: 0 0 10px var(--accent-purple);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    /* Full border as requested */
    border: 1px solid var(--accent-red);
    backdrop-filter: blur(2px);
    margin-top: 1.5rem;
}

/* Associates Grid (4-in-a-row) */
.associates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Character Card Base (Updated for Grid & Glow) */
.char-card {
    position: relative;
    width: 240px;
    /* Slightly narrower to fit 4 */
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    /* Added Glow Effect (Matches Nicky) */
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
    border: 1px solid rgba(255, 0, 85, 0.3);
    background: #000;
}

.char-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.6);
    border-color: var(--accent-red);
}

/* Tablet Adjustments (2x2) */
@media (max-width: 1100px) {
    .associates-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 3rem;
    }
}

/* Mobile Adjustments (1x1) */
@media (max-width: 768px) {
    .syndicate-container h2 {
        font-size: 2rem;
    }

    .card-large {
        transform: scale(1.1);
    }

    .card-large:hover {
        transform: scale(1.15) translateY(-5px);
    }

    .associates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}



.char-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 85, 0.9);
    /* Accent red with opacity */
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.char-card:hover .char-overlay {
    transform: translateY(0);
}

.char-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.char-role {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- The Architect (Bio) --- */
.architect {
    text-align: center;
    max-width: 800px;
    padding-bottom: 6rem;
}

.architect h2 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 3rem;
    color: var(--accent-red);
}

.architect p {
    font-size: 1.2rem;
    color: #dddddd;
    /* Removed opacity for better contrast */
}


/* --- Responsive --- */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
        /* Reduced padding for mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Fix Audio Player Scaling */
    .audio-player {
        min-width: auto;
        width: 100%;
        padding: 1.5rem;
    }

    .audio-container {
        width: 100%;
    }

    .warning-text {
        font-size: 1rem;
        line-height: normal;
    }

    /* Fix Hero Character Card Scaling */
    .char-card.hero-card {
        width: 100%;
        max-width: 312px;
        /* Keep original size as max */
        height: auto;
        aspect-ratio: 312/442;
        /* Maintain aspect ratio */
    }

    .ledger {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover-container {
        max-width: 280px;
        /* Slightly smaller to be safe */
        margin: 0 auto;
        transform: rotate(0);
    }
}

/* --- Newsletter Trigger & Modal --- */
#newsletter-trigger {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--accent-red);
    color: var(--text-white);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: pulse-trigger 3s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

#newsletter-trigger:hover {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red);
}

@keyframes pulse-trigger {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--accent-purple);
    border: 1px solid var(--accent-red);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(42, 0, 51, 0.8), 0 0 10px var(--accent-red);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* --- MailerLite Overrides --- */
.ml-form-embedContainer .ml-form-embedWrapper {
    background-color: transparent !important;
    padding: 0 !important;
}

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding: 0 !important;
}

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
    background-color: #000000 !important;
    color: var(--accent-red) !important;
    border: 1px solid #333 !important;
    border-radius: 0 !important;
    font-family: 'Courier New', monospace !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 10px var(--accent-red) !important;
}

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input::placeholder {
    color: var(--accent-red) !important;
    opacity: 0.5;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--accent-red);
}

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-family: var(--font-heading) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px !important;
    transition: all 0.2s !important;
}

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
    background-color: #ff3377 !important;
    box-shadow: 0 0 15px var(--accent-red) !important;
}

/* Hide Default Labels if present */
.ml-field-group label {
    display: none !important;
}

/* Success Message Styling */
.ml-form-successContent h4 {
    color: var(--accent-red) !important;
    font-family: var(--font-heading) !important;
    text-align: center !important;
}

.ml-form-successContent p {
    color: var(--text-white) !important;
    text-align: center !important;
    font-family: 'Courier New', monospace !important;
}

/* Footer */
footer {
    background-color: #000000;
    color: #555;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--accent-red);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- Character Dossier Pages --- */
.dossier-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.dossier-container {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--accent-red);
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 0, 85, 0.2);
    position: relative;
    background-image:
        linear-gradient(rgba(255, 0, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 85, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dossier-header {
    border-bottom: 2px solid var(--accent-red);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.dossier-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 0;
    line-height: 1;
}

.dossier-subtitle {
    font-family: 'Courier New', monospace;
    color: var(--text-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-red);
    color: #000;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.dossier-image-container {
    position: relative;
}

.dossier-image {
    width: 100%;
    border: 4px solid #fff;
    box-shadow: 5px 5px 0 var(--accent-red);
    filter: grayscale(100%) contrast(120%);
    transition: all 0.3s;
}

.dossier-image:hover {
    filter: grayscale(0%) contrast(110%);
    box-shadow: 8px 8px 0 var(--accent-red);
    transform: scale(1.02);
}

.dossier-data {
    font-family: 'Courier New', monospace;
}

.data-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.data-label {
    width: 140px;
    color: var(--accent-red);
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.data-value {
    color: #ddd;
}

.dossier-bio {
    margin-top: 2rem;
    line-height: 1.8;
    color: #ccc;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stamp {
    position: absolute;
    top: 2rem;
    right: 2rem;
    border: 4px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    transform: rotate(-15deg);
    font-family: 'Courier New', monospace;
    opacity: 0.7;
    pointer-events: none;
    letter-spacing: 4px;
}

@media (max-width: 768px) {
    .dossier-grid {
        grid-template-columns: 1fr;
    }

    .dossier-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dossier-title {
        font-size: 2.5rem;
    }

    .stamp {
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
}

/* --- Fixed Audio Player --- */
.audio-container-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 300px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-cyan);
    padding: 1.2rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.audio-container-fixed .audio-player {
    min-width: auto;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0.2rem;
}

/* Ensure global player styling consistency */
.audio-container-fixed .audio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    border: 1px solid var(--accent-red);
}

/* --- Swup Transitions --- */
.transition-fade {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

/* --- Underground Radio Player (Fixed Bottom Bar) --- */
.audio-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #050505;
    border-top: 1px solid var(--accent-red);
    z-index: 9999;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
}

/* --- Overlay (Locked State) --- */
.audio-bar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.overlay-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.blink-text {
    color: var(--accent-red);
    font-weight: bold;
    animation: blink 1s infinite;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.unlock-btn-bar {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.2rem 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.unlock-btn-bar:hover {
    background: var(--accent-red);
    color: #000;
    box-shadow: 0 0 15px var(--accent-red);
}

.signal-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 2px,
            rgba(255, 0, 0, 0.1) 3px,
            transparent 4px);
    opacity: 0.3;
    pointer-events: none;
}

/* --- Active Player Content --- */
.audio-bar-content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    align-items: center;
    padding: 0 1rem;
}

/* Section 1: Frequency */
.frequency-indicator {
    color: var(--accent-red);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-right: 1px solid rgba(255, 0, 85, 0.3);
    height: 100%;
    padding-right: 1rem;
}

.live-dot {
    color: var(--accent-red);
    animation: pulse-red 2s infinite;
}

/* Section 2: Ticker */
.track-ticker {
    overflow: hidden;
    white-space: nowrap;
    color: #cccccc;
    font-size: 0.9rem;
    padding: 0 1rem;
    position: relative;
}

.ticker-text {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

/* Section 3: Controls */
.bar-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    border-left: 1px solid rgba(255, 0, 85, 0.3);
    height: 100%;
    padding-left: 1rem;
}

.play-btn-bar {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn-bar:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--accent-red);
}

.volume-tuner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vol-label {
    font-size: 0.7rem;
    color: #666;
}

.tuner-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.tuner-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 15px;
    background: var(--accent-red);
    cursor: pointer;
    border: none;
    border-radius: 1px;
}

/* --- Animations --- */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse-red {
    0% {
        opacity: 0.5;
        text-shadow: 0 0 5px var(--accent-red);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--accent-red);
    }

    100% {
        opacity: 0.5;
        text-shadow: 0 0 5px var(--accent-red);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .audio-bar-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .audio-bar-fixed {
        height: auto;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
        flex-direction: column;
        bottom: 0;
    }

    .frequency-indicator,
    .bar-controls {
        border: none;
        width: 100%;
        justify-content: center;
    }

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

    .social-corner {
        bottom: auto !important;
        top: 20px !important;
        left: 20px !important;
    }

    #newsletter-trigger {
        bottom: auto !important;
        top: 20px !important;
        right: 20px !important;
    }
}