/* Watchlazy - Extracted CSS for SSR */

:root {
    --primary: #FF4757;
    --secondary: #FFA502;
    --accent: #FFD93D;
    --bg-dark: #0F0F1A;
    --bg-surface: #1A1A2E;
    --bg-elevated: #252540;
    --text: #FFFFFF;
    --text-muted: #8B8B9A;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo-icon {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1.5rem;
    min-width: 140px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
    animation: bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

/* Skeleton Loading Cards */
.skeleton-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.movie-card.skeleton {
    flex-shrink: 0;
    width: 160px;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 0.75rem;
}

.skeleton-title {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-meta {
    height: 12px;
    width: 60%;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Light mode theme */
[data-theme="light"] {
    --bg-dark: #F5F5F7;
    --bg-surface: #FFFFFF;
    --bg-elevated: #E8E8ED;
    --text: #1A1A2E;
    --text-muted: #6B6B7A;
}

[data-theme="light"] header {
    background: linear-gradient(135deg, rgba(255,71,87,0.08) 0%, rgba(255,165,2,0.08) 100%);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .logo-text {
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--primary);
}

[data-theme="light"] .logo-text span {
    color: var(--secondary);
}

[data-theme="light"] .dropdown-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .movie-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .movie-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .browse-filters select {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .alphabet-filter a {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pagination a,
[data-theme="light"] .pagination span {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text);
}

.container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 15px;
}

/* Header */
header {
    position: relative;
    z-index: 100;
    text-align: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255,71,87,0.1) 0%, rgba(255,165,2,0.1) 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-text span {
    font-weight: 400;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--gradient);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px 0;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 71, 87, 0.15);
    color: var(--primary);
}

.dropdown-menu a.see-all {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    padding-top: 12px;
    color: var(--primary);
    font-weight: 500;
}

.dropdown-menu-genres {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-width: 280px;
}

.dropdown-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 380px;
}

.dropdown-menu-genres a.see-all {
    grid-column: 1 / -1;
}

/* Search */
.search-box {
    display: flex;
    gap: 0;
    max-width: 220px;
    flex: 1 1 auto;
    min-width: 100px;
}

.search-box input {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 25px 0 0 25px;
    background: var(--bg-surface);
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}

.search-box button {
    padding: 8px 12px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: var(--gradient);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    filter: brightness(1.1);
}

.search-box button svg {
    width: 16px;
    height: 16px;
}

/* Search Autocomplete */
.search-box {
    position: relative;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
}

.autocomplete-item:first-child {
    border-radius: 12px 12px 0 0;
}

.autocomplete-item:last-child {
    border-radius: 0 0 12px 12px;
}

.autocomplete-item:only-child {
    border-radius: 12px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(255, 71, 87, 0.15);
}

.autocomplete-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-surface);
}

.autocomplete-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.autocomplete-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

[data-theme="light"] .search-autocomplete {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Browse Header */
.browse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.browse-header h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.browse-header .movie-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 10px;
}

.browse-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.browse-filters select {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.browse-filters select:hover,
.browse-filters select:focus {
    border-color: var(--primary);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.1);
}

/* Advanced Filters Panel */
.advanced-filters {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    margin-bottom: 15px;
}

.filter-group label:first-child {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.multi-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip input {
    display: none;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--text);
}

.chip.selected {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.chip.exclude.selected {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

.apply-filters-btn {
    padding: 10px 24px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.apply-filters-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.clear-filters-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

@media (max-width: 768px) {
    .advanced-filters {
        padding: 15px;
    }

    .chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-surface);
    border-radius: 12px;
}

.alphabet-filter a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.alphabet-filter a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.alphabet-filter a.active {
    background: var(--gradient);
}

.alphabet-filter a.all {
    width: auto;
    padding: 0 15px;
}

/* Genre Section */
.genre-section {
    margin-bottom: 40px;
}

.genre-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.genre-section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.genre-section-header a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.genre-section-header a:hover {
    text-decoration: underline;
}

.movies-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.movies-row::-webkit-scrollbar {
    height: 6px;
}

.movies-row::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 3px;
}

.movies-row::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

.movies-row .movie-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* All Genres Page */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.genre-card:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.genre-card .name {
    font-weight: 600;
}

.genre-card .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Movie Card */
.movie-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: rgba(255, 71, 87, 0.3);
}

.movie-card a {
    text-decoration: none;
    color: inherit;
}

