/* FlixRec - Netflix-style CSS */

:root,
[data-theme="dark"] {
    --bg-primary: #141414;
    --bg-secondary: #181818;
    --bg-card: #232323;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent-red: #ffd400;
    --accent-red-hover: #ffe14d;
    --accent-red-dark: #e6bf00;
    --border-color: #404040;
    --border-light: #2d2d2d;
    --rating-gold: #f5c518;
    --success: #46d369;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #d0d0d0;
    --border-light: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
}

[data-theme="light"] .search-input:focus {
    background: rgba(255, 255, 255, 1);
}

[data-theme="light"] .hero-section::after {
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding-top: 68px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GLOBAL FORM STYLING ===== */
/* Fix black text on dark backgrounds for all form elements */
input,
select,
textarea,
.form-control,
.form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--text-muted) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--accent-red) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.2) !important;
    outline: none;
}

/* Form labels */
label,
.form-label {
    color: var(--text-primary);
}

/* Form text and help text */
.form-text,
.form-text.text-muted,
small.text-muted {
    color: var(--text-muted) !important;
}

/* Select dropdown arrow fix */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Dropdown menus */
.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

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

.dropdown-divider {
    border-color: var(--border-light);
}

/* Alerts */
.alert {
    border: none;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table thead th {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.table td,
.table tbody tr {
    border-color: var(--border-light);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.card-header,
.card-footer {
    background-color: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* Modal */
.modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.modal-header,
.modal-footer {
    border-color: var(--border-light);
}

.modal-title {
    color: var(--text-primary);
}

/* Badges */
.badge {
    font-weight: 500;
}

.badge.bg-secondary {
    background-color: var(--bg-hover) !important;
    color: var(--text-secondary);
}

/* List groups */
.list-group-item {
    background-color: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* Nav tabs and pills */
.nav-tabs .nav-link,
.nav-pills .nav-link {
    color: var(--text-secondary);
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Accordion */
.accordion-item {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.accordion-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-card);
    color: var(--accent-red);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%) !important;
    padding: 0.75rem var(--page-gutter);
    transition: background-color var(--transition-slow);
    z-index: 1000;
}

.navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.brand-text {
    color: var(--accent-red);
}

.brand-accent {
    color: var(--text-primary);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Prevent dropdown toggle caret from expanding on hover */
.navbar-dark .navbar-nav .nav-link.dropdown-toggle:hover::after,
.navbar-dark .navbar-nav .nav-link.dropdown-toggle.active::after {
    width: auto;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Fix Bootstrap dropdown caret - use border-based caret instead of ::after */
.navbar-dark .navbar-nav .dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: 0.15em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    position: static;
    width: auto !important;
    height: auto;
    background: none;
    transform: none;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Expandable Nav Search */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-toggle:hover {
    color: var(--text-primary);
}

.nav-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.nav-search-form.active {
    width: 320px;
    opacity: 1;
    visibility: visible;
}

.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.6rem 0 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

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

.nav-search-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-search-close:hover {
    color: var(--accent-red);
}

.nav-search-form .search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
}

.nav-search-form .search-results.active {
    display: block;
}

/* Hide toggle when form is active */
.nav-search-container.active .nav-search-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 991px) {
    .nav-search-container {
        display: none;
    }
}

.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 220px;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    transition: background var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.15);
}

.dropdown-header {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-header.small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-divider {
    border-color: var(--border-light);
    margin: 0.5rem 0;
}

/* User dropdown specific styles */
.user-dropdown {
    min-width: 260px;
}

.user-menu-toggle {
    padding: 0.25rem 0.5rem !important;
}

.user-menu-toggle i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.user-menu-toggle:hover i {
    color: var(--text-primary);
}

/* Nav Profile Avatar */
.nav-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
    transition: all var(--transition-fast);
}

.user-menu-toggle:hover .nav-profile-avatar {
    border-color: var(--text-primary);
    transform: scale(1.05);
}

/* User Dropdown Header with Profile */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.25rem;
}

.dropdown-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
    flex-shrink: 0;
}

.dropdown-profile-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav Icon Button (Schedule, etc.) */
.nav-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.nav-icon-btn i {
    font-size: 1rem;
}

.mobile-menu-label {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    margin-top: -68px;
    padding-top: 68px;
    background-size: cover;
    background-position: center 20%;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.6) 40%, rgba(20, 20, 20, 0.2) 60%, transparent 100%),
                linear-gradient(0deg, rgba(20, 20, 20, 1) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 4rem 0;
}

.hero-container {
    padding: 0 4%;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.hero-meta .year {
    color: var(--success);
    font-weight: 600;
}

.hero-meta .rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--rating-gold);
    font-weight: 600;
}

.hero-overview {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.hero-actions .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.hero-actions .btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}

.hero-actions .btn-outline-light {
    background: rgba(109, 109, 110, 0.7);
    border: none;
    color: var(--text-primary);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(109, 109, 110, 0.5);
}

.content-rows {
    padding: 0 4%;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.content-row {
    margin-bottom: 3rem;
    overflow: visible;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.row-title a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.row-title a::after {
    content: '\203A';
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.row-title a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-red);
}

.media-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.media-row::-webkit-scrollbar {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--accent-red);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1100;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-header .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--text-primary);
}

.mobile-menu-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.75rem 1.5rem;
}

.mobile-signup {
    color: var(--accent-red);
}

.mobile-signup:hover {
    color: var(--accent-red-hover);
}

.mobile-logout-form {
    margin: 0;
}

.mobile-logout-btn {
    color: var(--text-muted);
}

body.mobile-menu-open {
    overflow: hidden;
}

.navbar-nav-desktop {
    flex: 1;
}

.navbar-right {
    gap: 1rem;
}

/* Random Picker Button */
.random-picker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.random-picker-btn .random-text {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    transition: all 0.3s ease;
}

.random-picker-btn:hover .random-text {
    max-width: 100px;
    opacity: 1;
    margin-left: 0.5rem;
}

.random-picker-btn:hover {
    padding: 0.4rem 1rem;
    transform: scale(1.05);
}

