/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alice&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Alice', serif;
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 1.6;

    /* High-resolution analog static background */
    background-color: #1a1a1a;
    background-image:
        /* Centered dark column with sharp borders */
        linear-gradient(to right,
            transparent 0%,
            transparent calc(50% - 540px),
            #0b0b0b calc(50% - 540px),
            #0b0b0b calc(50% + 540px),
            transparent calc(50% + 540px),
            transparent 100%
        ),
        /* Ultra-detailed 1200x1200px noise pattern */
        url("data:image/svg+xml,%3Csvg width='1200' height='1200' viewBox='0 0 1200 1200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.8' intercept='-0.9'/%3E%3CfeFuncG type='linear' slope='2.8' intercept='-0.9'/%3E%3CfeFuncB type='linear' slope='2.8' intercept='-0.9'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-position: center center;
    background-size: 100% 100%, 1200px 1200px;
}

/* Global Subtle Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.15;
    /* High-res 1200x1200px fine grain */
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='1200' viewBox='0 0 1200 1200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 1200px 1200px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alice', serif;
    font-weight: 400;
    margin-bottom: 0.5em;
    color: #fff;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 0 40px 0;
}

header .logo img {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Social icons below logo */
.social-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-nav svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* Intro / Bio */
.intro {
    text-align: center;
    padding: 20px;
    max-width: 850px;
    margin: 0 auto 60px auto;
}

.intro h2 {
    font-family: 'Alice', serif;
    font-size: 1.25em;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro p {
    font-family: 'Alice', serif;
    font-size: 1.1em;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 100px;
    padding-bottom: 80px;
}

.episode-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.episode-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 25px;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.episode-card img:hover {
    transform: scale(1.02);
}

.episode-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'Alice', serif;
}

.episode-excerpt {
    font-size: 1.15em;
    font-style: italic;
    color: #fff; /* Brighter */
    margin-bottom: 25px;
    line-height: 1.3;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.episode-author {
    font-size: 1.1em;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-top: auto;
    line-height: 1.4;
}

/* Footer Navigation */
.footer-links {
    margin: 60px 0 40px 0;
    font-family: 'Alice', serif;
    font-size: 1.5em;
}

.footer-links a {
    margin: 0 5px;
}

/* Footer Details */
footer {
    text-align: center;
    padding: 100px 0;
}

.footer-logo img {
    max-width: 350px;
    opacity: 1;
}

.copyright {
    font-size: 0.9em;
    color: #444;
    margin-top: 40px;
    display: none; /* Hide copyright to match screenshot focus */
}

/* Episode Detail Page */
.episode-detail {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.episode-detail h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.episode-detail .description {
    margin-bottom: 50px;
}

.episode-detail .description p {
    font-size: 1.25em;
    margin: 10px 0;
}

.episode-detail img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid #222;
}

.audio-player {
    max-width: 700px;
    margin: 40px auto 60px auto;
}

.audio-player audio {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
}

/* Webkit (Chrome, Safari, Edge) audio styling */
.audio-player audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

.audio-player audio::-webkit-media-controls-current-time-display,
.audio-player audio::-webkit-media-controls-time-remaining-display {
    color: #fff;
}

/* Credits Section */

/* Static Pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.static-page h1 {
    font-size: 3em;
    margin-bottom: 40px;
}

.static-page p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
    body {
        background-image: none;
        background-color: #0b0b0b;
    }
}

@media (max-width: 950px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 40px;
    }
}

@media (max-width: 650px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .episode-detail h1 {
        font-size: 2em;
    }
    header .logo img {
        max-width: 100%;
    }
}
