/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 45, 0.95);
    --bg-card-solid: #1e1e2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-pink: #e91e63;
    --accent-orange: #ff9800;
    --accent-purple: #9c27b0;
    --accent-red: #e50914;
    --accent-blue: #0071eb;
    --netflix: #e50914;
    --prime: #00a8e1;
    --disney: #113ccf;
    --apple: #000000;
    --hulu: #1ce783;
    --peacock: #000000;
    --max: #002be7;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --nav-height: 80px;
    --header-height: 60px;

    /* Animation Durations */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Ease Curves */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #8e8e93;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Smooth theme transition */
html {
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Utility class for screen reader only content */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    /* Prevent pull-to-refresh on Android */
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

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

/* ===== APP CONTAINER ===== */
#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    overflow: hidden;
}

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.notification-btn:hover {
    color: var(--text-primary);
}

/* ===== PAGES CONTAINER ===== */
.pages-container {
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
    min-height: 100vh;
    min-height: 100dvh;
}

#discoverPage {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.page {
    display: none !important;
    padding: 16px 20px;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    min-height: calc(100dvh - var(--header-height) - var(--nav-height));
}

.page.active {
    display: block !important;
}

.page.active>* {
    animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.page.active>*:nth-child(1) {
    animation-delay: 0.1s;
}

.page.active>*:nth-child(2) {
    animation-delay: 0.15s;
}

.page.active>*:nth-child(3) {
    animation-delay: 0.2s;
}

.page.active>*:nth-child(4) {
    animation-delay: 0.25s;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DISCOVER PAGE ===== */
#discoverPage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 0;
    height: calc(100vh - var(--header-height) - var(--nav-height));
    height: calc(100dvh - var(--header-height) - var(--nav-height));
}

#discoverPage.active {
    display: flex !important;
}

/* Content Type Filter Tabs */
.content-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 390px;
}

.content-filter-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.content-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 390px;
    flex-grow: 1;
    min-height: 0;
    /* Allow shrinking */
    max-height: 600px;
    margin: 10px 0;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    cursor: grab;
    touch-action: none;
    /* Critical for Android to prevent scrolling while swiping */
    -webkit-user-select: none;
    user-select: none;
    transition: transform var(--transition-fast) var(--ease-out), opacity var(--transition-fast);
    will-change: transform, opacity;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.removing {
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.swipe-card:nth-child(1) {
    z-index: 3;
}

.swipe-card:nth-child(2) {
    z-index: 2;
    transform: scale(0.96) translateY(12px);
    opacity: 0.8;
}

.swipe-card:nth-child(3) {
    z-index: 1;
    transform: scale(0.92) translateY(24px);
    opacity: 0.6;
}

/* Full-size image */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tags on top */
.card-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    z-index: 5;
}