.random-picker-btn:hover .fa-dice {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.mobile-random-picker {
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    color: white !important;
    border-radius: 8px;
    margin: 0.5rem 1rem;
    text-align: center;
    font-weight: 600;
}

.mobile-random-picker:hover {
    background: linear-gradient(135deg, #ff8c00, var(--accent-color));
}

.media-card {
    flex: 0 0 auto;
    width: 200px;
    position: relative;
    border-radius: 6px;
    overflow: visible;
    transition: transform var(--transition-slow), z-index var(--transition-fast);
    cursor: pointer;
    margin: 0.5rem 0;
}

.media-card:first-child {
    margin-left: 0;
}

.media-card:hover {
    transform: scale(1.1);
    z-index: 100;
}

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

.media-card .card-poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.media-card:hover .card-poster {
    box-shadow: var(--shadow-xl);
}

.media-card .card-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: filter var(--transition-normal);
}

.media-card:hover .card-poster img {
    filter: brightness(0.5);
}

.media-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.media-card:hover .card-overlay {
    opacity: 1;
}

.media-card .card-actions {
    display: flex;
    gap: 0.5rem;
}

.media-card .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.media-card .action-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.media-card .action-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.media-card .action-btn.active:hover {
    background: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
}

.media-card .card-rating {
    align-self: flex-end;
}

.media-card .rating-badge {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.media-card .rating-badge i {
    color: var(--rating-gold);
}

.media-card .card-info {
    padding: 0.75rem 0.25rem 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.media-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.media-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.media-card .type-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-card .type-badge.movie {
    background: var(--accent-red);
    color: var(--text-primary);
}

.media-card .type-badge.tv {
    background: #7b2cbf;
    color: var(--text-primary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Watchlist Item Styles */
.watchlist-item {
    position: relative;
}

.watchlist-item .media-card {
    margin-bottom: 0;
}

.watchlist-badge {
    position: absolute;
    bottom: 70px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.watchlist-item .remove-watchlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.watchlist-item:hover .remove-watchlist {
    opacity: 1;
}

.watchlist-item .remove-watchlist:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

.browse-page {
    padding: 2rem var(--page-gutter);
}

.browse-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    gap: 1rem;
}

.browse-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.browse-header h1 i {
    color: var(--accent-color);
    font-size: 1.75rem;
}

.browse-header .header-content {
    flex: 1;
}

.browse-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.browse-header .page-subtitle .results-count {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 0.5rem;
}

.browse-header .page-subtitle .results-count::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.browse-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.browse-filters .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.browse-filters .form-select:focus {
    border-color: var(--text-primary);
    box-shadow: none;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-filters .btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.category-filters .btn:hover,
.category-filters .btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

.detail-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65vh;
    background-size: cover;
    background-position: center top;
    z-index: -1;
    overflow: hidden;
}

.detail-backdrop.has-video {
    background-color: var(--bg-primary);
}

.backdrop-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.backdrop-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backdrop-mute-btn {
    position: absolute;
    bottom: 30%;
    right: 4%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backdrop-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.backdrop-mute-btn.unmuted i::before {
    content: "\f028"; /* fa-volume-up */
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.4) 0%, rgba(20, 20, 20, 0.8) 60%, rgba(20, 20, 20, 1) 100%);
    z-index: 1;
}

/* Add side gradients for video */
.detail-backdrop.has-video .backdrop-overlay {
    background: 
        linear-gradient(to right, rgba(20, 20, 20, 0.7) 0%, transparent 15%, transparent 85%, rgba(20, 20, 20, 0.7) 100%),
        linear-gradient(to bottom, rgba(20, 20, 20, 0.3) 0%, rgba(20, 20, 20, 0.7) 60%, rgba(20, 20, 20, 1) 100%);
}

@media (max-width: 768px) {
    .backdrop-video-container {
        display: none;
    }
    
    .backdrop-mute-btn {
        display: none;
    }
    
    .detail-backdrop.has-video {
        background-size: cover;
    }
    
    .detail-actions {
        gap: 0.75rem;
    }
    
    .detail-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }
    
    .reviews-section {
        gap: 0.5rem;
    }
    
    .reviews-section .btn-outline {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
    }
}

.detail-container {
    padding-top: 180px;
    position: relative;
    padding-bottom: 3rem;
    z-index: 2;
}

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

.detail-poster img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.detail-info {
    padding-left: 2.5rem;
}

.detail-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-meta .meta-item i {
    font-size: 0.9rem;
}

.detail-meta .meta-item.rating {
    color: var(--rating-gold);
    font-weight: 600;
}

.detail-meta .meta-item.type {
    padding: 0.25rem 0.85rem;
    background: var(--accent-red);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.genre-badge {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

a.genre-badge {
    color: var(--text-secondary);
}

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

.detail-overview {
    margin-bottom: 2rem;
}

.detail-overview h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-overview p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Collection Badge */
.collection-badge {
    display: inline-block;
}

.collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-hover));
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.collection-link:hover {
    background: var(--accent-red);
    color: var(--text-primary);
    border-color: var(--accent-red);
    transform: translateX(4px);
}

.collection-link i:first-child {
    color: var(--accent-red);
}

.collection-link:hover i:first-child {
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-actions .btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    border-width: 2px;
    font-size: 0.875rem;
}

/* Detail page action button styles */
.detail-actions .btn-outline-danger {
    background: transparent;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.detail-actions .btn-outline-danger:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.detail-actions .btn-danger {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.detail-actions .btn-danger:hover {
    background: var(--accent-red-dark);
    border-color: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.detail-actions .btn-outline-success {
    background: transparent;
    border-color: #22c55e;
    color: #22c55e;
}

.detail-actions .btn-outline-success:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.detail-actions .btn-success {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.detail-actions .btn-success:hover {
    background: #16a34a;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.detail-actions .btn-outline-info {
    background: transparent;
    border-color: #38bdf8;
    color: #38bdf8;
}

.detail-actions .btn-outline-info:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0c0c0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.detail-actions .btn-outline-warning {
    background: transparent;
    border-color: #f59e0b;
    color: #f59e0b;
}

.detail-actions .btn-outline-warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0c0c0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Reviews section links */
.reviews-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reviews-section .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.reviews-section .btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-red);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.reviews-section .btn-outline i {
    color: var(--accent-red);
}

/* Watch Providers */
.watch-providers {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.watch-providers h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.watch-providers h3 i {
    color: var(--accent-red);
}

.provider-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.provider-label {
    min-width: 60px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.provider-logos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.provider-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: transform var(--transition-fast);
}

.provider-logo:hover {
    transform: scale(1.1);
}

.provider-attribution {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.provider-attribution a {
    color: var(--accent-red);
}

.cast-section {
    margin-top: 3rem;
}

.cast-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cast-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

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

.cast-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 auto;
    width: 140px;
    transition: transform var(--transition-normal);
}

.cast-card-link:hover {
    transform: translateY(-5px);
    color: inherit;
}

.cast-card {
    text-align: center;
}

.cast-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cast-card-link:hover .cast-card img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.cast-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cast-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Seasons Grid */
.seasons-section .row-title i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

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

.season-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.season-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.season-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.season-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.season-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.season-card:hover .season-overlay {
    opacity: 1;
}

.view-episodes {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-episodes i {
    margin-right: 0.4rem;
}

.season-info {
    padding: 1rem;
}

.season-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.season-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.season-meta span {
    display: flex;
    align-items: center;
}

.season-rating {
    font-size: 0.85rem;
    color: var(--rating-gold);
}

.season-rating i {
    margin-right: 0.3rem;
}

@media (max-width: 576px) {
    .seasons-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .season-info {
        padding: 0.75rem;
    }
    
    .season-name {
        font-size: 0.9rem;
    }
}

.star-rating {
    display: flex;
    gap: 0.35rem;
}

.star-rating i {
    cursor: pointer;
    color: var(--border-color);
    font-size: 1.4rem;
    transition: all var(--transition-fast);
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--rating-gold);
    transform: scale(1.15);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('/images/auth-bg.jpg') center/cover no-repeat;
}

.auth-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 3.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card .form-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-card .form-control {
    background: #333;
    border: none;
    padding: 1rem 1.25rem;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.auth-card .form-control:focus {
    background: #454545;
    box-shadow: none;
    outline: none;
}

.auth-card .form-control::placeholder {
    color: var(--text-muted);
}

.auth-card .btn-danger {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border-radius: 4px;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--text-primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== AUTH MODALS ===== */
.auth-modal .modal-dialog {
    max-width: 420px;
}

.auth-modal .modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.auth-modal .modal-body {
    padding: 2.5rem;
    position: relative;
}

.auth-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    filter: invert(1);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.auth-modal .btn-close:hover {
    opacity: 1;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-header .auth-logo {
    margin-bottom: 1.5rem;
}

.auth-modal-header .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.auth-modal-header .brand-accent {
    color: var(--accent-red);
}

.auth-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Auth Form Floating Labels */
.auth-modal .form-floating {
    position: relative;
}

.auth-modal .form-floating > .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.25rem 1rem 0.75rem;
    height: auto;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.auth-modal .form-floating > .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}

.auth-modal .form-floating > label {
    color: var(--text-muted);
    padding: 1rem;
}

.auth-modal .form-floating > .form-control:focus ~ label,
.auth-modal .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-red);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Password Toggle */
.auth-modal .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.auth-modal .password-toggle:hover {
    color: var(--text-primary);
}

/* Remember Me Checkbox */
.auth-modal .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    width: 1.15em;
    height: 1.15em;
}

.auth-modal .form-check-input:checked {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.auth-modal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}

.auth-modal .form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Submit Button */
.auth-modal .auth-submit-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.auth-modal .auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-modal .auth-submit-btn:hover::before {
    left: 100%;
}

.auth-modal .auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 212, 0, 0.4);
}

.auth-modal .auth-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Footer */
.auth-modal-footer {
    text-align: center;
}

.auth-modal-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.auth-modal-footer a {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-modal-footer a:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

/* Error Message */
.auth-error-message {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* Password Requirements */
.password-requirements {
    font-size: 0.8rem;
}

/* Modal Animation */
.auth-modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* ===== SIGN OUT MODAL ===== */
.signout-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.signout-modal-content .modal-body {
    padding: 2.5rem 2rem;
}

.signout-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2s ease-in-out infinite;
}

.signout-icon i {
    font-size: 2rem;
    color: var(--accent-red);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 212, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 212, 0, 0.4);
    }
}

.signout-modal-content h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.signout-modal-content p {
    font-size: 0.95rem;
}

.signout-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.signout-actions .btn {
    min-width: 100px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.signout-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.signout-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.signout-actions .btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border: none;
}

.signout-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 212, 0, 0.35);
}

/* ===== PROFILE PAGE ===== */
.profile-page {
    padding: 0;
    max-width: 100%;
}

/* Profile Hero */
.profile-hero {
    position: relative;
    padding: 3rem 4%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 50%, var(--bg-primary) 100%);
    z-index: 0;
}

.profile-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-red);
    box-shadow: 0 8px 32px rgba(255, 212, 0, 0.3);
}

