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

:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --header-bg: #1a1a1a;
    --header-text: #ffffff;
    --accent-color: #667eea;
    --accent-hover: #5568d3;
    --card-bg: #ffffff;
    --hero-gradient-start: #667eea;
    --hero-gradient-end: #764ba2;
    --recommended-gradient-start: #f093fb;
    --recommended-gradient-end: #f5576c;
    --pinned-gradient-start: #667eea;
    --pinned-gradient-end: #764ba2;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #242424;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: #404040;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --header-bg: #0f0f0f;
    --header-text: #f5f5f5;
    --accent-color: #8b9dff;
    --accent-hover: #a5b4ff;
    --card-bg: #2d2d2d;
    --hero-gradient-start: #8b9dff;
    --hero-gradient-end: #9b7dd4;
    --recommended-gradient-start: #f093fb;
    --recommended-gradient-end: #f5576c;
    --pinned-gradient-start: #8b9dff;
    --pinned-gradient-end: #9b7dd4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

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

/* Header and Navigation */
.header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed) ease;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-color), var(--hero-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--header-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu span {
    color: var(--header-text);
    font-weight: 500;
}

.btn-profile {
    color: var(--accent-color) !important;
}

.btn-logout {
    color: #ff6b6b !important;
}

/* Dark mode toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--header-text);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

.announcement-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 1.75rem;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.announcement-text {
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    letter-spacing: 0.3px;
    max-width: 900px;
}

/* Add a close button for dismissible announcements */
.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Dark mode support */
[data-theme="dark"] .announcement-banner {
    background: linear-gradient(135deg, #8b9dff 0%, #9b7dd4 100%);
    box-shadow: 0 4px 20px rgba(139, 157, 255, 0.3);
}

/* Mobile responsive for announcement */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 1rem 0;
    }
    
    .announcement-content {
        flex-direction: row;
        gap: 0.75rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .announcement-text {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .announcement-icon {
        font-size: 1.5rem;
    }
    
    .announcement-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        right: 0.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    margin-bottom: 2rem;
    border-radius: 16px;
    transition: background-color var(--transition-speed) ease;
}

.section.bg-light {
    background-color: var(--bg-secondary);
}

.section h2 {
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.show-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    position: relative;
}

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

.show-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.show-card:hover img {
    transform: scale(1.05);
}

.show-card h3 {
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.show-card .show-info {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Show Card Simple Rating - Enhanced Design */
.show-card .rating {
    display: inline-flex;
    align-items: center;
    color: #ffa000;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 10px;
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.show-card .rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.show-card .rating::before {
    content: '★ ';
    color: #ffd700;
    font-size: 1.1rem;
    margin-right: 3px;
    filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.5));
}

[data-theme="dark"] .show-card .rating {
    color: #ffd54f;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.25);
}

/* Show Type Filters */
.show-type-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.show-type-filters .filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.show-type-filters .filter-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.show-type-filters .filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Show Type Badge */
.show-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.status-running {
    background: #10b981;
    color: white;
}

.status-badge.status-ended {
    background: #6b7280;
    color: white;
}

.status-badge.status-upcoming {
    background: #3b82f6;
    color: white;
}

/* Show Card Content */
.show-card-content {
    padding: 1rem;
}

.show-card-content h3 {
    padding: 0;
    margin-bottom: 0.75rem;
    line-height: 1.2em;
    height: 3.1em;
    overflow: hidden;
}

.show-card-content .show-info {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.show-card-content .show-info > * {
    flex-shrink: 0;
}

/* Last Updated */
.last-updated {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-style: italic;
}

/* No Shows Message */
.no-shows-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.placeholder-poster {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.placeholder-poster-large {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.news-content h3 a {
    color: var(--text-primary);
}

.news-content h3 a:hover {
    color: var(--accent-color);
}

.news-content p {
    color: var(--text-secondary);
}

.news-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.news-meta span {
    margin-right: 1rem;
}

.news-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-link {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.category-link:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Show Detail Container */
.show-detail-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.show-detail {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Show Detail Header Section */
.show-detail-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--card-bg) 100%);
}

.show-poster-wrapper {
    position: relative;
}

.show-poster {
    position: sticky;
    top: 100px;
}

.show-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease;
}

.show-poster img:hover {
    transform: scale(1.02);
}

.show-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.show-title-section {
    margin-bottom: 0.5rem;
}

.show-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.original-title {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

/* Meta Grid Layout */
.show-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.meta-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.meta-row.badges-row,
.meta-row.tags-row,
.meta-row.update-row {
    grid-template-columns: 100px 1fr;
}

.meta-row.badges-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.meta-row.last-updated-row {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.meta-row.last-updated-row .meta-value {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Modern Rating Cards */
.ratings-cards-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rating-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 120px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}

.rating-card-link {
    cursor: pointer;
}

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

.rating-card-imdb {
    border-color: #f5c518;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
}

[data-theme="dark"] .rating-card-imdb {
    background: linear-gradient(135deg, #2d2a1f 0%, #363227 100%);
}

.rating-card-douban {
    border-color: #00b51d;
    background: linear-gradient(135deg, #e6f7ea 0%, #f0faf2 100%);
}

[data-theme="dark"] .rating-card-douban {
    background: linear-gradient(135deg, #1f2d21 0%, #273630 100%);
}

.rating-card-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-card-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.rating-card-stars {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.rating-card-votes {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.rating-card-loading {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rating-card-loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Tag Badges */
.tag-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.tag-badge:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Update Day Badges */
.update-day-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Show Card Rating Compact - Enhanced Design */
.show-rating-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 10px;
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    width: fit-content;
}

.show-rating-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.show-rating-compact .rating-score {
    color: #ffa000;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.show-rating-compact .rating-score::before {
    content: '★ ';
    color: #ffd700;
    font-size: 1.2rem;
    margin-right: 2px;
    filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.5));
}

.show-rating-compact .rating-source {
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .show-rating-compact {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.25);
}

[data-theme="dark"] .show-rating-compact .rating-score {
    color: #ffd54f;
}

[data-theme="dark"] .show-rating-compact .rating-source {
    background: linear-gradient(135deg, rgba(139, 157, 255, 0.15) 0%, rgba(155, 125, 212, 0.15) 100%);
    border-color: rgba(139, 157, 255, 0.3);
}

/* Placeholder Poster Large */
.placeholder-poster-large {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1rem;
    border-radius: 16px;
}

/* Episode Badge */
.episode-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Show Actions */
.show-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-action .btn-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Content Sections */
.show-description {
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.show-description h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.show-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Episodes Section */
.episodes-section {
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.episodes-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.episodes-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--text-primary);
}

.season-episodes {
    display: grid;
    gap: 0.75rem;
}

.episode-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
}

.episode-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.episode-number {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.episode-title {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.episode-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Show Stats */
.show-stats {
    padding: 1.5rem 2.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    margin: 0 2.5rem;
}

.show-stats p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.show-stats strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Episodes List */
.episodes-list {
    display: grid;
    gap: 1.5rem;
}

.episode-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

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

.episode-poster img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.episode-info {
    flex: 1;
}

.episode-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.episode-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.air-date {
    color: var(--accent-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background-color: #ff5252;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Forms */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
    user-select: none;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-error {
    background-color: #ffe0e0;
    color: #c62828;
    border: 2px solid #ffcdd2;
}

[data-theme="dark"] .alert-error {
    background-color: #4a2020;
    color: #ff8a80;
    border: 2px solid #5d2424;
}

.alert-success {
    background-color: #e0f7e0;
    color: #2e7d32;
    border: 2px solid #c8e6c9;
}

[data-theme="dark"] .alert-success {
    background-color: #1e3a1e;
    color: #81c784;
    border: 2px solid #2e4a2e;
}

/* Search Bar */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

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

/* Footer */
.footer {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
    transition: background-color var(--transition-speed) ease;
}

.footer a {
    color: var(--header-text);
    margin: 0 0.75rem;
    transition: color var(--transition-speed) ease;
}

.footer a:hover {
    color: var(--accent-color);
}

/* Schedule Page Styles */
.schedule-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.schedule-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.date-navigation {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-nav-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.date-nav-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.current-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
    text-align: center;
}

.schedule-grid {
    display: grid;
    gap: 1.5rem;
}

.schedule-day {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.day-date {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.schedule-episodes {
    display: grid;
    gap: 1rem;
}

.schedule-episode {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.schedule-episode:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.schedule-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-show-poster {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

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

.schedule-show-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.schedule-show-title a {
    color: var(--text-primary);
}

.schedule-show-title a:hover {
    color: var(--accent-color);
}

.schedule-episode-title {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.schedule-episode-meta {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.no-episodes {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Today View Styles */
.schedule-today-view {
    margin-top: 1.5rem;
}

.today-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.today-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.today-day {
    font-size: 1.8rem;
    font-weight: 700;
}

.today-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.today-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.schedule-episodes-list {
    display: grid;
    gap: 1.25rem;
}

.schedule-episode-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.schedule-episode-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.episode-time-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: fit-content;
}

.episode-poster {
    flex-shrink: 0;
}

.poster-image {
    width: 100px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.placeholder-poster {
    width: 100px;
    height: 150px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    border: 2px dashed var(--border-color);
}

.episode-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.episode-show-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.episode-show-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.episode-show-title a:hover {
    color: var(--accent-color);
}

.episode-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.episode-number {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.episode-separator {
    color: var(--text-tertiary);
    font-weight: 300;
}

.episode-name {
    color: var(--text-secondary);
    font-size: 1rem;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.meta-separator {
    color: var(--text-tertiary);
}

.episode-network,
.episode-runtime {
    color: var(--text-tertiary);
}

/* Updated today badge */
.updated-today-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.75rem;
    vertical-align: middle;
}

/* Section Header with "More" link */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin: 0;
}

.more-link {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.more-link:hover {
    background: var(--bg-secondary);
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* Corner Badges for show cards */
.corner-badge {
    position: absolute;
    top: 8px;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.corner-badge-left {
    left: 8px;
}

.corner-badge-right {
    right: 8px;
}

.corner-badge-right2 {
    top: 40px;
    right: 8px;
}

.corner-badge-right3 {
    top: 70px;
    right: 8px;
}

.corner-badge-type {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

[data-theme="dark"] .corner-badge-type {
    background: linear-gradient(135deg, rgba(139, 157, 255, 0.95) 0%, rgba(155, 125, 212, 0.95) 100%);
}

.corner-badge-updated {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
}

.corner-badge-upcoming {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
}

.corner-badge-update-schedule {
    background: linear-gradient(135deg, rgba(171, 212, 26, 0.95) 0%, rgba(140, 175, 13, 0.95) 100%);
}

.corner-badge-update-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
}

[data-theme="dark"] .corner-badge-update-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
}

/* Episode ratings on the right side */
.episode-ratings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: center;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    min-width: 100px;
    min-height: 100px;
}

.rating-label {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.rating-score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.douban-rating {
    border: 2px solid #00b51d;
}

.douban-rating .rating-score {
    color: #00b51d;
}

.imdb-rating {
    border: 2px solid #f5c518;
}

.imdb-rating .rating-score {
    color: #f5c518;
}

.no-episodes-today {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 2rem;
}

.no-episodes-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-episodes-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-episodes-hint {
    color: var(--text-secondary);
    font-size: 1rem;
}

.today-btn {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.today-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.schedule-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--header-text);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 99;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        text-align: left;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    
    .user-menu span {
        padding: 1rem;
        width: 100%;
        display: block;
    }
    
    .navbar .container {
        gap: 1rem;
    }
    
    .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    /* Show Detail - Mobile */
    .show-detail-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .show-detail {
        border-radius: 16px;
    }

    .show-detail-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .show-poster {
        position: relative;
        top: 0;
        max-width: 240px;
        margin: 0 auto;
    }

    .show-poster img {
        border-radius: 12px;
    }

    .show-title {
        font-size: 1.75rem;
    }

    .original-title {
        font-size: 1rem;
    }

    .meta-row {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
        padding: 0.4rem 0;
    }
    .meta-row.badges-row,
    .meta-row.tags-row,
    .meta-row.update-row {
        grid-template-columns: 80px 1fr;
    }

    .meta-label {
        font-size: 0.85rem;
    }

    .meta-value {
        font-size: 0.9rem;
    }

    .show-meta-grid {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    /* Rating cards - mobile */
    .ratings-cards-container {
        justify-content: center;
        gap: 0.75rem;
    }

    .rating-card {
        min-width: 110px;
        padding: 1rem 1.25rem;
    }

    .rating-card-score {
        font-size: 2rem;
    }

    .rating-card-stars {
        font-size: 0.9rem;
    }

    .show-actions {
        margin-top: 1.25rem;
    }

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

    /* Content sections - mobile */
    .show-description,
    .episodes-section {
        padding: 1.5rem;
    }

    .show-description h2,
    .episodes-section h2 {
        font-size: 1.5rem;
    }

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

    .episodes-list h3 {
        font-size: 1.15rem;
    }

    .episode-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .episode-number {
        font-size: 0.9rem;
    }

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

    .episode-date {
        font-size: 0.8rem;
        text-align: left;
    }

    .show-stats {
        margin: 0 1.5rem;
        padding: 1.25rem;
    }
    
    /* Episode cards - mobile (for my schedule page) */
    .episode-card {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }
    
    .episode-poster {
        flex-shrink: 0;
    }
    
    .episode-poster img {
        width: 80px;
        height: 120px;
    }
    
    .episode-info h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .episode-info p {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .episodes-list {
        gap: 1rem;
    }
    
    .schedule-section {
        padding: 1.5rem 0;
    }
    
    .schedule-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }
    
    .schedule-episode {
        flex-direction: column;
    }
    
    .schedule-time {
        text-align: left;
    }
    
    .schedule-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .date-navigation {
        width: 100%;
        justify-content: center;
    }
    
    /* New schedule today view - mobile */
    .schedule-episode-card {
        flex-direction: row;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .episode-time-badge {
        width: auto;
        padding: 0.5rem 0.75rem;
        display: none; /* Hide time badge on mobile for space */
    }
    
    .episode-poster {
        width: auto;
        display: block;
        flex-shrink: 0;
    }
    
    .poster-image {
        width: 80px;
        height: 120px;
    }
    
    .placeholder-poster {
        width: 80px;
        height: 120px;
        font-size: 0.7rem;
    }
    
    .episode-details {
        flex: 1;
        gap: 0.35rem;
    }
    
    .episode-show-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .episode-info {
        gap: 0.35rem;
    }
    
    .episode-number {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .episode-meta {
        font-size: 0.8rem;
    }
    
    /* Mobile styles for new elements */
    .episode-ratings {
        flex-direction: column;
        align-items: flex-end;
        width: auto;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .more-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .corner-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 6px;
        max-width: 42%;
    }
    
    .corner-badge-left {
        left: 6px;
    }
    
    .corner-badge-right {
        right: 6px;
    }
    
    .corner-badge-right2 {
        top: 30px;
        right: 6px;
    }
    
    .corner-badge-right3 {
        top: 50px;
        right: 6px;
    }

    .rating-item {
        flex: none;
        min-width: 60px;
        min-height: auto;
        padding: 0.35rem 0.5rem;
    }
    
    .rating-label {
        font-size: 0.7rem;
    }
    
    .rating-score {
        font-size: 1rem;
    }
    
    .updated-today-badge {
        display: inline-block;
        margin-left: 0.5rem;
        margin-top: 0;
        text-align: center;
        width: fit-content;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .schedule-container {
        padding: 1rem;
    }
    
    .today-banner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .today-banner-text {
        display: block;
        align-items: center;
    }
    
    .today-day {
        font-size: 1.3rem;
    }
    
    .today-date {
        font-size: 0.95rem;
    }
    
    .today-count {
        padding: 0.4rem 1rem;
        font-size: 0.95rem;
    }
    
    .schedule-episodes-list {
        gap: 1rem;
    }
    
    .date-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .current-date {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    /* Show type filters - mobile */
    .show-type-filters {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .show-type-filters .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Show card - mobile */
    .show-card h3 {
        font-size: 0.95rem;
    }
    
    .show-card-content .show-info {
        font-size: 0.8rem;
        gap: 0.35rem;
    }
    
    /* Enhanced rating styles for mobile */
    .show-card .rating {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .show-card .rating::before {
        font-size: 1rem;
    }
    
    .show-rating-compact {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .show-rating-compact .rating-score {
        font-size: 1rem;
    }
    
    .show-rating-compact .rating-score::before {
        font-size: 1.1rem;
    }
    
    .show-rating-compact .rating-source {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .show-type-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .shows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Show detail - small mobile */
    .show-detail-header {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .show-poster {
        max-width: 200px;
    }

    .show-title {
        font-size: 1.5rem;
    }

    .original-title {
        font-size: 0.95rem;
    }

    .meta-row {
        grid-template-columns: 70px 1fr;
        gap: 0.5rem;
    }
    .meta-row.badges-row,
    .meta-row.tags-row,
    .meta-row.update-row {
        grid-template-columns: 70px 1fr;
    }
    
    .meta-label {
        font-size: 0.8rem;
    }

    .meta-value {
        font-size: 0.85rem;
    }

    .show-meta-grid {
        padding: 1rem;
        gap: 0.6rem;
    }

    /* Rating cards - small mobile */
    .ratings-cards-container {
        gap: 0.6rem;
    }

    .rating-card {
        min-width: 100px;
        padding: 0.85rem 1rem;
    }

    .rating-card-header {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .rating-card-score {
        font-size: 1.75rem;
    }

    .rating-card-stars {
        font-size: 0.85rem;
    }

    .rating-card-votes {
        font-size: 0.7rem;
    }

    .btn-action {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-action .btn-icon {
        font-size: 1.1rem;
    }

    /* Content sections - small mobile */
    .show-description,
    .episodes-section {
        padding: 1.25rem;
    }

    .show-description h2,
    .episodes-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .show-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .episodes-list h3 {
        font-size: 1.05rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .episode-item {
        padding: 0.85rem;
    }

    .episode-number {
        font-size: 0.85rem;
    }

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

    .episode-date {
        font-size: 0.75rem;
    }

    .show-stats {
        margin: 0 1.25rem;
        padding: 1rem;
    }

    .show-stats p {
        font-size: 0.85rem;
    }

    /* Comments section - small mobile */
    .comments-section {
        padding: 1.25rem;
    }

    .comments-title {
        font-size: 1.3rem;
    }

    .trailer-section {
        padding: 1.25rem;
    }

    .trailer-section h2 {
        font-size: 1.3rem;
    }
    
    /* Schedule page - small mobile optimizations */
    .schedule-container {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .schedule-header {
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .schedule-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .date-navigation {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .date-nav-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
        flex: 1 1 auto;
        min-width: 70px;
    }
    
    .current-date {
        width: 100%;
        min-width: auto;
        font-size: 0.85rem;
        padding: 0.3rem;
    }
    
    .today-banner {
        padding: 0.85rem 1rem;
        margin-bottom: 1rem;
        gap: 0.6rem;
    }
    
    .today-day {
        font-size: 1.15rem;
    }
    
    .today-date {
        font-size: 0.85rem;
    }
    
    .today-count {
        padding: 0.35rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .schedule-episodes-list {
        gap: 0.85rem;
    }
    
    .schedule-episode-card {
        padding: 0.85rem;
        gap: 0.65rem;
    }
    
    .poster-image {
        width: 70px;
        height: 105px;
    }
    
    .placeholder-poster {
        width: 70px;
        height: 105px;
        font-size: 0.65rem;
    }
    
    .episode-show-title {
        font-size: 0.9rem;
        line-height: 1.25;
    }
    
    .episode-number {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .episode-meta {
        font-size: 0.75rem;
    }
    
    .rating-item {
        min-width: 55px;
        padding: 0.3rem 0.4rem;
    }
    
    .rating-label {
        font-size: 0.65rem;
    }
    
    .rating-score {
        font-size: 0.9rem;
    }
    
    .updated-today-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.35rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .more-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .corner-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 5px;
        max-width: 40%;
    }
    
    .corner-badge-left {
        left: 5px;
    }
    
    .corner-badge-right {
        right: 5px;
    }

    .corner-badge-right2 {
        top: 26px;
        right: 5px;
    }
    
    .corner-badge-right3 {
        top: 46px;
        right: 5px;
    }
    
    .no-episodes-today {
        padding: 2.5rem 1rem;
    }
    
    .no-episodes-icon {
        font-size: 3rem;
    }
    
    .no-episodes-text {
        font-size: 1.1rem;
    }
    
    .no-episodes-hint {
        font-size: 0.9rem;
    }
    
    /* Episode cards - small mobile (for my schedule page) */
    .episode-card {
        gap: 0.75rem;
        padding: 0.85rem;
    }
    
    .episode-poster img {
        width: 70px;
        height: 105px;
    }
    
    .episode-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    
    .episode-info p {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    .episodes-list {
        gap: 0.85rem;
    }
    
    .schedule-section {
        padding: 1.25rem 0;
    }
    
    .schedule-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .container {
        padding: 0 15px;
    }
    }
    
    /* Show type filters - small mobile */
    .show-type-filters {
        gap: 0.4rem;
        padding: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .show-type-filters .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Show card - small mobile */
    .show-card img,
    .placeholder-poster {
        height: 240px;
    }
    
    .show-card h3 {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .show-card-content {
        padding: 0.75rem;
    }
    
    .show-card-content .show-info {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    /* Enhanced rating styles for small mobile */
    .show-card .rating {
        font-size: 0.85rem;
        padding: 4px 9px;
    }
    
    .show-card .rating::before {
        font-size: 0.95rem;
    }
    
    .show-rating-compact {
        padding: 5px 9px;
        gap: 5px;
    }
    
    .show-rating-compact .rating-score {
        font-size: 0.95rem;
    }
    
    .show-rating-compact .rating-score::before {
        font-size: 1rem;
    }
    
    .show-rating-compact .rating-source {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
    
    .show-type-badge,
    .status-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Popular Tags Styles */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag-badge-popular {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.tag-badge-popular:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

.tag-badge-popular .tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .popular-tags {
        gap: 0.5rem;
    }
    
    .tag-badge-popular {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Comments Section */
.comments-section {
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
}

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

.comment-count {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.login-prompt a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-form-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img,
.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.comment-form {
    flex: 1;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-speed) ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: background var(--transition-speed) ease;
}

.comment-item:hover {
    background: var(--bg-primary);
}

.comment-content-wrapper {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-delete {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-speed) ease;
}

.comment-delete:hover {
    color: #e74c3c;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Responsive for Comments */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem;
    }

    .comment-form-container,
    .comment-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .trailer-section {
        padding: 1.5rem;
    }

    .trailer-section h2 {
        font-size: 1.5rem;
    }
}

/* Recommended and Pinned Badges Styles */
.recommended-badge,
.pinned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--recommended-gradient-start) 0%, var(--recommended-gradient-end) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pinned-badge {
    background: linear-gradient(135deg, var(--pinned-gradient-start) 0%, var(--pinned-gradient-end) 100%);
}

/* Update status badges for today's updates section */
.update-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.update-status-updated {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.update-status-upcoming {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.show-card-recommended,
.show-card-pinned {
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, var(--recommended-gradient-start) 0%, var(--recommended-gradient-end) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.show-card-pinned {
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, var(--pinned-gradient-start) 0%, var(--pinned-gradient-end) 100%);
}

/* Pinned shows section */
.pinned-shows-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.pinned-shows-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Recommended section */
.section-recommended {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    padding: 3rem 0;
}

.section-recommended h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* View count display */
.show-view-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.show-view-count small {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Trailer section */
.trailer-section {
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.trailer-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.trailer-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.trailer-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.trailer-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Show stats display */
.show-stats {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.show-stats p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.show-stats strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Admin form checkbox labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommended-badge,
    .pinned-badge,
    .update-status-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }
    
    .pinned-shows-section,
    .section-recommended {
        padding: 1.5rem 1rem;
    }
    
    .trailer-section {
        padding: 1.5rem 1rem;
    }
}

/* Tag Badge Link (clickable tags) */
.tag-badge-link {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    text-decoration: none;
}

.tag-badge-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Small Tag Badge for show cards */
.tag-badge-small {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.show-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.pagination-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.pagination-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-btn {
        width: 100%;
        text-align: center;
    }
}

/* Filter Indicator */
.filter-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
}

.filter-indicator strong {
    color: var(--accent-color);
}

.btn-clear-filter {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.btn-clear-filter:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

/* Profile Page Styles */
.profile-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.profile-section:first-of-type {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Schedule Category Section Styles */
.schedule-category-section {
    margin-bottom: 3rem;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-header.collapsible {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.category-header.collapsible:hover {
    opacity: 0.8;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.collapse-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.schedule-category-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.category-icon {
    font-size: 1.75rem;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    min-width: 2rem;
}

.category-content {
    transition: all 0.3s ease;
}

/* Pagination styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Weekly Schedule Grid */
.weekly-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weekly-day-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.weekly-day-section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.weekly-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.day-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.day-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.weekly-shows-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Weekly Show Card (Compact) */
.weekly-show-card {
    display: flex;
    gap: 0.75rem;
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.weekly-show-card:hover {
    transform: translateX(4px);
    border-color: var(--accent-color);
}

.weekly-show-poster {
    flex-shrink: 0;
}

.poster-image-small {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.placeholder-poster-small {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    border: 1px dashed var(--border-color);
}

.weekly-show-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.weekly-show-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.weekly-show-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.weekly-show-title a:hover {
    color: var(--accent-color);
}

.updated-today-badge-small {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.weekly-show-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.episode-number-small {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
}

.weekly-show-rating {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rating-score-small {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .weekly-schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .schedule-category-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .weekly-day-section {
        padding: 1rem;
    }
    
    .weekly-show-card {
        padding: 0.6rem;
    }
    
    .poster-image-small {
        width: 50px;
        height: 75px;
    }
    
    .placeholder-poster-small {
        width: 50px;
        height: 75px;
    }
    
    .weekly-show-title {
        font-size: 0.9rem;
    }
}

/* Advertisement Banner Styles */
.ad-banner {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    text-align: center;
}

.ad-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ad-banner .ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-banner .ad-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ad-banner .ad-content a {
    display: inline-block;
}

.ad-header {
    margin-bottom: 0;
}

.ad-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}

.ad-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ad-sidebar .ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-sidebar .ad-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .ad-banner {
        padding: 0.75rem 0;
    }
    
    .ad-sidebar {
        padding: 0.75rem;
    }
}

/* Pan Links (Cloud Storage) Section Styles */
.pan-links-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.pan-links-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.pan-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pan-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
    box-shadow: var(--shadow-sm);
}

.pan-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.pan-icon {
    font-size: 1.2rem;
}

.pan-name {
    font-weight: 600;
}

.pan-password-hint {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

/* Thunder/迅雷 Button */
.pan-xunlei {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
}

.pan-xunlei:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    border-color: #2980b9;
}

/* Baidu/百度 Button */
.pan-baidu {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-color: #2196F3;
}

.pan-baidu:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-color: #1976D2;
}

/* Aliyun/阿里云 Button */
.pan-aliyun {
    background: linear-gradient(135deg, #FF6A00 0%, #EE5A00 100%);
    border-color: #FF6A00;
}

.pan-aliyun:hover {
    background: linear-gradient(135deg, #EE5A00 0%, #DD4A00 100%);
    border-color: #EE5A00;
}

/* Quark/夸克 Button */
.pan-quark {
    background: linear-gradient(135deg, #6B4DE6 0%, #5438C5 100%);
    border-color: #6B4DE6;
}

.pan-quark:hover {
    background: linear-gradient(135deg, #5438C5 0%, #4329B4 100%);
    border-color: #5438C5;
}

/* Default Pan Button */
.pan-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
}

.pan-default:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    border-color: #5a6268;
}

.pan-links-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Locked Pan Links Section */
.pan-links-locked {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.pan-links-locked .pan-links-title {
    color: #ffa000;
}

.pan-links-locked-message {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Pan Password Copy Notification */
.pan-copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsive for Pan Links */
@media (max-width: 768px) {
    .pan-links-section {
        padding: 1rem;
        margin-top: 1.25rem;
    }
    
    .pan-links-title {
        font-size: 1.05rem;
    }
    
    .pan-links-container {
        gap: 0.6rem;
    }
    
    .pan-link-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 0.3rem);
        justify-content: center;
    }
    
    .pan-password-hint {
        display: none; /* Hide password hint on mobile, show in notification instead */
    }
    
    .pan-copy-notification {
        bottom: 80px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pan-link-btn {
        flex: 1 1 100%;
    }
    
    .pan-links-note {
        font-size: 0.8rem;
    }
}

/* Error Pages */
.error-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--hero-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-suggestions {
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 1rem;
}

.error-suggestions p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.error-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Mobile responsive for error page */
@media (max-width: 768px) {
    .error-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-code {
        font-size: 4.5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}