.poster-container {
    position: relative;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-title a {
    color: inherit;
    text-decoration: none;
}

.movie-title a:hover {
    color: var(--primary);
}

.movie-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.movie-rating {
    color: var(--secondary);
    font-weight: 600;
}

.movie-synopsis {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.movie-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 5px 12px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.service-tag-free {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
}

.service-tag-sub {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.service-tag-rent {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

/* Provider Badge */
.provider-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Free Movies Page */
.free-movies-section {
    padding-bottom: 40px;
}

.free-movies-header {
    margin-bottom: 30px;
}

.free-movies-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.free-movies-header .free-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.free-movies-header .page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Free Movie Card */
.free-movie-card .poster-container {
    position: relative;
}

.free-movie-card .movie-info-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: white;
    gap: 8px;
}

.free-movie-card:hover .play-overlay {
    opacity: 1;
}

/* Direct Play Button (Internet Archive) */
.play-overlay-direct .play-btn-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-overlay-direct:hover .play-btn-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.7);
}

.play-btn-circle svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.play-overlay .play-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* External Watch Button */
.play-overlay-external .watch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-overlay-external:hover .watch-btn {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.6);
}

.watch-btn svg {
    width: 18px;
    height: 18px;
}

/* Upcoming Movies Page */
.upcoming-section {
    padding-bottom: 40px;
}

.upcoming-header {
    margin-bottom: 30px;
}

.upcoming-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upcoming-header .upcoming-icon {
    font-size: 1.3rem;
}

.upcoming-header .page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.upcoming-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.upcoming-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.upcoming-card-link:hover .upcoming-card {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 165, 2, 0.3);
}

.upcoming-poster {
    position: relative;
    flex-shrink: 0;
    width: 120px;
}

.upcoming-poster img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.upcoming-poster .poster-placeholder {
    width: 100%;
    height: 180px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.release-date-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--secondary), #e67e22);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.4);
    min-width: 45px;
}

.release-date-badge .date-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-date-badge .date-day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.upcoming-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.upcoming-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upcoming-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.release-full-date {
    color: var(--secondary);
    font-weight: 500;
}

.upcoming-rating {
    color: #2ecc71;
    font-weight: 500;
}

.upcoming-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.genre-chip {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.upcoming-synopsis {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

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

    .upcoming-card {
        flex-direction: column;
    }

    .upcoming-poster {
        width: 100%;
    }

    .upcoming-poster img,
    .upcoming-poster .poster-placeholder {
        height: 200px;
    }
}

/* Upcoming Movie Detail Page */
.upcoming-movie-detail .coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary), #e67e22);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(255, 165, 2, 0.4);
}

.upcoming-movie-detail .tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.upcoming-movie-detail .release-date-highlight {
    background: rgba(255, 165, 2, 0.2);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 15px;
}