.profile-avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
}

.profile-avatar-badge i {
    font-size: 0.9rem;
    color: white;
}

.profile-identity {
    flex: 1;
    min-width: 200px;
}

.profile-identity .profile-name {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.profile-meta i {
    margin-right: 0.4rem;
    opacity: 0.7;
}

.trakt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(237, 28, 36, 0.15);
    border: 1px solid rgba(237, 28, 36, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ed1c24;
    font-weight: 600;
}

.profile-hero .profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-trakt {
    background: linear-gradient(135deg, #ed1c24, #b5161c);
    border: none;
    color: white;
}

.btn-trakt:hover {
    background: linear-gradient(135deg, #ff2c34, #ed1c24);
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0 4%;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card.highlight {
    background: linear-gradient(145deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.05));
    border-color: rgba(255, 212, 0, 0.3);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 212, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card .stat-icon i {
    font-size: 1.25rem;
    color: var(--accent-red);
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 0 4%;
    padding-bottom: 3rem;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.profile-card .card-header {
    margin-bottom: 1.25rem;
}

.profile-card .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-card .card-header h3 i {
    color: var(--accent-red);
    font-size: 0.9rem;
}

/* Genre Breakdown */
.genre-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.genre-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.genre-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.genre-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.genre-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.genre-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-hover));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    border-bottom: 1px solid var(--border-light);
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    display: flex;
    align-items: center;
    padding: 0.85rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.quick-links a:hover {
    color: var(--accent-red);
}

.quick-links a i:first-child {
    width: 24px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.quick-links a:hover i:first-child {
    color: var(--accent-red);
}

.quick-links a span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-links a i:last-child {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
}

.quick-links a:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* Trakt Card */
.trakt-card {
    border-color: rgba(237, 28, 36, 0.2);
}

.trakt-card .card-header h3 i {
    color: #ed1c24;
}

/* Profile Main Content */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.profile-section .section-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-section .section-header h3 i {
    color: var(--accent-red);
}

.profile-section .view-all {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.profile-section .view-all:hover {
    color: var(--accent-red);
}

/* Media Scroll Row */
.media-scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) transparent;
}

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

.media-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.media-scroll-row::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

.media-scroll-row .media-card {
    flex-shrink: 0;
    width: 150px;
}

/* Ratings Grid */
.ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-fast);
}

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

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

.rating-poster img {
    width: 70px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
}

.rating-details {
    flex: 1;
    min-width: 0;
}

.rating-details h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.rating-stars i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rating-stars i.filled {
    color: var(--rating-gold);
}

.rating-number {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rating-gold);
}

.rating-review {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

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

/* Empty Activity State */
.empty-activity {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-light);
    border-radius: 12px;
}

.empty-activity .empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-activity .empty-icon i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.empty-activity h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-activity p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.empty-activity .empty-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== EDIT PROFILE PAGE ===== */
.edit-profile-page {
    padding: 2rem var(--page-gutter);
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, var(--bg-primary) 100%);
}

.edit-profile-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Card */
.edit-profile-header-card {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edit-profile-header-card .back-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.edit-profile-header-card .back-link:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.edit-profile-header-card .header-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.edit-profile-header-card .header-content h1 i {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.edit-profile-header-card .header-content p {
    margin: 0;
    color: var(--text-muted);
}

/* Two Column Grid */
.edit-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edit-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Cards */
.edit-section {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.edit-section .section-header {
    margin-bottom: 1.25rem;
}

.edit-section .section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-section .section-header h3 i {
    color: var(--accent-red);
    font-size: 0.9rem;
}

.edit-section .section-header small {
    display: block;
    margin-top: 0.25rem;
}

/* Avatar Upload Section */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed var(--border-light);
}

.avatar-upload-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-preview-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-red);
    transition: all var(--transition-fast);
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    cursor: pointer;
    color: white;
    gap: 0.25rem;
}

.avatar-upload-overlay i {
    font-size: 1.25rem;
}

.avatar-upload-overlay span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.avatar-upload-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-info p {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-upload-info small {
    display: block;
}

.upload-progress {
    margin-top: 0.75rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    animation: uploadProgress 2s ease-in-out infinite;
}

@keyframes uploadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.upload-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.divider-or {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Image Position Selector */
.image-position-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.position-selector {
    display: flex;
    gap: 0.75rem;
}

.position-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.position-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-muted);
}

.position-option.selected,
.position-option:has(input:checked) {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-red);
}

.position-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.position-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.position-option.selected .position-icon,
.position-option:has(input:checked) .position-icon {
    background: var(--accent-red);
    color: white;
}

.position-option span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.position-option.selected span,
.position-option:has(input:checked) span {
    color: var(--text-primary);
}

/* Form Styling */
.edit-profile-form .form-group {
    margin-bottom: 1.25rem;
}

.edit-profile-form .form-group:last-child {
    margin-bottom: 0;
}

.edit-profile-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.edit-profile-form .form-label i {
    color: var(--accent-red);
    font-size: 0.8rem;
}

.edit-profile-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.edit-profile-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.edit-profile-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
    outline: none;
}

.edit-profile-form .form-control::placeholder {
    color: var(--text-muted);
}

.edit-profile-form .form-text {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    color: var(--text-muted);
}

/* Genre Selection */
.genre-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.8rem;
}

.genre-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
}

.genre-chip.selected {
    background: rgba(255, 212, 0, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.genre-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.genre-chip .genre-checkbox {
    display: none;
}

.genre-chip-text {
    font-weight: 500;
}

/* Toggle Options */
.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.toggle-info {
    flex: 1;
}

.toggle-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.toggle-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
    border-radius: 13px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
    background: var(--accent-red);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Sticky Form Actions */
.form-actions-sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(0deg, var(--bg-primary) 80%, transparent);
    padding: 1.5rem 0 0;
    margin-top: 0.5rem;
    z-index: 10;
}

.form-actions-content {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.95));
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.form-actions-content .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
}

.form-actions-content .btn-danger {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    border: none;
}

.form-actions-content .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 212, 0, 0.35);
}

