/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Mockup Browser */
.mockup-browser {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.browser-bar {
    background: #e5e5e5;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.browser-content {
    background: #f5f5f5;
    padding: 20px;
    min-height: 300px;
}

.preview-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.preview-header {
    margin-bottom: 20px;
}

.search-bar-preview {
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.preview-item {
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    opacity: 0.3;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0 20px;
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: white;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.use-case {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.use-case h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.use-case p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    padding: 60px 0; /* Match yellow section */
    background: var(--gradient-2);
    color: white;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.cta.cta-connected {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 60px 0; /* 30% of previous 200px height */
}

.cta.cta-success {
    background: var(--success-color);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cta.cta-compact {
    padding: 20px 0;
}

.cta.cta-compact h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.cta.cta-compact #connectionStatus {
    font-size: 1rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.cta.cta-compact .connection-indicator {
    min-height: auto;
    margin-top: 0.5rem;
}

.cta.cta-compact .success-check {
    font-size: 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta > p, #connectionStatus {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.connection-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-check {
    font-size: 4rem;
    animation: scaleIn 0.5s ease;
}

.error-mark {
    font-size: 4rem;
    color: #ff6b6b;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Library Section */
.library {
    padding: 80px 0;
    background: var(--bg-light);
    min-height: 100vh;
}

.library-header {
    margin-bottom: 3rem;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.library-stats {
    display: flex;
    justify-content: center;
    gap: 45px; /* 50% larger than 30px */
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 22.5px 45px; /* 50% larger than 15px 30px */
    border-radius: 37.5px; /* 50% larger than 25px */
    font-size: 1.65rem; /* 50% larger than 1.1rem */
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.stat-badge span {
    color: var(--primary-color);
    font-size: 1.95rem; /* 50% larger than 1.3rem */
}

/* TV Shows Grid */
.tv-shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.tv-show-card {
    background: var(--gradient-1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tv-show-card::before {
    display: none;
}

.tv-show-card:not(.has-poster) {
    justify-content: center;
    padding: 20px;
}

.tv-show-card:not(.has-poster) .show-poster-overlay {
    display: none;
}

.tv-show-card:not(.has-poster) .show-info {
    text-align: center;
    width: 100%;
}

.tv-show-card:not(.has-poster) .show-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
}

.tv-show-card:not(.has-poster) .show-meta {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.tv-show-card.has-poster {
    background-color: #000;
    justify-content: flex-end;
}

.tv-show-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.show-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.95) 100%);
    pointer-events: none;
}

.show-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #5a5a5a;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.show-rating-inline {
    display: inline-block;
    background: #5a5a5a;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.show-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    display: none;
}

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

.show-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: var(--gradient-1);
}

.show-info {
    padding: 15px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.tv-show-card.has-poster .show-info {
    color: white;
}

.show-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.show-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
    min-width: 0;
}

.tv-show-card.has-poster .show-title {
    color: white;
}

.show-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.tv-show-card.has-poster .show-meta {
    color: rgba(255, 255, 255, 0.9);
}

.show-progress {
    margin-top: 8px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.show-progress-bar {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

/* Recently Watched Section */
.recent {
    padding: 80px 0;
    background: white;
}

.recently-watched-list {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.recent-episode-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
}

.recent-episode-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.recent-thumbnail {
    width: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gradient-1);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

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

.recent-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.recent-show-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.recent-show-title .show-rating-inline {
    background: #d0d0d0;
    color: #333;
}

.recent-episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.recent-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.recent-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
}

.show-more-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

.modal-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-poster {
    width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-info h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-plot {
    color: var(--text-light);
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.modal-meta span {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.modal-body-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-button {
    background: var(--bg-light);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
}

.seasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.season-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.season-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.season-card.season-complete {
    background: var(--success-color);
    color: white;
}

.season-card.season-complete:hover {
    background: #218838;
}

.season-card .season-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.season-card .season-episodes {
    font-size: 0.9rem;
    opacity: 0.8;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.episode-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.episode-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.episode-card.watched {
    opacity: 0.6;
}

.episode-thumbnail {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

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

.episode-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.episode-number {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.episode-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.episode-plot {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.episode-watched-badge {
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.episode-watched-toggle {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.episode-watched-toggle.watched {
    background: var(--success-color);
    color: white;
}

.episode-watched-toggle.watched:hover {
    background: #1e7e34;
}

.episode-watched-toggle.unwatched {
    background: #e9ecef;
    color: #6c757d;
}

.episode-watched-toggle.unwatched:hover {
    background: #dee2e6;
}

/* Episode Detail Modal */
.episode-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.episode-detail-thumbnail {
    width: 300px;
    height: 169px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-detail-show-title {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.episode-detail-info h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.episode-detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-light);
}

.episode-detail-meta span {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 6px;
}

.episode-detail-meta .episode-watched-badge {
    background: var(--success-color);
    color: white;
}

.episode-detail-plot {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--text-dark);
    color: white;
    text-align: center;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-image {
        order: -1;
    }

    .nav-links {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .cta-form {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .modal-header {
        grid-template-columns: 1fr;
    }
    
    .modal-poster {
        margin: 0 auto;
    }
    
    .seasons-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .episode-detail-header {
        grid-template-columns: 1fr;
    }
    
    .episode-detail-thumbnail {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .seasons-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Library Stats - half size on mobile */
    .library-stats {
        gap: 22.5px; /* Half of new desktop 45px */
        margin-bottom: 1.5rem;
    }
    
    .stat-badge {
        padding: 11.25px 22.5px; /* Half of new desktop 22.5px 45px */
        border-radius: 18.75px; /* Half of new desktop 37.5px */
        font-size: 0.825rem !important; /* Half of new desktop 1.65rem */
    }
    
    .stat-badge span {
        font-size: 0.975rem !important; /* Half of new desktop 1.95rem */
    }
    
    /* TV Show Cards - 50% of desktop size on mobile */
    .tv-shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .tv-show-card {
        border-radius: 6px;
    }
    
    .tv-show-card:not(.has-poster) {
        padding: 10px;
    }
    
    .tv-show-card:not(.has-poster) .show-title {
        font-size: 0.6rem;
    }
    
    .tv-show-card:not(.has-poster) .show-meta {
        font-size: 0.425rem; /* Half of desktop 0.85rem */
    }
    
    .tv-show-card:hover {
        transform: translateY(-4px);
    }
    
    .show-rating {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 0.375rem;
        border-radius: 2px;
    }
    
    .show-info {
        padding: 5px;
    }
    
    .show-title {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    
    .show-title-text {
        font-size: 0.6rem;
    }
    
    .show-meta {
        font-size: 0.425rem !important; /* Half of desktop 0.85rem - for seasons/episodes counters */
        gap: 4px;
    }
    
    .show-meta span {
        padding: 2px 5px;
        font-size: 0.425rem !important; /* Ensure spans inherit the half size */
    }
    
    .show-progress {
        height: 2px;
        margin-top: 4px;
    }
}