.upcoming-movie-detail .language {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.upcoming-movie-detail .synopsis-section {
    margin: 20px 0;
}

.upcoming-movie-detail .synopsis-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.upcoming-movie-detail .cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upcoming-movie-detail .cast-member {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upcoming-movie-detail .trailer-section {
    margin: 25px 0;
}

.upcoming-movie-detail .trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.upcoming-movie-detail .trailer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
}

.upcoming-movie-detail .external-links {
    margin-top: 25px;
}

.upcoming-movie-detail .external-links h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.upcoming-movie-detail .link-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.upcoming-movie-detail .external-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.upcoming-movie-detail .external-link-btn.tmdb {
    background: rgba(1, 180, 228, 0.2);
    color: #01b4e4;
    border: 1px solid rgba(1, 180, 228, 0.3);
}

.upcoming-movie-detail .external-link-btn.tmdb:hover {
    background: rgba(1, 180, 228, 0.3);
}

.upcoming-movie-detail .external-link-btn.imdb {
    background: rgba(245, 197, 24, 0.2);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.upcoming-movie-detail .external-link-btn.imdb:hover {
    background: rgba(245, 197, 24, 0.3);
}

.back-to-upcoming {
    margin-top: 30px;
    padding-bottom: 40px;
}

.back-to-upcoming .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-to-upcoming .back-btn:hover {
    color: var(--secondary);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-poster {
    width: 100%;
    height: 200px;
    border-radius: 0;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-meta {
    height: 14px;
    width: 50%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

/* Buttons */
.watch-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--text);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.watch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

/* Movie Detail Page */
.movie-detail-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.movie-poster-large {
    width: 300px;
    min-width: 300px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.movie-detail-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.movie-detail-info .movie-meta {
    font-size: 1rem;
    margin-bottom: 20px;
}

.movie-detail-info .rating {
    color: var(--secondary);
    font-weight: 600;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.genre-tag {
    padding: 6px 16px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background: rgba(255, 71, 87, 0.3);
}

.director {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.director strong {
    color: var(--text);
}

.synopsis {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

.cast h3,
.streaming-services h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.cast p {
    color: var(--text-muted);
    line-height: 1.6;
}

.streaming-services {
    margin-top: 25px;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-buttons .watch-btn {
    background: var(--bg-elevated);
    border: 2px solid rgba(255,255,255,0.1);
}

.service-buttons .watch-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.15);
}

/* Related Movies Section */
.related-movies {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.related-movies h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 25px;
}

.breadcrumb ol {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child span {
    color: var(--text);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--bg-surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary);
}

.pagination span.current {
    background: var(--gradient);
}

.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px 18px;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filters select:hover {
    border-color: var(--primary);
}

.filters select option {
    background: var(--bg-dark);
    color: var(--text);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 50px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Search Results Header */
.search-header {
    margin-bottom: 30px;
}

.search-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.search-header p {
    color: var(--text-muted);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.98);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-overlay .nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay .nav-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay .nav-dropdown .nav-link {
    border-bottom: none;
}

.mobile-nav-overlay .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 10px 20px;
    display: none;
}

.mobile-nav-overlay .nav-dropdown.open .dropdown-menu {
    display: block;
}

.mobile-nav-overlay .dropdown-menu a {
    padding: 10px 15px;
    font-size: 0.95rem;
}

.close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .movie-detail-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-poster-large {
        width: 200px;
        min-width: 200px;
    }

    .movie-detail-info h1 {
        font-size: 1.6rem;
    }

    .movie-genres {
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .search-box {
        max-width: none;
        flex: 1 1 100px;
        min-width: 80px;
    }

    .browse-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .browse-header h1 {
        font-size: 1.2rem;
    }

    .browse-filters {
        width: 100%;
    }

    .browse-filters select {
        flex: 1;
        min-width: 0;
    }

    .alphabet-filter {
        padding: 10px;
        gap: 4px;
    }

    .alphabet-filter a {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .alphabet-filter a.all {
        padding: 0 10px;
    }
}

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

    .alphabet-filter a {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .header-content {
        position: relative;
    }

    .logo-text {
        transition: opacity 0.2s ease;
    }

    .search-box {
        position: absolute;
        right: 38px;
        top: 50%;
        transform: translateY(-50%);
        min-width: auto;
        width: 36px;
        max-width: 36px;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .search-box input {
        width: 0;
        padding: 8px 0;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .search-box button {
        border-radius: 50%;
        padding: 8px;
    }

    .search-box:focus-within,
    .search-box.expanded {
        width: calc(100% - 90px);
        max-width: 250px;
    }

    .search-box:focus-within input,
    .search-box.expanded input {
        width: 100%;
        padding: 8px 12px;
        opacity: 1;
    }

    .search-box:focus-within button,
    .search-box.expanded button {
        border-radius: 0 25px 25px 0;
    }

    .header-content:has(.search-box:focus-within) .logo-text,
    .header-content:has(.search-box.expanded) .logo-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
}

/* ========== Watched & Reactions ========== */

/* Watched Badge */
.watched-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 165, 2, 0.95);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.movie-card.watched .movie-poster {
    opacity: 0.6;
}

.movie-card.watched .watched-badge {
    display: block !important;
}

/* Watched Button (on poster) */
.movie-card .watched-btn,
.free-movie-card .watched-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    opacity: 0;
}

.movie-card:hover .watched-btn,
.free-movie-card:hover .watched-btn {
    opacity: 1;
}

.movie-card .watched-btn:hover,
.free-movie-card .watched-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary);
}

.movie-card .watched-btn.active,
.free-movie-card .watched-btn.active {
    opacity: 1;
    background: var(--secondary);
    color: white;
}

.movie-card.watched .watched-btn,
.free-movie-card.watched .watched-btn {
    opacity: 1;
    background: var(--secondary);
    color: white;
}

/* 5-Star Rating */
.star-rating {
    display: flex;
    gap: 2px;
    padding: 8px 20px 0;
}

.star-rating .star {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.15s ease;
    padding: 2px;
}

.star-rating .star:hover {
    color: #f5c518;
    transform: scale(1.2);
}

.star-rating .star.filled {
    color: #f5c518;
}

.star-rating .star.preview {
    color: #f5c518;
    opacity: 0.7;
}

/* Star rating hover preview */
.star-rating:hover .star {
    color: var(--text-muted);
}

.star-rating:hover .star.hovered,
.star-rating:hover .star.hovered ~ .star.filled {
    color: var(--text-muted);
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: var(--text-muted);
}

.star-rating .star:hover,
.star-rating:has(.star:hover) .star:not(:hover) {
    color: var(--text-muted);
}

/* Show gold for hovered star and all previous stars */
.star-rating:has(.star:hover) .star {
    color: var(--text-muted);
}

.star-rating .star:hover {
    color: #f5c518 !important;
}

/* Highlight all stars up to the hovered one */
.star-rating:has([data-value="1"]:hover) [data-value="1"],
.star-rating:has([data-value="2"]:hover) [data-value="1"],
.star-rating:has([data-value="2"]:hover) [data-value="2"],
.star-rating:has([data-value="3"]:hover) [data-value="1"],
.star-rating:has([data-value="3"]:hover) [data-value="2"],
.star-rating:has([data-value="3"]:hover) [data-value="3"],
.star-rating:has([data-value="4"]:hover) [data-value="1"],
.star-rating:has([data-value="4"]:hover) [data-value="2"],
.star-rating:has([data-value="4"]:hover) [data-value="3"],
.star-rating:has([data-value="4"]:hover) [data-value="4"],
.star-rating:has([data-value="5"]:hover) [data-value="1"],
.star-rating:has([data-value="5"]:hover) [data-value="2"],
.star-rating:has([data-value="5"]:hover) [data-value="3"],
.star-rating:has([data-value="5"]:hover) [data-value="4"],
.star-rating:has([data-value="5"]:hover) [data-value="5"] {
    color: #f5c518 !important;
}

/* ========== For Me Page ========== */

.discovery-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(155,89,182,0.15) 0%, rgba(52,152,219,0.15) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.discovery-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discovery-header > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.mood-selector,
.time-selector {
    margin-bottom: 20px;
}

.selector-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.mood-chips,
.time-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mood-chip,
.time-chip {
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mood-chip:hover,
.time-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mood-chip.active {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.time-chip.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* Mood-specific colors */
.mood-chip[data-mood="feel-good"].active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.mood-chip[data-mood="intense"].active {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.mood-chip[data-mood="thought-provoking"].active {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.mood-chip[data-mood="escapist"].active {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.mood-chip[data-mood="dark"].active {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.mood-chip[data-mood="inspiring"].active {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Because you liked section */
.because-liked {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.because-liked-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.because-liked-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.liked-movie-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 15px;
    color: var(--primary);
    font-size: 0.85rem;
}

.liked-movie-ref img {
    width: 24px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .discovery-header {
        padding: 20px 15px;
    }

    .mood-chip,
    .time-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

.for-me-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(155,89,182,0.15) 0%, rgba(52,152,219,0.15) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.for-me-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.for-me-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.preference-summary {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pref-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}

.pref-item .count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.no-preferences {
    text-align: center;
    padding: 60px 20px;
}

.no-preferences-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-preferences h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.no-preferences p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.start-exploring-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.start-exploring-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

/* Recommendation Section */
.rec-section {
    margin-bottom: 40px;
}

.rec-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rec-section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.rec-section-header .reason {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* For Me Tab Style */
.tab.for-me-tab {
    background: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
    border-color: transparent;
    color: white;
}

.tab.for-me-tab:hover {
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

/* Toast variants */
.toast.success {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.toast.removed {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* ========== Streaming Availability ========== */

.streaming-availability {
    margin-top: 25px;
}

.streaming-availability h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text);
}

.offer-section {
    margin-bottom: 20px;
}

.offer-section h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    min-width: 120px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.offer-btn .provider {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.offer-btn .type,
.offer-btn .price {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Free offers - green */
.offer-btn-free {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
}

.offer-btn-free .type {
    color: #2ecc71;
}

.offer-btn-free:hover {
    background: rgba(39, 174, 96, 0.25);
    border-color: #2ecc71;
    transform: translateY(-2px);
}

/* Subscription offers - blue */
.offer-btn-sub {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.offer-btn-sub:hover {
    background: rgba(52, 152, 219, 0.25);
    border-color: #3498db;
    transform: translateY(-2px);
}

/* Rent offers - orange */
.offer-btn-rent {
    background: rgba(255, 165, 2, 0.15);
    border-color: rgba(255, 165, 2, 0.3);
}

.offer-btn-rent .price {
    color: var(--secondary);
    font-weight: 600;
}

.offer-btn-rent:hover {
    background: rgba(255, 165, 2, 0.25);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Buy offers - purple */
.offer-btn-buy {
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
}

.offer-btn-buy .price {
    color: #9b59b6;
    font-weight: 600;
}

.offer-btn-buy:hover {
    background: rgba(155, 89, 182, 0.25);
    border-color: #9b59b6;
    transform: translateY(-2px);
}

/* Availability badges on movie cards */
.availability-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-free {
    background: rgba(39, 174, 96, 0.9);
    color: white;
}

.badge-sub {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.badge-rent {
    background: rgba(255, 165, 2, 0.9);
    color: var(--bg-dark);
}

.badge-buy {
    background: rgba(155, 89, 182, 0.9);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offer-btn {
        min-width: 100px;
        padding: 10px 15px;
    }

    .offer-btn .provider {
        font-size: 0.8rem;
    }

    .streaming-availability {
        text-align: center;
    }

    .offer-buttons {
        justify-content: center;
    }
}
