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

:root {
    --primary-color: #1DB954;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --max-width: 800px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #000;
}

/* Focus styles for better keyboard navigation */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Section */
.main-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6rem 0 4rem;
}

.logo-svg {
    width: 80%;
    max-width: 400px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    opacity: 0.95;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 0 auto 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.9rem;
    border-radius: 24px;
    display: block;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.description {
    margin-bottom: 3rem;
}

.description p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Spotify Button */
.spotify-button {
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1aa34a;
    transform: translateY(-2px);
}

.icon {
    width: 24px;
    height: 24px;
}

/* Episode Section */
.episode-section {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.episode-header {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.episode-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.episode-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}


.spotify-embed {
    border-radius: 12px;
}

/* All Episodes Section */
.all-episodes-section {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.all-episodes-section .episode {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.all-episodes-section .episode:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.all-episodes-section .episode:first-child {
    padding-top: 0;
}

.episode-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.episode-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.episode-link:hover {
    color: #22d3ee;
    transform: translateX(5px);
}

.featured-episode {
    border: 2px solid rgba(134, 239, 172, 0.3);
    padding: 2rem;
    border-radius: 12px;
    background: rgba(134, 239, 172, 0.05);
}

/* Accessibility Helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Contact Section */
.contact {
    margin-bottom: 3rem;
}

.contact-text {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.x-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.x-link:hover {
    opacity: 0.7;
}

.x-logo {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

/* Twitter Timeline Section */
.twitter-timeline-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.timeline-header {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.twitter-timeline-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 3rem;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.video-loading p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Hide loading when video is ready */
.video-background.loaded .video-loading {
    display: none;
}

/* Twitter Connect Card */
.twitter-connect-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-large svg {
    width: 100%;
    height: 100%;
}

.social-cta-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-cta-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-follow-btn:hover {
    background-color: #111;
    border-color: #555;
    transform: translateY(-2px);
}

.social-follow-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-background {
        display: none;
    }

    .main-section {
        background-image: url('../images/video-poster.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .main-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    }

    .logo-svg {
        max-width: 280px;
    }

    .tagline {
        font-size: 1rem;
        padding: 0.5rem 1.25rem;
        border-radius: 20px;
    }

    .description p {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .episode-section {
        padding: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .twitter-timeline-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        max-width: 224px;
    }

    .tagline {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        border-radius: 18px;
    }

    .episode-header {
        font-size: 1.5rem;
    }

    .episode-title {
        font-size: 1.125rem;
    }

    .timeline-header {
        font-size: 1.25rem;
    }
}