.card-tags-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-tag {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag.genre {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.card-tag.type-badge {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: white;
}

.card-tag.country {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
}

.card-tag.platform {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
}

.card-tag.platform.netflix {
    background: var(--netflix);
}

.card-tag.platform.prime {
    background: var(--prime);
}

.card-tag.platform.disney {
    background: var(--disney);
}

.card-tag.platform.apple {
    background: #fff;
    color: #000;
}

.card-tag.platform.hulu {
    background: var(--hulu);
    color: #000;
}

/* Info overlay on bottom of image */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 20px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    text-align: left;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-subtitle .rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
    font-weight: 600;
}

.card-subtitle .year,
.card-subtitle .runtime {
    color: rgba(255, 255, 255, 0.7);
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.action-btn {
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--duration-fast);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

.action-btn:active {
    transform: scale(0.92);
}

.skip-btn {
    width: 70px;
    background: linear-gradient(180deg, #e74c4c 0%, #c62828 50%, #b71c1c 100%);
    color: white;
    box-shadow:
        0 6px 20px rgba(183, 28, 28, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skip-btn:hover {
    box-shadow:
        0 8px 25px rgba(183, 28, 28, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Undo Button */
.undo-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(180deg, #5a5a6e 0%, #3a3a4a 100%);
    color: #aaa;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.undo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.undo-btn:not(:disabled):hover {
    background: linear-gradient(180deg, #6a6a7e 0%, #4a4a5a 100%);
    color: white;
}

/* Next Button (Skip to next without saving) */
.next-btn {
    width: 80px;
    background: linear-gradient(180deg, #4fc3f7 0%, #0288d1 50%, #01579b 100%);
    color: white;
    box-shadow:
        0 6px 20px rgba(2, 136, 209, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.next-btn svg {
    stroke: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.next-btn:hover {
    box-shadow:
        0 8px 25px rgba(2, 136, 209, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Favorite/Watchlist Button (Heart) */
.favorite-btn {
    width: 70px;
    background: linear-gradient(180deg, #f48fb1 0%, #e91e63 50%, #c2185b 100%);
    color: white;
    box-shadow:
        0 6px 20px rgba(233, 30, 99, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.favorite-btn svg {
    fill: white;
    stroke: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.favorite-btn:hover {
    box-shadow:
        0 8px 25px rgba(233, 30, 99, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.info-btn {
    width: 80px;
    background: linear-gradient(180deg, #4a4a4a 0%, #333333 50%, #1f1f1f 100%);
    color: white;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-btn:hover {
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Swipe indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.swipe-indicator.like {
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    border: 3px solid #4caf50;
    color: white;
}

.swipe-indicator.nope {
    left: 20px;
    background: rgba(244, 67, 54, 0.9);
    border: 3px solid #f44336;
    color: white;
}

.swipe-indicator.next {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 136, 209, 0.9);
    border: 3px solid #0288d1;
    color: white;
}

/* ===== BROWSE PAGE ===== */
.search-container {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

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

.search-input:focus {
    border-color: var(--accent-pink);
}

.filter-container {
    position: relative;
    margin-bottom: 16px;
    z-index: 50;
}

.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip.has-dropdown {
    padding-right: 12px;
}

.chip-arrow {
    transition: transform var(--transition-fast);
}

.chip.active .chip-arrow {
    transform: rotate(180deg);
}

.chip.active,
.chip.has-selection {
    background: var(--bg-card-solid);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Filter Dropdowns */
.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(30, 30, 40, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownFade 0.2s ease;
}

.filter-dropdown.visible {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-options {
    padding: 8px 0;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-option input[type="checkbox"],
.dropdown-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-pink);
    cursor: pointer;
}

.dropdown-option input[type="checkbox"]:checked+span,
.dropdown-option input[type="radio"]:checked+span {
    color: var(--accent-pink);
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

.tab.active {
    color: var(--text-primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-pink);
    border-radius: 1px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--bg-card-solid);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
    animation: scaleIn var(--duration-normal) var(--ease-out) both;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Stagger grid items */
.movie-card:nth-child(n) {
    animation-delay: calc(var(--i, 0) * 0.05s);
}

/* Watchlist Item Styling and Animation */
.watchlist-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: all var(--duration-fast) var(--ease-out);
    animation: slideInRight var(--duration-normal) var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 0.05s);
}

.watchlist-item:hover {
    transform: translateX(8px);
    background: var(--bg-card-solid);
    border-color: var(--accent-pink);
}

.movie-card:active {
    transform: scale(0.95);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.movie-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.movie-card-platforms {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 2px;
}

.platform-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    object-fit: cover;
    overflow: hidden;
}

img.platform-icon {
    display: block;
}

/* ===== WATCHLIST PAGE ===== */
.watchlist-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.watchlist-tab {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.watchlist-tab.active {
    background: var(--bg-card-solid);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.watchlist-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.watchlist-poster {
    width: 70px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.watchlist-info {
    flex: 1;
    min-width: 0;
}

.watchlist-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.meta-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.meta-tag.genre {
    background: rgba(233, 30, 99, 0.2);
    color: var(--accent-pink);
}

.meta-tag.country {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.meta-tag.platform {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-tag.platform.netflix {
    background: rgba(229, 9, 20, 0.2);
    color: var(--netflix);
}

.meta-tag.platform.prime {
    background: rgba(0, 168, 225, 0.2);
    color: var(--prime);
}

.meta-tag.platform.disney {
    background: rgba(17, 60, 207, 0.2);
    color: #5c8adf;
}

.meta-tag.platform.apple {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.meta-tag.platform.hulu {
    background: rgba(28, 231, 131, 0.2);
    color: var(--hulu);
}

.watchlist-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.watchlist-platforms {
    margin-top: 6px;
}

.platform-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.platform-tag.netflix {
    background: rgba(229, 9, 20, 0.2);
    color: var(--netflix);
}

.platform-tag.prime {
    background: rgba(0, 168, 225, 0.2);
    color: var(--prime);
}

.platform-tag.disney {
    background: rgba(17, 60, 207, 0.2);
    color: #5c8adf;
}

.platform-tag.apple {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.platform-tag.hulu {
    background: rgba(28, 231, 131, 0.2);
    color: var(--hulu);
}

.meta-tag.type {
    background: rgba(156, 39, 176, 0.2);
    color: var(--accent-purple);
}

.meta-tag.year {
    background: transparent;
    color: var(--text-secondary);
}

.meta-tag.rating {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.watchlist-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.watch-now-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #e65100, #ff9800);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    transition: transform var(--transition-fast);
}

.watch-now-btn:active {
    transform: scale(0.95);
}

/* Share Button in Modal */
.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.05);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: translateY(0);
}

.share-modal-content h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.7rem;
    transition: all var(--transition-fast);
}

.share-option:hover {
    background: var(--bg-secondary);
}

.share-option svg {
    width: 28px;
    height: 28px;
}

.share-option.whatsapp svg {
    color: #25D366;
}

.share-option.twitter svg {
    color: #1DA1F2;
}

.share-option.facebook svg {
    color: #1877F2;
}

.share-option.copy svg {
    color: var(--accent-pink);
}

.share-close {
    width: 100%;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.share-close:hover {
    background: var(--text-muted);
}

/* ===== IMAGE LIGHTBOX ===== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-lightbox.active {
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.image-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}



.remove-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.remove-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state.visible {
    display: flex;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state span {
    font-size: 0.9rem;
}

/* ===== PROFILE PAGE ===== */
#profilePage {
    padding-top: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar img.visible {
    display: block;
}

#avatarInitial {
    font-size: 1.75rem;
    font-weight: 600;
}

.user-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.user-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-section,
.settings-section {
    margin-bottom: 24px;
}

.profile-section h4,
.settings-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Settings Page Specific Styles */
.settings-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

.select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
}

.select-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.settings-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent-pink);
}

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

.settings-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.settings-action-btn:hover {
    background: rgba(30, 30, 45, 0.7);
}

.settings-action-btn:active {
    transform: scale(0.98);
}

.settings-action-btn .item-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.settings-action-btn.danger {
    color: #f44336;
}

.settings-action-btn.danger:hover {
    background: rgba(244, 67, 54, 0.1);
}

.about-info {
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-row:last-child {
    border-bottom: none;
}

.about-row span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.region-selector:hover {
    background: rgba(30, 30, 45, 0.7);
}

.region-selector span {
    flex: 1;
    font-size: 0.95rem;
}

.region-selector .chevron {
    color: var(--text-secondary);
}

.platform-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-btn {
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.4;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    border: 2px solid transparent;
}

.platform-btn.active {
    opacity: 1;
    border-color: var(--accent-pink);
}

.platform-btn:active {
    transform: scale(0.9);
}

.platform-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.platform-logo.netflix {
    background: var(--netflix);
    font-size: 1.25rem;
}

.platform-logo.prime {
    background: linear-gradient(135deg, #00a8e1, #232f3e);
    font-size: 0.5rem;
}

.platform-logo.disney {
    background: var(--disney);
    font-size: 0.6rem;
}

.platform-logo.apple {
    background: #000;
    font-size: 0.9rem;
}

.platform-logo.apple::before {
    content: '';
}

.platform-logo.hulu {
    background: var(--hulu);
    color: #000;
}

.platform-logo.max {
    background: linear-gradient(135deg, #002be7, #0014a0);
    font-size: 0.65rem;
    text-transform: lowercase;
}

.platform-logo.peacock {
    background: linear-gradient(135deg, #000, #333);
    font-size: 0.9rem;
}

.platform-logo.paramount {
    background: linear-gradient(135deg, #0064ff, #0040a0);
    font-size: 0.6rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mood-chip {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mood-chip.active {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.2));
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-row span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.toggle-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.toggle {
    position: relative;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card-solid);
    border-radius: 50px;
    transition: background var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked+.toggle-slider {
    background: linear-gradient(135deg, #e65100, #ff9800);
}

.toggle input:checked+.toggle-slider::before {
    left: 25px;
    background: white;
}

.watch-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
}

.history-poster {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.history-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.history-arrow {
    color: var(--text-secondary);
}

.manage-account-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 8px;
    transition: background var(--transition-fast);
}

.manage-account-btn:hover {
    background: rgba(30, 30, 45, 0.7);
}

/* ===== AUTH PAGE ===== */
.auth-container {
    max-width: 360px;
    margin: 0 auto;
    padding-top: 20px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    gap: 12px;
}

.input-group svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    background: transparent;
    color: #000;
    font-size: 1rem;
}

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

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e65100, #ff9800);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-submit-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-terms {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-switch {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-switch p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.auth-switch-btn {
    padding: 14px 40px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.auth-switch-btn:hover {
    background: rgba(30, 30, 45, 0.7);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 30%);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-item.active {
    color: var(--accent-pink);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    position: relative;
}

.modal-info {
    padding: 20px;
    position: relative;
}

#modalTitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-meta span {
    display: inline;
}

.modal-overview {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-platforms {
    margin-bottom: 20px;
}

.modal-platforms h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.provider-section {
    margin-bottom: 16px;
}

.provider-section h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.provider-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-badge span {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.provider-badge.rent {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
}

.modal-trailer {
    margin-bottom: 20px;
}

.modal-trailer h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.trailer-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cast Section */
.modal-cast {
    margin-bottom: 20px;
}

.modal-cast h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cast-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cast-list::-webkit-scrollbar {
    display: none;
}

.cast-item {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.cast-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    background: var(--bg-card-solid);
}

.cast-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-role {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recommendations Section */
.modal-recommendations {
    margin-bottom: 20px;
}

.modal-recommendations h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.recommendations-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recommendations-list::-webkit-scrollbar {
    display: none;
}

.recommendation-item {
    flex-shrink: 0;
    width: 80px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.recommendation-item:hover {
    transform: scale(1.05);
}

.recommendation-item img {
    width: 80px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 6px;
    background: var(--bg-card-solid);
}

.recommendation-item span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.add-watchlist-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.add-watchlist-btn:hover {
    border-color: var(--accent-pink);
}

.add-watchlist-btn.added {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.add-watchlist-btn.added svg {
    stroke: #4caf50;
}

.modal-actions .watch-now-btn {
    flex: 1;
    padding: 14px;
    font-size: 0.9rem;
}

/* Type Badge for TV Shows */
.type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: var(--accent-purple);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Region Modal */
.region-modal .modal-content {
    max-height: 60vh;
    border-radius: var(--radius-xl);
    margin: auto 20px;
}

.region-content {
    padding: 24px;
}

.region-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.region-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-option {
    padding: 14px 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: left;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.region-option:hover {
    background: rgba(30, 30, 45, 0.7);
}

.region-option.active {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.2));
    color: var(--text-primary);
    border: 1px solid var(--accent-pink);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== ACCOUNT MODAL ===== */
.account-modal .account-content {
    width: 90%;
    max-width: 400px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.account-modal h3 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.account-avatar-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.avatar-preview img.visible {
    opacity: 1;
}

.avatar-preview span {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    position: absolute;
}

.upload-photo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.upload-photo-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.account-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: -6px;
}

.account-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
}

.account-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.12);
}

.account-actions {
    display: flex;
    gap: 12px;
}

.account-cancel-btn,
.account-save-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.account-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.account-save-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: white;
}

.mood-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* ===== LOADING SKELETONS ===== */
.loading-skeleton {
    display: none;
    width: 100%;
}

.loading-skeleton.visible {
    display: block;
}

.skeleton-card {
    width: 100%;
    max-width: 390px;
    height: calc(100vh - 200px);
    max-height: 580px;
    border-radius: var(--radius-xl);
    margin: 0 auto;
}

.grid-loading {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-loading.visible {
    display: grid;
}

.skeleton-movie {
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    width: 100%;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

/* Skeleton Helpers */
.skeleton-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.skeleton-poster {
    width: 92px;
    height: 138px;
    border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 430px) {
    .card-stack {
        max-width: 360px;
        height: 480px;
    }
}

@media (max-width: 380px) {
    .card-stack {
        max-width: 300px;
        height: auto;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-actions {
        gap: 6px;
    }

    .action-btn {
        height: 48px;
        font-size: 0.9rem;
    }

    .undo-btn,
    .info-btn {
        width: 44px;
        padding: 0;
    }

    .skip-btn {
        width: 54px;
    }

    .next-btn,
    .favorite-btn {
        width: 64px;
    }
}

/* ===== INFINITE SCROLL LOADING ===== */
.loading-more {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== DISCOVER HEADER WITH SURPRISE ME ===== */
.discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 390px;
    margin-bottom: 12px;
    gap: 12px;
}

.discover-header .content-filter {
    margin-bottom: 0;
    flex: 1;
}

.surprise-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: all var(--transition-fast);
}

.surprise-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.surprise-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.surprise-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.surprise-icon.spinning {
    animation: spin 0.5s linear infinite;
}

@media (max-width: 360px) {
    .surprise-text {
        display: none;
    }

    .surprise-btn {
        padding: 10px 12px;
    }
}

/* ===== SURPRISE REVEAL ANIMATION ===== */
.surprise-reveal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.surprise-reveal.active {
    opacity: 1;
}

.surprise-reveal-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.surprise-reveal.active .surprise-reveal-content {
    transform: scale(1);
}

.surprise-confetti {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.surprise-poster {
    width: 180px;
    height: 270px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
    margin-bottom: 16px;
    object-fit: cover;
}

.surprise-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.surprise-tagline {
    color: var(--accent-pink);
    font-size: 0.9rem;
}

/* ===== MOOD PICKER MODAL ===== */
.mood-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mood-picker-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.mood-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.mood-picker-content {
    position: relative;
    background: var(--bg-card-solid);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mood-picker-modal.active .mood-picker-content {
    transform: translateY(0);
}

.mood-picker-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mood-picker-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mood-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--mood-color);
    transform: scale(1.02);
}

.mood-icon {
    font-size: 1.5rem;
}

.mood-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== RATING MODAL ===== */
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rating-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.rating-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.rating-modal-content {
    position: relative;
    background: var(--bg-card-solid);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.rating-modal.active .rating-modal-content {
    transform: scale(1);
}

.rating-modal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-movie-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #555;
    transition: all var(--transition-fast);
}

.star-btn:hover,
.star-btn.active {
    color: #FFD700;
    transform: scale(1.1);
}

.star-btn svg {
    transition: fill 0.2s ease;
}

.rating-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.rating-notes {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    height: 80px;
    margin-bottom: 20px;
}

.rating-notes:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.rating-notes::placeholder {
    color: var(--text-muted);
}

.rating-actions {
    display: flex;
    gap: 12px;
}

.rating-cancel-btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.rating-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.rating-save-btn {
    flex: 2;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all var(--transition-fast);
}

.rating-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===== MARK AS WATCHED BUTTON (Modal) ===== */
.mark-watched-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mark-watched-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    color: #10B981;
}

.mark-watched-btn.watched {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: transparent;
    color: white;
}

/* ===== WATCHED TAB ITEMS ===== */
.empty-watched {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-watched svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-watched p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-watched span {
    font-size: 0.85rem;
}

.watched-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.3s ease both;
    animation-delay: calc(var(--i) * 0.05s);
}

.watched-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
}

.watched-poster {
    width: 60px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.watched-info {
    flex: 1;
    min-width: 0;
}

.watched-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watched-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.watched-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.watched-rating {
    display: flex;
    gap: 2px;
}

.watched-rating .star {
    font-size: 0.8rem;
    color: #444;
}

.watched-rating .star.filled {
    color: #FFD700;
}

.watched-rating .no-rating {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.watched-notes {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watched-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.edit-rating-btn,
.watched-actions .remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.edit-rating-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #7C3AED;
}

.watched-actions .remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* ===== STATS PAGE ===== */
#statsPage {
    overflow-y: auto;
}

.stats-container {
    padding-bottom: 20px;
}

.stats-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card.hero {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.watched {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.stat-icon.time {
    background: rgba(124, 58, 237, 0.2);
    color: #7C3AED;
}

.stat-icon.rating {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.stat-icon.swipes {
    background: rgba(236, 72, 153, 0.2);
    color: #EC4899;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Stats Sections */
.stats-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.stats-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.stats-section-title svg {
    color: var(--accent-pink);
}

/* Genre Chart */
.genre-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.genre-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genre-name {
    width: 80px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-bar-container {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.genre-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.genre-count {
    width: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-chart {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 0.85rem;
}

/* Activity Chart */
.activity-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding-top: 20px;
}

.activity-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.activity-bar {
    width: 28px;
    background: linear-gradient(180deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    border-radius: 6px 6px 0 0;
    margin-top: auto;
    position: relative;
    min-height: 10px;
    transition: height 0.5s ease;
}

.activity-count {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-month {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Achievements */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.achievement.unlocked {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.achievement.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 1.5rem;
    filter: grayscale(100%);
}

.achievement.unlocked .achievement-icon {
    filter: none;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.achievement-check {
    color: #10B981;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Content Split */
.content-split {
    padding: 10px 0;
}

.split-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.split-movies {
    background: linear-gradient(90deg, var(--accent-pink) 0%, #EC4899 100%);
}

.split-tv {
    background: linear-gradient(90deg, #7C3AED 0%, var(--accent-purple) 100%);
}

.split-labels {
    display: flex;
    justify-content: space-around;
}

.split-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.split-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.split-dot.movies {
    background: var(--accent-pink);
}

.split-dot.tv {
    background: #7C3AED;
}

/* Top People */
.top-people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.person-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.person-name {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.person-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Empty Stats */
.empty-stats {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-stats svg {
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-stats p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-stats span {
    font-size: 0.9rem;
}

/* Centered Modal Variant (for Reminder) */
.modal-overlay.centered {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.centered.active {
    display: flex;
}

.modal-overlay.centered .modal-content {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    border: 1px solid var(--border-color);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reminder Inputs for Dark Theme */
#reminderTime {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    font-size: 16px;
    /* Invert calendar icon for dark mode */
    color-scheme: dark;
}

#reminderTime::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.reminder-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

/* Reminder Modal Specific Styles (Premium Dark Theme) */
.reminder-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.reminder-input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 4px;
    font-weight: 500;
}

.reminder-input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.reminder-input-group input:focus {
    border-color: var(--accent-pink) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

/* Calendar Icon Inversion for Dark Mode */
.reminder-input-group input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.reminder-input-group input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Modal Content Polish */
.modal-overlay.centered .modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
}

/* Fix Spacing for Centered Modal */
.modal-overlay.centered .modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-overlay.centered .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Override inline padding */
.modal-overlay.centered .account-body {
    padding: 10px 24px 24px 24px !important;
}

.modal-overlay.centered .close-modal-btn {
    font-size: 2rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

/* Donate Button */
.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.4);
    color: white;
}

.donate-btn:active {
    transform: translateY(0);
}

.donate-btn span {
    font-size: 1.2rem;
}

/* Force Light Mode Overrides for Inputs and Modal */
[data-theme="light"] .modal-header h3,
[data-theme="light"] .modal-body,
[data-theme="light"] .account-body p,
[data-theme="light"] label {
    color: #1d1d1f !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    color: #1d1d1f !important;
    background: #f5f5f7 !important;
    color-scheme: light;
    border: 1px solid #d1d1d6 !important;
}

[data-theme="light"] .modal-close {
    color: #1d1d1f !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Streaming Provider Settings */
.provider-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.provider-option {
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.provider-option input {
    display: none;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.provider-option:hover .provider-chip {
    transform: translateY(-1px);
    background: var(--bg-tertiary);
}

.provider-option input:checked+.provider-chip {
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.provider-option input:checked+.provider-chip.netflix {
    background-color: #E50914;
}

.provider-option input:checked+.provider-chip.prime {
    background-color: #00A8E1;
}

.provider-option input:checked+.provider-chip.disney {
    background-color: #113CCF;
}

.provider-option input:checked+.provider-chip.apple {
    background-color: #000000;
}

.provider-option input:checked+.provider-chip.hulu {
    background-color: #1CE783;
    color: #000000;
}

.provider-option input:checked+.provider-chip.max {
    background-color: #002BE7;
}

.provider-option input:checked+.provider-chip.peacock {
    background-color: #000000;
}

.provider-option input:checked+.provider-chip.paramount {
    background-color: #0064FF;
}

/* Light Mode Dropdown Menus */
[data-theme="light"] .filter-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) inset !important;
}

[data-theme="light"] .dropdown-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .dropdown-option {
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== SWIPE TUTORIAL OVERLAY ===== */
.swipe-tutorial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.swipe-tutorial.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.swipe-tutorial.hiding {
    opacity: 0;
}

.tutorial-arrow {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
}

.swipe-tutorial.active .tutorial-arrow {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.tutorial-left {
    left: 15%;
    animation-delay: 0s !important;
}

.tutorial-left svg {
    animation: arrowBounceLeft 1s ease-in-out infinite;
}

.tutorial-right {
    right: 15%;
    animation-delay: 0.2s !important;
}

.tutorial-right svg {
    animation: arrowBounceRight 1s ease-in-out infinite;
}

.tutorial-up {
    top: 20%;
    animation-delay: 0.4s !important;
}

.tutorial-up svg {
    animation: arrowBounceUp 1s ease-in-out infinite;
}

.tutorial-left span {
    color: #ff6b6b;
}

.tutorial-right span {
    color: #51cf66;
}

.tutorial-up span {
    color: #e91e63;
}

.tutorial-tap-hint {
    position: absolute;
    bottom: 25%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arrowBounceLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-12px);
    }
}

@keyframes arrowBounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(12px);
    }
}

@keyframes arrowBounceUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}