/* Danger Zone */
.danger-zone-card {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.danger-zone-card .section-header {
    margin-bottom: 0.5rem;
}

.danger-zone-card .section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-zone-card > p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

.danger-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.danger-actions .btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.danger-actions .btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.danger-actions .btn-outline-warning {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.danger-actions .btn-outline-warning:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

/* Edit Profile Responsive */
@media (max-width: 767.98px) {
    .edit-profile-page {
        padding: 1rem 3%;
    }
    
    .edit-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .edit-profile-header-card {
        padding: 1rem 1.25rem;
    }
    
    .edit-profile-header-card .header-content h1 {
        font-size: 1.25rem;
    }
    
    .avatar-upload-section {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions-content {
        flex-direction: column;
    }
    
    .danger-actions {
        flex-direction: column;
    }
    
    .danger-actions .btn {
        width: 100%;
    }
}

/* Profile Responsive */
@media (max-width: 991.98px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-identity .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-hero .profile-actions {
        justify-content: center;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .profile-sidebar {
        grid-template-columns: 1fr;
    }
    
    .rating-card {
        flex-direction: column;
    }
    
    .rating-poster img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.pagination-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 0.35rem;
}

.pagination .page-link {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1rem;
    border-radius: 6px !important;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-muted);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--bg-primary);
    border-color: var(--border-light);
    color: var(--text-muted);
}

.footer {
    background: var(--bg-secondary);
    padding: 3rem 4%;
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer hr {
    border-color: var(--border-light);
    margin: 2rem 0;
}

.footer .text-center {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: linear-gradient(to bottom, var(--bg-secondary), #0a0a0a);
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

/* Footer Top Section */
.footer-top {
    padding: 3.5rem 0 2rem;
}

.footer-top .container-fluid,
.footer-bottom .container-fluid {
    padding-left: 4%;
    padding-right: 4%;
}

/* Brand Section */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .brand-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand .brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.footer-brand .brand-accent {
    color: var(--accent-red);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 320px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

/* Footer Headings */
.footer-heading {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a i {
    font-size: 0.75rem;
    width: 16px;
    opacity: 0.7;
}

.footer-links li a:hover {
    color: var(--accent-red);
    transform: translateX(4px);
}

.footer-links li a:hover i {
    opacity: 1;
}

/* Partner/Data Source Badges */
.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.partner-link {
    text-decoration: none;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.partner-badge i {
    color: var(--accent-red);
    font-size: 1rem;
}

.partner-badge span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.partner-link:hover .partner-badge {
    background: rgba(255, 212, 0, 0.1);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.partner-link:hover .partner-badge span {
    color: var(--text-primary);
}

.footer-data-notice {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

/* Footer Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

.footer-made-with {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-made-with i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Footer Responsive */
@media (max-width: 991.98px) {
    .footer-top {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-heading {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-legal {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-partners {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .partner-badge {
        padding: 0.5rem 0.75rem;
    }
}

.btn {
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-danger {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-danger:hover {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-1px);
}

.btn-danger:active {
    background-color: var(--accent-red-dark);
    transform: translateY(0);
}

.btn-outline-light {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline-danger {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-outline-danger:hover {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    border-top: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

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

.autocomplete-item img {
    width: 45px;
    height: 68px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.autocomplete-item .item-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.autocomplete-item .item-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(70, 211, 105, 0.15);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(229, 9, 20, 0.15);
    color: #ff4d4d;
    border-left: 4px solid var(--accent-red);
}

.btn-close {
    filter: invert(1);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

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

@media (max-width: 1200px) {
    .media-card {
        width: 175px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 70%;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .content-rows {
        margin-top: -3rem;
    }
    
    .media-card {
        width: 160px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .navbar {
        padding: 0.5rem 3%;
    }
    
    .hero-section {
        min-height: 60vh;
        margin-top: -56px;
        padding-top: 56px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-overview {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .hero-actions .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .content-rows {
        padding: 0 3%;
        margin-top: -2rem;
    }
    
    .browse-page {
        padding: 1.5rem var(--page-gutter);
    }
    
    .detail-container {
        padding-top: 100px;
    }
    
    .detail-poster {
        position: static;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .detail-poster img {
        max-width: 200px;
    }
    
    .detail-info {
        padding-left: 0;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .media-card {
        width: 140px;
    }
    
    .media-card:hover {
        transform: scale(1.08);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-meta {
        font-size: 0.85rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .media-card {
        width: 120px;
    }
    
    .row-title {
        font-size: 1.2rem;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .browse-header h1 {
        font-size: 1.75rem;
    }
    
    .category-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .footer {
        padding: 2rem 3%;
    }
}

.text-accent {
    color: var(--accent-red);
}

.text-gold {
    color: var(--rating-gold);
}

.text-success {
    color: var(--success);
}

.bg-card {
    background-color: var(--bg-card);
}

.border-subtle {
    border-color: var(--border-light) !important;
}

/* Accent Button */
.btn-accent {
    background: var(--accent-red);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-accent:hover {
    background: var(--accent-red-hover);
    color: var(--text-primary);
    transform: scale(1.02);
}

.btn-accent:active {
    background: var(--accent-red-dark);
}

/* Trailer Modal */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.trailer-modal.active {
    display: flex;
}

.trailer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.trailer-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
    animation: modalFadeIn 0.3s ease;
}

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

.trailer-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: all var(--transition-fast);
    z-index: 2;
}

.trailer-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.trailer-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

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

/* Reviews Modal */
.reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.reviews-modal.active {
    display: flex;
}

.reviews-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.reviews-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: 12px;
    z-index: 1;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.reviews-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.reviews-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.reviews-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    border-radius: 50%;
    line-height: 1;
}

.reviews-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.reviews-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.reviews-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.reviews-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--accent-red);
}

.reviews-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.reviews-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.reviews-empty p {
    margin: 0;
    font-size: 1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.review-card:hover {
    border-color: var(--border-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    overflow: hidden;
}

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

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-hover);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rating-gold);
}

.review-rating i {
    font-size: 0.75rem;
}

.review-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-read-more {
    color: var(--accent-red);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color var(--transition-fast);
}

.review-read-more:hover {
    color: var(--accent-red-hover);
}

.review-source-link {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.review-source-link a {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition-fast);
}

.review-source-link a:hover {
    color: var(--accent-red);
}

.reviews-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.reviews-attribution {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.reviews-attribution a {
    color: var(--accent-red);
}

.reviews-attribution a:hover {
    text-decoration: underline;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Statistics Dashboard Styles */
.stats-page {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, var(--bg-primary) 100%);
}

.stats-page .browse-header {
    text-align: center;
    padding-bottom: 2rem;
}

.stats-page .browse-header .header-content {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-page .browse-header h1 {
    font-size: 2.5rem;
    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;
}

.stats-page .browse-header h1 i {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff9f43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid .stat-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(35, 35, 35, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), #ff9f43);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stats-grid .stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-red);
    box-shadow: 0 12px 40px rgba(255, 212, 0, 0.15);
}

.stats-grid .stat-card:hover::before {
    opacity: 1;
}

.stats-grid .stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 159, 67, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-grid .stat-icon i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-red), #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-grid .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Sections */
.stat-section {
    background: linear-gradient(145deg, var(--bg-card), rgba(35, 35, 35, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
}

.stat-section .section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.stat-section .section-title i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 159, 67, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent-red);
}

/* Genre Stats */
.genre-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.genre-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.genre-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.genre-stat-header .genre-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.genre-stat-header .genre-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.genre-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.genre-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), #ff9f43);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Activity Chart */
.activity-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding-top: 2rem;
}

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

.activity-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent-red), var(--accent-red-dark));
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-bar:hover {
    background: linear-gradient(180deg, #ff9f43, var(--accent-red));
}

.activity-count {
    font-size: 0.7rem;
    font-weight: 700;
    padding-top: 0.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.activity-month {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Actors Grid in Stats */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.actor-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.actor-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-red);
    transform: translateX(4px);
}

.actor-stat-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.actor-stat-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.actor-stat-info .appearance-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Stats Grid */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stats-grid .stat-card {
        padding: 1rem;
    }
    
    .stats-grid .stat-value {
        font-size: 1.75rem;
    }
    
    .stats-grid .stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .activity-chart {
        height: 150px;
    }
}

/* Random Picker Styles */
.picker-page .browse-header {
    justify-content: center;
    text-align: center;
}

.picker-page .header-content {
    flex: none;
}

.picker-container {
    text-align: center;
    padding: 3rem 2rem;
}

.picker-result {
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picker-card {
    max-width: 300px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

.picker-btn {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.picker-btn.spinning .fa-dice {
    animation: spin 0.5s ease infinite;
}

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

/* Collections Grid Styles */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.collection-card {
    position: relative;
    border-radius: 6px;
    overflow: visible;
    transition: transform var(--transition-slow), z-index var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.collection-card:hover {
    transform: scale(1.1);
    z-index: 100;
}

.collection-poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.collection-card:hover .collection-poster {
    box-shadow: var(--shadow-xl);
}

.collection-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: filter var(--transition-normal);
}

.collection-card:hover .collection-poster img {
    filter: brightness(0.5);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-count {
    align-self: flex-end;
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-count i {
    color: var(--accent-color);
}

.collection-info {
    padding: 0.75rem 0.25rem 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.collection-card:hover .collection-info {
    opacity: 1;
    transform: translateY(0);
}

.collection-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Lists Styles */
.custom-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.list-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.list-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.list-card-preview {
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
}

.list-preview-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

/* Collections/Franchises */
.collection-header {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
}

.collection-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.collection-info {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.collection-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.collection-meta {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.collection-overview {
    max-width: 600px;
    color: var(--text-secondary);
}

/* Review Card */
.review-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

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

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

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--rating-gold);
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-content.has-spoiler {
    filter: blur(5px);
    cursor: pointer;
    user-select: none;
}

.review-content.has-spoiler:hover::after {
    content: 'Click to reveal spoiler';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.review-spoiler-tag {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.review-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

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

.review-action-btn.active {
    color: var(--accent-red);
}

/* Write Review Form */
.review-form {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

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

.review-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.spoiler-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reviews Styles */
.reviews-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.reviews-header {
    margin-bottom: 2rem;
}

.media-info-banner {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.media-details h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.review-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.average-rating {
    color: var(--rating-gold);
    font-weight: 600;
}

.average-rating i {
    margin-right: 0.25rem;
}

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

.your-review-section,
.all-reviews-section {
    margin-bottom: 2rem;
}

.your-review-section h2,
.all-reviews-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-card.your-review {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.1), transparent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-rating .fa-star {
    font-size: 0.875rem;
    color: var(--border-color);
}

.review-rating .fa-star.filled {
    color: var(--rating-gold);
}

.rating-number {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.review-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.spoiler-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 212, 0, 0.2);
    color: var(--accent-red);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.review-content.spoiler-hidden {
    position: relative;
}

.spoiler-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    z-index: 1;
}

.spoiler-content {
    filter: blur(8px);
    user-select: none;
}

.spoiler-revealed .spoiler-overlay {
    display: none;
}

.spoiler-revealed .spoiler-content {
    filter: none;
    user-select: auto;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

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

.review-date .edited {
    opacity: 0.7;
}

.btn-helpful {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-helpful:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-helpful.marked {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.empty-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Create/Edit Review Form */
.create-review-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.review-form-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.review-form-header {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.media-poster-form {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.form-title-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.media-title-label {
    color: var(--accent-red);
    font-weight: 500;
}

.review-form {
    padding: 2rem;
}

.rating-group {
    margin-bottom: 2rem;
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    margin: 1rem 0;
}

.star-rating-input input {
    display: none;
}

.star-label {
    font-size: 1.5rem;
    color: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.star-label:hover,
.star-label.hover {
    color: var(--rating-gold);
    transform: scale(1.1);
}

.star-label.active {
    color: var(--rating-gold);
}

.rating-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#selectedRating {
    color: var(--rating-gold);
    font-weight: 600;
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 2.5rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* My Reviews Page */
.my-reviews-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.my-reviews-page .page-header {
    margin-bottom: 2rem;
}

.my-reviews-page .page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.my-reviews-page .subtitle {
    color: var(--text-muted);
}

.reviews-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.reviews-stats .stat-item {
    text-align: center;
}

.reviews-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.reviews-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.my-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-review-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.my-review-card:hover {
    background: var(--bg-hover);
}

.review-media-poster {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.review-content-section {
    flex: 1;
    min-width: 0;
}

.review-media-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.review-media-info h3 {
    font-size: 1.125rem;
    margin: 0;
}

.review-media-info a {
    color: var(--text-primary);
    text-decoration: none;
}

.review-media-info a:hover {
    color: var(--accent-red);
}

.media-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-hover);
    color: var(--text-muted);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.my-review-card .review-rating {
    margin-bottom: 0.5rem;
}

.my-review-card .review-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.spoiler-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 212, 0, 0.2);
    color: var(--accent-red);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.review-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.review-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.my-review-card .review-actions {
    margin-top: 0;
}

/* Notifications Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .picker-container {
        padding: 2rem 1rem;
    }
    
    .picker-filters {
        flex-direction: column;
    }
    
    .collection-title {
        font-size: 1.5rem;
    }
    
    .trailer-modal-close {
        top: -40px;
        font-size: 1.25rem;
    }
    
    .media-info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .media-poster-small {
        margin: 0 auto;
    }
    
    .review-stats {
        justify-content: center;
    }
    
    .media-actions {
        justify-content: center;
    }
    
    .my-review-card {
        flex-direction: column;
    }
    
    .review-media-poster {
        width: 80px;
        height: 120px;
    }
    
    .reviews-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .star-rating-input {
        justify-content: center;
    }
}

/* ==================== Custom Lists Page Styles - Modern Overhaul ==================== */

.lists-page {
    padding: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, var(--bg-primary) 100%);
}

.lists-page .browse-header {
    text-align: center;
    padding: 3rem 4% 2rem;
    background: linear-gradient(180deg, rgba(255, 212, 0, 0.08) 0%, transparent 100%);
}

.lists-page .browse-header .header-content {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lists-page .browse-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lists-page .browse-header h1 i {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff9f43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.75rem;
}

.lists-page .page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

.lists-page .btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #ff9f43);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.lists-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 212, 0, 0.35);
}

/* Lists Sections */
.lists-section {
    padding: 0 4% 3rem;
}

.lists-section .section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.lists-section .section-title i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 159, 67, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent-red);
}

.lists-section .section-title .badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Lists Grid - Modern Cards */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.list-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(35, 35, 35, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
    position: relative;
}

.list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), #ff9f43);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.list-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    box-shadow: 0 16px 48px rgba(255, 212, 0, 0.15);
}

.list-card:hover::before {
    opacity: 1;
}

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

.list-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

.list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-card:hover .list-cover img {
    transform: scale(1.1);
}

.list-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.08) 0%, var(--bg-card) 100%);
}

.list-cover-placeholder i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-red), #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.list-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.list-overlay .item-count {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.list-overlay .item-count i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.list-info {
    padding: 1.25rem;
}

.list-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.list-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.visibility-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.visibility-badge i {
    font-size: 0.65rem;
}

.visibility-badge.public {
    background: rgba(70, 211, 105, 0.15);
    color: var(--success);
    border: 1px solid rgba(70, 211, 105, 0.3);
}

.visibility-badge.private {
    background: rgba(115, 115, 115, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.owner-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.owner-name i {
    opacity: 0.6;
}

.updated-date {
    opacity: 0.7;
}

/* Empty State */
.empty-state, .auth-prompt {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, var(--bg-card), rgba(35, 35, 35, 0.8));
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state i, .auth-prompt i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-red), #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3, .auth-prompt h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-state p, .auth-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* List Details Page */

.list-details-page {
    max-width: 1200px;
    margin: 0 auto;
}

.list-header {
    position: relative;
    padding: 3rem 2rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.list-header-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
}

.list-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.list-header-info .breadcrumb {
    margin-bottom: 1rem;
}

.list-header-info .breadcrumb a {
    color: var(--text-secondary);
}

.list-header-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.list-header-info .list-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
}

.list-header-info .list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.list-header-info .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
}

.list-header-info .meta-item i {
    color: var(--text-muted);
}

.list-actions {
    display: flex;
    gap: 0.75rem;
}

/* List Items */

.list-content {
    padding: 0 1rem;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: background var(--transition-fast);
}

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

.drag-handle {
    cursor: grab;
    padding: 0.5rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.list-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.list-item .item-poster {
    flex-shrink: 0;
}

.list-item .item-poster img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

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

.list-item .item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.list-item .item-title:hover {
    color: var(--accent-red);
}

.list-item .item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.list-item .media-type i {
    margin-right: 0.25rem;
}

.list-item .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.list-item .item-notes {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.list-item .item-notes i {
    margin-right: 0.35rem;
}

.list-item .item-added {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-item .item-actions {
    flex-shrink: 0;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--accent-red) !important;
}

.empty-list {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 12px;
}

.empty-list i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-list h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-list p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Create/Edit List Page */

.create-list-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.create-list-page .page-header {
    margin-bottom: 2rem;
}

.create-list-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.create-list-page h1 i {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.form-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
}

.form-container .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-container .form-label i {
    margin-right: 0.35rem;
    color: var(--text-muted);
}

.visibility-switch {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.visibility-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.visibility-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-switch .public-icon,
.visibility-switch.is-public .private-icon {
    display: none;
}

.visibility-switch.is-public .public-icon {
    display: inline;
    color: var(--success);
}

.visibility-switch.is-private .private-icon {
    display: inline;
    color: var(--text-muted);
}

.visibility-hint .public-hint,
.visibility-switch.is-public ~ .visibility-hint .private-hint {
    display: none;
}

.visibility-switch.is-public ~ .visibility-hint .public-hint {
    display: inline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Add to List Page */

.add-to-list-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.add-to-list-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.add-to-list-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.add-to-list-page h1 i {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.add-to-list-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
}

.media-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.media-preview h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.media-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lists-selection h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.list-option {
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.list-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.list-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-option .list-name {
    font-weight: 500;
    color: var(--text-primary);
}

.list-option .list-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-option.already-added {
    opacity: 0.7;
}

.already-in-list {
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.already-in-list i {
    margin-right: 0.25rem;
}

.notes-input {
    padding: 0 1rem 1rem;
}

.no-lists {
    text-align: center;
    padding: 2rem;
}

.no-lists i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-lists h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.no-lists p {
    color: var(--text-secondary);
}

.create-new-list {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

/* Responsive */

@media (max-width: 768px) {
    .lists-page .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    .list-header-content {
        flex-direction: column;
    }
    
    .list-header-info h1 {
        font-size: 1.75rem;
    }
    
    .list-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .list-item {
        flex-wrap: wrap;
    }
    
    .drag-handle {
        order: -1;
        width: 100%;
        text-align: center;
        padding: 0.25rem;
    }
    
    .media-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ==================== Advanced Filters Styles ==================== */

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.filter-toggle-btn .filter-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.advanced-filters-panel {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group.range-group {
    min-width: 220px;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.filter-group .form-select,
.filter-group .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs .form-control {
    flex: 1;
}

.range-separator {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Active Filters Bar */

.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.active-filters-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 212, 0, 0.15);
    color: var(--accent-red);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* No Results State */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 12px;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsive Filters */

@media (max-width: 768px) {
    .browse-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .active-filters-bar {
        justify-content: center;
    }
}

/* =====================================================
   TRAKT SYNC PAGE
   ===================================================== */

.trakt-sync-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

/* Two Column Grid Layout */
.sync-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.sync-header {
    position: relative;
    background: linear-gradient(135deg, #e50914 0%, #831010 50%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 2rem 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-align: center;
}

.sync-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.sync-header-content {
    position: relative;
    z-index: 1;
}

.trakt-logo {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sync-header h1 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.sync-header p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
}

.trakt-user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trakt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.trakt-username {
    color: white;
    font-weight: 500;
}

.vip-badge {
    background: gold;
    color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* API Error Banner */
.api-error-banner {
    background: linear-gradient(135deg, #ffd400 0%, #e63946 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.api-error-banner .error-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-error-banner .error-content i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.api-error-banner .error-content h4 {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.api-error-banner .error-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 0.95rem;
    max-width: 500px;
}

.api-error-banner .error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.api-error-banner .btn-warning {
    background: white;
    color: #e63946;
    border: none;
    font-weight: 600;
}

.api-error-banner .btn-warning:hover {
    background: #f0f0f0;
    color: #c62828;
}

.sync-comparison {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    height: fit-content;
}

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

.comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sync-comparison .section-title i {
    color: var(--accent-red);
    font-size: 0.9rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.comparison-card:hover {
    border-color: var(--accent-red);
}

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

.comparison-header i {
    font-size: 1.1rem;
    color: var(--accent-red);
}

.comparison-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .stat-label i {
    margin-right: 0.25rem;
}

.stat-item.trakt .stat-label {
    color: #ed1c24;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-item.trakt .stat-value {
    color: #ed1c24;
}

.stat-divider {
    color: var(--text-secondary);
    padding: 0 0.75rem;
    font-size: 0.8rem;
}

.comparison-breakdown {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comparison-breakdown i {
    width: 16px;
    margin-right: 0.25rem;
}

.btn-import {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-import:hover:not(:disabled) {
    background: var(--accent-red);
    color: white;
}

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

.import-all-section {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.import-all-section p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.btn-import-all {
    background: linear-gradient(135deg, #ed1c24 0%, #a61b1b 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-import-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
    color: white;
}

.btn-import-all i {
    margin-right: 0.5rem;
}

/* Recent Activity Section */
.recent-activity-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    height: fit-content;
    max-height: 550px;
    overflow-y: auto;
}

.recent-activity-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-activity-section .section-title i {
    color: var(--accent-red);
    font-size: 0.9rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.activity-item:hover {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.08);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-type {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.9rem;
    line-height: 1.3;
}

.activity-title a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.activity-title a:hover {
    color: var(--accent-red);
}

.activity-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.activity-meta i {
    margin-right: 0.25rem;
}

.back-section {
    text-align: center;
    padding-top: 1rem;
}

/* Import Modal */
#importModal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

#importModal h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#importModal .text-muted,
#importModal p {
    color: var(--text-secondary) !important;
}

.import-spinner {
    color: var(--accent-red);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: var(--text-primary);
}

.toast-notification span {
    color: var(--text-primary);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid #27ae60;
}

.toast-notification.success i {
    color: #27ae60;
}

.toast-notification.error {
    border-left: 4px solid #e74c3c;
}

.toast-notification.error i {
    color: #e74c3c;
}

.toast-notification.warning {
    border-left: 4px solid #f39c12;
}

.toast-notification.warning i {
    color: #f39c12;
}

/* Trakt Sync Responsive */
@media (max-width: 1024px) {
    .sync-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recent-activity-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .trakt-sync-page {
        padding: 1rem;
    }
    
    .sync-header {
        padding: 2rem 1.5rem;
    }
    
    .sync-header h1 {
        font-size: 1.75rem;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .comparison-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===========================================
   Videos & Reels Section (on Detail Pages)
   =========================================== */

.videos-reels-section .row-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.videos-reels-section .row-title i {
    color: var(--accent-red);
}

.reels-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

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

.reels-row::-webkit-scrollbar-track {
    background: transparent;
}

.reels-row::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.reel-card {
    flex: 0 0 auto;
    width: 280px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.reel-card:hover {
    transform: scale(1.03);
}

.reel-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.reel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.reel-card:hover .reel-thumbnail img {
    transform: scale(1.08);
}

.reel-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.reel-play-overlay i {
    font-size: 3rem;
    color: white;
    background: var(--accent-red);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast);
}

.reel-card:hover .reel-play-overlay i {
    transform: scale(1.1);
}

.reel-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reel-info {
    padding: 0.75rem 0.25rem;
}

.reel-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Mobile responsive for reels */
@media (max-width: 768px) {
    .reel-card {
        width: 220px;
    }
    
    .reel-play-overlay i {
        font-size: 2rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .reel-card {
        width: 180px;
    }
    
    .reel-title {
        font-size: 0.8rem;
    }
}



/* ===== Error / 404 pages ===== */
.status-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 120px 16px 60px; text-align: center; }
.status-page-inner { max-width: 560px; }
.status-icon { font-size: 3.5rem; color: var(--accent-red); margin-bottom: 16px; }
.status-page h1 { font-size: 2rem; margin-bottom: 12px; }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.status-search { display: flex; gap: 8px; margin-top: 24px; }
.status-search .form-control { flex: 1; }
.status-ref { margin-top: 24px; }

/* ===== Content pages (privacy, terms, about, contact) ===== */
.content-page .content-body { max-width: 760px; margin: 0 auto 64px; line-height: 1.7; color: var(--text-secondary); }
.content-page .content-body h2 { font-size: 1.35rem; color: var(--text-primary); margin: 32px 0 12px; }
.content-page .content-body p, .content-page .content-body li { font-size: 1rem; }
.content-page .content-body ul { padding-left: 1.25rem; }
.content-page .content-body li { margin-bottom: 8px; }
.content-page .content-body a { color: var(--accent-red); }
.content-page .contact-email { font-size: 1.25rem; color: var(--text-primary); }

/* ===== Detail page summary and streaming attribution ===== */
.detail-at-a-glance { margin-top: 24px; }
.detail-at-a-glance h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.detail-at-a-glance p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.provider-attribution { font-size: 0.75rem; color: var(--text-muted); margin: -4px 0 12px; }
.provider-attribution a { color: var(--text-secondary); }

/* ===== Layout fixes (launch audit) ===== */
/* Never let anything push the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
.footer-partners { flex-wrap: wrap; }

/* Titles under posters are always visible (touch screens have no hover),
   which also removes the empty band that used to sit under every row */
.media-card .card-info { opacity: 1; transform: none; }
.media-card .card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }

/* Cards inside a grid fill their column instead of keeping a fixed width */
.media-grid .media-card { width: auto; margin: 0; }
.media-grid .media-card:hover { transform: translateY(-4px); }

@media (max-width: 768px) {
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
}
@media (max-width: 576px) {
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 0.5rem; }
    .media-grid .media-card .card-title { font-size: 0.8rem; }
    .media-grid .media-card .card-meta { font-size: 0.7rem; }
    .media-card:hover { transform: none; }
}

/* Mobile header search shortcut */
.mobile-search-link { margin-left: auto; color: var(--text-primary); font-size: 1.25rem; padding: 0.5rem; line-height: 1; }
.mobile-search-link:hover { color: var(--accent-red); }

/* Search page box */
.page-search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 0 1.25rem; }
.page-search-form .form-control { flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 8px; padding: 0.65rem 1rem; }
.page-search-form .form-control:focus { border-color: var(--accent-red); box-shadow: none; background: var(--bg-card); color: var(--text-primary); }

/* ===== Consistent page gutters (launch audit) =====
   Every page lines up with the logo in the header: same 4% side gutter,
   full width, instead of a mix of Bootstrap .container widths and per-page padding. */
:root { --page-gutter: 4%; }
.main-content .container,
.main-content .container-fluid,
.person-details-page,
.genre-browse-page,
.edit-profile-page,
.trakt-sync-page,
.list-details-page {
    max-width: none;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}
.main-content .status-page { padding-left: 16px; padding-right: 16px; }
.main-content .browse-page, .person-details-page, .genre-browse-page { padding-top: 2rem; }
@media (max-width: 576px) {
    :root { --page-gutter: 16px; }
}
.site-footer .container-fluid { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }

/* Select arrows: some rules use the `background` shorthand, which made the arrow repeat */
.form-select {
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 14px 10px !important;
    padding-right: 2.25rem !important;
}

/* Muted text must stay readable on the dark theme */
.text-muted { color: var(--text-secondary) !important; }

/* One accent colour for primary buttons everywhere */
.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    color: #fff;
}

/* ===== Ad slots ===== */
.ad-slot { margin: 2rem auto; text-align: center; min-height: 100px; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.ad-slot-placeholder { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-color); color: var(--text-muted); border-radius: 8px; height: 120px; }

/* Contact form */
.content-page .contact-form { margin: 24px 0 8px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border-color, rgba(255,255,255,0.08)); border-radius: 12px; }
.content-page .contact-form .form-label { color: var(--text-primary); font-weight: 600; }
.content-page .contact-form .form-control, .content-page .contact-form .form-select { background-color: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-color, rgba(255,255,255,0.15)); }
.content-page .contact-form .form-control:focus, .content-page .contact-form .form-select:focus { border-color: var(--accent-red); box-shadow: 0 0 0 0.2rem rgba(255,212,0,0.25); }
.content-page .contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.content-page .contact-sent { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0; padding: 24px; background: var(--bg-card); border-left: 4px solid var(--accent-red); border-radius: 12px; }
.content-page .contact-sent i { font-size: 2rem; color: var(--accent-red); }
.content-page .contact-sent h2 { margin-top: 0; }
.content-page .contact-sent p { margin-bottom: 0; }

/* Where to watch (streaming) pages */
.streaming-page .provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 8px 0 32px; }
.streaming-page .provider-tile { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); text-decoration: none; transition: border-color .15s, transform .15s; }
.streaming-page .provider-tile:hover { border-color: var(--accent-red); transform: translateY(-2px); }
.streaming-page .provider-tile img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.streaming-page .provider-tile h2 { font-size: 1.1rem; margin: 0 0 4px; }
.streaming-page .provider-tile p { font-size: .9rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.streaming-page .provider-header { display: flex; align-items: center; gap: 20px; }
.streaming-page .provider-header img { width: 72px; height: 72px; border-radius: 14px; flex-shrink: 0; }
.streaming-page .streaming-breadcrumb { font-size: .875rem; color: var(--text-secondary); margin: 8px 0 -8px; }
.streaming-page .streaming-breadcrumb a { color: var(--text-secondary); }
.streaming-page .streaming-breadcrumb a:hover { color: var(--accent-red); }
.streaming-page .streaming-breadcrumb span { margin: 0 6px; opacity: .6; }
.streaming-page .provider-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.streaming-page .provider-nav .btn { font-size: .875rem; padding: 6px 14px; border-radius: 20px; }
.streaming-page .genre-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.streaming-page .genre-chips a { font-size: .8rem; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--border-color); color: var(--text-secondary); text-decoration: none; }
.streaming-page .genre-chips a:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.streaming-page .genre-chips a.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.streaming-page .other-providers { margin: 40px 0 16px; }
.streaming-page .other-providers h2 { font-size: 1.25rem; margin-bottom: 14px; }
.streaming-page .provider-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.streaming-page .provider-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-size: .9rem; }
.streaming-page .provider-chips a:hover { border-color: var(--accent-red); }
.streaming-page .provider-chips img { border-radius: 50%; }
.streaming-page .streaming-credit { font-size: .8rem; color: var(--text-secondary); margin: 32px 0 48px; }
.streaming-page .streaming-credit a { color: var(--text-secondary); text-decoration: underline; }
@media (max-width: 576px) {
    .streaming-page .provider-header { gap: 14px; flex-direction: row; align-items: center; text-align: left; }
    .streaming-page .provider-header h1 { font-size: 1.5rem; }
    .streaming-page .provider-nav, .streaming-page .genre-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--page-gutter, 16px)); padding-right: var(--page-gutter, 16px); }
    .streaming-page .provider-nav::-webkit-scrollbar, .streaming-page .genre-chips::-webkit-scrollbar { display: none; }
    .streaming-page .provider-nav .btn, .streaming-page .genre-chips a { white-space: nowrap; flex-shrink: 0; }
    .streaming-page .provider-header img { width: 52px; height: 52px; }
    .streaming-page .provider-grid { grid-template-columns: 1fr; }
}
.provider-more { font-size: .85rem; color: var(--text-secondary); margin-top: 8px; }
.provider-more a { color: var(--accent-red); }

/* "Movies like..." pages */
.like-page .like-hero { position: relative; display: flex; gap: 28px; align-items: center; margin: 16px 0 32px; padding: 28px; border-radius: 16px; overflow: hidden; background: var(--bg-card); isolation: isolate; }
.like-page .like-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--bg-primary) 20%, rgba(20,20,20,.75)), var(--like-bg, none); background-size: cover; background-position: center; z-index: -1; opacity: .9; }
.like-page .like-hero-poster img { width: 160px; height: auto; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); display: block; }
.like-page .like-hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.like-page .like-intro { max-width: 720px; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.like-page .like-intro a { color: var(--accent-red); }
.like-page .like-list { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; }
.like-page .like-item { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.like-page .like-rank { font-size: 1.6rem; font-weight: 800; color: var(--accent-red); min-width: 36px; text-align: right; line-height: 1; padding-top: 4px; }
.like-page .like-poster img { width: 92px; height: auto; border-radius: 8px; display: block; }
.like-page .like-body { flex: 1; min-width: 0; }
.like-page .like-body h2 { font-size: 1.2rem; margin: 0 0 6px; }
.like-page .like-body h2 a { color: var(--text-primary); text-decoration: none; }
.like-page .like-body h2 a:hover { color: var(--accent-red); }
.like-page .like-year { color: var(--text-secondary); font-weight: 400; }
.like-page .like-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--text-secondary); margin-bottom: 8px; }
.like-page .like-rating i { color: #f5c518; }
.like-page .like-body p { color: var(--text-secondary); margin: 0; line-height: 1.6; font-size: .95rem; }
.like-page .like-ad { list-style: none; }
.like-page .like-back { max-width: 960px; margin: 24px auto 48px; }
.like-page .like-back a { color: var(--accent-red); }
.row-title .see-more-link { font-size: .85rem; font-weight: 500; margin-left: 12px; color: var(--accent-red); }
@media (max-width: 576px) {
    .like-page .like-hero { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
    .like-page .like-hero::before { background-image: linear-gradient(180deg, rgba(20,20,20,.7), var(--bg-primary) 75%), var(--like-bg, none); }
    .like-page .like-hero-poster img { width: 110px; }
    .like-page .like-hero h1 { font-size: 1.6rem; }
    .like-page .like-rank { font-size: 1.2rem; min-width: 24px; }
    .like-page .like-poster img { width: 72px; }
    .like-page .like-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Best-of lists */
.best-page .streaming-breadcrumb, .best-hub .streaming-breadcrumb { font-size: .875rem; color: var(--text-secondary); margin: 8px 0 -8px; }
.best-page .streaming-breadcrumb a { color: var(--text-secondary); }
.best-page .streaming-breadcrumb span { margin: 0 6px; opacity: .6; }
.best-page .best-intro { max-width: 760px; }
.best-page .genre-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.best-page .genre-chips a { font-size: .8rem; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--border-color); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.best-page .genre-chips a:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.best-page .genre-chips a.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.best-page .year-chips { margin-bottom: 28px; }
.like-page .like-more { color: var(--accent-red); text-decoration: none; }
.like-page .like-more:hover { text-decoration: underline; }
.best-hub .best-section { margin: 0 0 36px; }
.best-hub .best-section h2 { font-size: 1.3rem; margin-bottom: 14px; }
.best-hub .best-links { display: flex; flex-wrap: wrap; gap: 10px; }
.best-hub .best-links a { padding: 8px 16px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-size: .9rem; }
.best-hub .best-links a:hover { border-color: var(--accent-red); }
.best-hub .best-links a.primary { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
@media (max-width: 576px) {
    .best-page .genre-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--page-gutter, 16px)); padding-right: var(--page-gutter, 16px); }
    .best-page .genre-chips::-webkit-scrollbar { display: none; }
}

/* Category pills on Movies/TV: consistent with the rest of the site */
.category-filters.btn-group > .btn { border-radius: 20px !important; margin-left: 0 !important; }
.category-filters .btn.btn-danger { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.filter-toggle-btn.btn-outline-info { border-radius: 20px; border-color: var(--border-color); color: var(--text-primary); background: transparent; }
.filter-toggle-btn.btn-outline-info:hover, .filter-toggle-btn.btn-outline-info[aria-expanded="true"] { border-color: var(--accent-red); color: var(--accent-red); background: transparent; }
@media (max-width: 576px) {
    .browse-header > *, .browse-filters { min-width: 0; max-width: 100%; }
    .browse-filters .category-filters { width: auto; min-width: 0; max-width: calc(100% + var(--page-gutter, 16px)); flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-right: calc(-1 * var(--page-gutter, 16px)); padding-right: var(--page-gutter, 16px); }
    .browse-filters .category-filters::-webkit-scrollbar { display: none; }
    .browse-filters .category-filters .btn { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- Blog (The Rec Room) ---------- */
.blog-page, .blog-post-page { padding-bottom: 48px; }
.blog-schedule { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--text-secondary); }
.blog-schedule i { color: var(--accent-red); margin-right: 4px; }
.blog-schedule strong { color: var(--text-primary); font-weight: 600; margin-right: 4px; }
.blog-schedule a { color: var(--text-secondary); text-decoration: none; }
.blog-schedule a:hover { color: var(--accent-red); }
.blog-empty { color: var(--text-secondary); padding: 40px 0; }
.blog-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-red); text-decoration: none; }
.blog-lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--bg-card); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; margin-bottom: 28px; border: 1px solid var(--border-color); }
.blog-lead img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; }
.blog-lead-text { padding: 24px 28px 24px 0; }
.blog-lead h2 { font-size: 1.8rem; margin: 10px 0; color: var(--text-primary); line-height: 1.25; }
.blog-lead p, .blog-card p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 12px; }
.blog-lead time, .blog-card time { font-size: .8rem; color: var(--text-secondary); }
.blog-lead:hover h2, .blog-card:hover h2 { color: var(--accent-red); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--border-color); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card-text { padding: 16px 18px 18px; }
.blog-card h2 { font-size: 1.15rem; margin: 8px 0; color: var(--text-primary); line-height: 1.35; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 36px 0 0; color: var(--text-secondary); }
.blog-pager a { color: var(--accent-red); text-decoration: none; font-weight: 600; }

.blog-article { max-width: 960px; margin: 0 auto; }
.blog-hero { position: relative; margin: 16px 0 28px; padding: 120px 32px 32px; border-radius: 16px; overflow: hidden; background: var(--bg-card); isolation: isolate; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(0deg, var(--bg-primary) 8%, rgba(20,20,20,.78) 55%, rgba(20,20,20,.4)), var(--blog-bg, none); background-size: cover; background-position: center; z-index: -1; }
.blog-hero h1 { font-size: 2.3rem; margin: 10px 0 8px; line-height: 1.2; }
.blog-hero time { color: var(--text-secondary); font-size: .9rem; }
.blog-intro { font-size: 1.15rem; line-height: 1.75; color: var(--text-primary); margin: 0 0 32px; }
.blog-section { margin-bottom: 36px; }
.blog-section > h2 { font-size: 1.5rem; margin: 0 0 6px; padding-top: 8px; border-top: 3px solid var(--accent-red); display: inline-block; }
.blog-section-text { color: var(--text-secondary); margin: 0 0 4px; }
.blog-section-more a, .blog-watch { color: var(--accent-red); text-decoration: none; font-weight: 600; font-size: .9rem; }
.blog-section-more { margin: 14px 0 0; }
.blog-watch { display: inline-block; margin-top: 8px; font-size: .85rem; }
.like-page .like-body h3 { font-size: 1.15rem; margin: 0 0 6px; }
.like-page .like-body h3 a { color: var(--text-primary); text-decoration: none; }
.like-page .like-body h3 a:hover { color: var(--accent-red); }
.blog-credit { font-size: .8rem; color: var(--text-secondary); border-top: 1px solid var(--border-color); padding-top: 16px; margin-top: 8px; }
.blog-more { max-width: 960px; margin: 48px auto 0; }
.blog-more h2 { font-size: 1.4rem; margin-bottom: 16px; }
.blog-more .blog-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (max-width: 768px) {
    .blog-lead { grid-template-columns: 1fr; gap: 0; }
    .blog-lead-text { padding: 18px 18px 20px; }
    .blog-lead h2 { font-size: 1.35rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 90px 18px 20px; }
    .blog-hero h1 { font-size: 1.6rem; }
    .blog-intro { font-size: 1.02rem; }
    .blog-section > h2 { font-size: 1.25rem; }
}

/* ---------- Seasonal hubs ---------- */
.season-hero { position: relative; margin: 16px 0 28px; padding: 110px 32px 32px; border-radius: 16px; overflow: hidden; background: var(--bg-card); isolation: isolate; }
.season-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(0deg, var(--bg-primary) 8%, rgba(20,20,20,.85) 50%, rgba(20,20,20,.45)), var(--season-bg, none); background-size: cover; background-position: center top; z-index: -1; }
.season-hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); font-size: 2.6rem; margin: 10px 0 10px; }
.season-hero p { max-width: 760px; color: #ddd; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 1.08rem; line-height: 1.7; margin: 0; }
.season-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent-red); padding: 6px 12px; border-radius: 20px; }
.season-page .other-providers .provider-chips i { color: var(--accent-red); }
.nav-link.nav-season { color: var(--accent-red) !important; font-weight: 600; }
.nav-link.nav-season i { margin-right: 5px; }
.season-banner { display: flex; align-items: center; gap: 16px; margin: 0 0 2rem; padding: 14px 20px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,212,0,.28), var(--bg-card) 70%); border: 1px solid rgba(255,212,0,.45); backdrop-filter: blur(6px); color: var(--text-primary); text-decoration: none; }
.season-banner:hover { border-color: var(--accent-red); color: var(--text-primary); }
.season-banner > i { font-size: 1.6rem; color: var(--accent-red); }
.season-banner strong { display: block; font-size: 1.05rem; }
.season-banner span { color: var(--text-secondary); font-size: .9rem; }
.season-banner .season-banner-go { margin-left: auto; color: var(--accent-red); font-weight: 600; white-space: nowrap; }
@media (max-width: 768px) {
    .season-hero { padding: 80px 18px 20px; }
    .season-hero h1 { font-size: 1.8rem; }
    .season-hero p { font-size: 1rem; }
    .season-banner { padding: 12px 14px; }
    .season-banner .season-banner-go { display: none; }
}

/* Keep the top menu on one line on smaller laptops */
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link { white-space: nowrap; }
    .dropdown-actors { display: none; }
}
@media (min-width: 992px) and (max-width: 1299px) {
    .navbar .navbar-nav .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; font-size: .9rem; }
    .nav-item-actors { display: none; }
    .dropdown-actors { display: list-item; }
}
