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

:root {
    --bg-primary: #0f1923;
    --bg-secondary: #1a2535;
    --bg-card: #1e2a3a;
    --bg-card-hover: #253345;
    --text-primary: #e8edf2;
    --text-secondary: #8899aa;
    --text-muted: #556677;
    --accent: #2a9d6e;
    --accent-hover: #23865d;
    --accent-gold: #d4af37;
    --border: #1e3045;
    --shadow: rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-lg: 12px;
}

/* --- Light theme: Soft Blue --- */
[data-theme="light"] .unverified-notice {
    background: #FEF3C7;
    border-color: #D97706;
    color: #92400E;
}
[data-theme="light"] .verify-btn {
    background: #D97706;
}
[data-theme="light"] .verify-btn:hover {
    background: #B45309;
}
[data-theme="light"] .edit-success {
    background: #DCFCE7;
    border-color: #16A34A;
    color: #166534;
}
[data-theme="light"] .unverified-badge {
    background: transparent;
    color: #92400E;
    border-color: transparent;
}
[data-theme="light"] {
    --bg-primary: #EEF2F7;
    --bg-secondary: #E2E8F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #2a9d6e;
    --accent-hover: #23865d;
    --accent-gold: #b8860b;
    --border: #CBD5E1;
    --shadow: rgba(30, 41, 59, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Noise texture overlay — behind content, not over text/images */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    filter: url(#noiseFilter);
    opacity: 0.25;
    background: rgba(255, 255, 255, 0.5);
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-secondary);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
    flex-shrink: 1;
}

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

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.login-btn:hover {
    background: var(--accent-hover);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.logo-img {
    height: 120px;
    width: auto;
    max-width: 100%;
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}


[data-theme="light"] .hero-title {
    color: #64748b;
}

[data-theme="light"] .hero-link {
    color: #059669;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 56px 0 40px;
}

.hero-title {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 12px;
    color: #c0c8d0;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero-link {
    color: #34d399;
    text-decoration: none;
    font-weight: 400;
}

.hero-link:hover {
    text-decoration: underline;
}

/* Main */
.main {
    flex: 1;
    padding: 0 0 40px;
}

/* Search / Filter card */
.search-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-row:last-child {
    margin-bottom: 0;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

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

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

.search-btn {
    padding: 12px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.filter-row select,
.filter-row input[type="number"] {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    flex: 1;
    min-width: 140px;
}

.filter-row select:focus,
.filter-row input[type="number"]:focus {
    border-color: var(--accent);
}

.filter-row input[type="number"] {
    flex: 1;
    min-width: 80px;
    cursor: text;
    -moz-appearance: textfield;
}

.filter-row input[type="number"]::-webkit-outer-spin-button,
.filter-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unrated-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    min-width: 140px;
}

.unrated-toggle input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.year-range {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.year-separator {
    color: var(--text-muted);
}

/* Results */
.results-info {
    text-align: center;
    margin-bottom: 32px;
}

.results-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* Movie Card */
.movie-card {
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.movie-card:hover {
    transform: translateY(-4px);
}

.movie-poster {
    aspect-ratio: 2/3;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

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

.movie-poster .no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 48px;
}

/* Ranking badge */
.movie-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.movie-rank.rank-1 { background: #d4af37; }
.movie-rank.rank-2 { background: #a0a0a0; }
.movie-rank.rank-3 { background: #cd7f32; }
.movie-rank.rank-other { background: rgba(0, 0, 0, 0.6); }

/* Age badge on poster */
.movie-certification {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.cert-al { background: #2a9d6e; }
.cert-7 { background: #3498db; }
.cert-12 { background: #e67e22; }
.cert-16 { background: #e74c3c; }
.cert-18 { background: #9b2c2c; }
.cert-default { background: rgba(0, 0, 0, 0.7); }

.movie-info {
    padding: 12px 4px;
}

.movie-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.movie-genres {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.genre-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
}

.movie-details-link {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

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

.pagination button {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pagination button:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

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

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

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

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

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 24px 80px var(--shadow);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--accent);
}

/* Movie Detail */
.movie-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

.movie-detail-poster {
    border-radius: var(--radius);
    overflow: hidden;
}

.movie-detail-poster img {
    width: 100%;
    display: block;
}

.movie-detail-content {
    padding: 32px 32px 32px 0;
}

.movie-detail-header {
    margin-bottom: 24px;
}

.movie-detail-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.movie-detail-original {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.movie-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.movie-detail-tagline {
    font-style: italic;
    color: var(--text-secondary);
    margin: 24px 0;
    font-size: 18px;
}

.movie-detail-overview {
    margin-bottom: 32px;
    line-height: 1.8;
}

.movie-detail-section {
    margin-bottom: 24px;
}

.movie-detail-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.certifications-grid {
    display: flex;
    gap: 16px;
}

.certification-item {
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius);
    text-align: center;
}

.certification-country {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.certification-rating {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
}

.content-warnings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.warning-category {
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.warning-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Unverified warning badge */
.unverified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.unverified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #b45309;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.unverified-badge .unverified-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 20;
}

.unverified-badge .unverified-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border);
}

.unverified-badge:hover .unverified-tooltip,
.unverified-badge.tooltip-visible .unverified-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Card-level unverified badge */
.movie-unverified {
    position: absolute;
    top: 8px;
    left: 8px;
}

.movie-unverified .unverified-icon {
    box-shadow: 0 1px 4px var(--shadow);
}

.movie-unverified .unverified-tooltip {
    left: 0;
    transform: none;
}

.movie-unverified .unverified-tooltip::after {
    left: 9px;
    transform: none;
}

/* Detail-level unverified banner */
.unverified-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #422006;
    border: 1px solid #b45309;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #fbbf24;
}

.unverified-notice .unverified-icon {
    width: 22px;
    height: 22px;
    font-size: 14px;
    flex-shrink: 0;
}

.verify-btn {
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 12px;
    background: #b45309;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.verify-btn:hover { background: #d97706; }
.verify-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-genres .genre-tag {
    font-size: 12px;
    padding: 6px 12px;
}

.content-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.content-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.content-tag-sexual { border-color: #e74c8b; color: #e74c8b; }
.content-tag-violence { border-color: #e74c3c; color: #e74c3c; }
.content-tag-substances { border-color: #e67e22; color: #e67e22; }
.content-tag-language { border-color: #f39c12; color: #f39c12; }
.content-tag-themes { border-color: #9b59b6; color: #9b59b6; }
.content-tag-scary { border-color: #3498db; color: #3498db; }

/* Watch providers */
.watch-providers-toggle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.watch-providers-toggle:hover {
    color: var(--text-primary);
}

.watch-providers-content {
    margin-top: 12px;
}

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

.provider-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.provider-group-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 100px;
}

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

.provider-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.justwatch-attribution {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.justwatch-logo {
    height: 14px;
    width: auto;
}

/* Threads section */
.threads-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.threads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.threads-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0;
}

.threads-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.threads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.thread-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.thread-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.thread-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.thread-preview {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-thread-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.new-thread-btn:hover {
    background: var(--accent-hover);
}

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

.threads-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.threads-login-hint {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.threads-login-hint a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Thread view modal */
.thread-view {
    padding: 32px;
}

.thread-view-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.thread-view-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.thread-view-back:hover {
    color: var(--text-primary);
}

.thread-view-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.thread-view-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* Posts list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.post-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-author {
    font-weight: 500;
    font-size: 14px;
}

.post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.post-edited {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.post-content {
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.post-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.post-action-btn.delete:hover {
    color: var(--accent);
}

/* Reply form */
.reply-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.reply-form-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.reply-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

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

.reply-textarea::placeholder {
    color: var(--text-muted);
}

.reply-submit {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.reply-submit:hover {
    background: var(--accent-hover);
}

.reply-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* New thread form */
.new-thread-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.new-thread-form.hidden {
    display: none;
}

.new-thread-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.new-thread-input:focus {
    outline: none;
    border-color: var(--accent);
}

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

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

.new-thread-cancel {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.new-thread-cancel:hover {
    background: var(--bg-card-hover);
}

/* Edit post form */
.edit-post-form {
    margin-top: 12px;
}

.edit-post-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.edit-post-cancel {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.edit-post-save {
    padding: 8px 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    cursor: pointer;
}

/* Login modal */
.login-modal-content {
    max-width: 400px;
}

.login-modal-body {
    padding: 48px 32px;
    text-align: center;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

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

.login-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-provider-btn:hover {
    transform: translateY(-1px);
}

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

.facebook-btn {
    background: #1877F2;
    border: none;
    color: white;
}

.facebook-btn:hover {
    background: #166FE5;
}

.fb-icon {
    flex-shrink: 0;
}

.login-terms {
    font-size: 12px;
    color: var(--text-muted);
}

/* Google Sign-In button container styling */
#google-signin-btn {
    display: flex;
    justify-content: center;
}

#google-signin-btn > div {
    width: 100% !important;
}

/* Legal pages */
.legal-page {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.legal-page h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page ul {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.author-byline {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.linkedin-link {
    display: inline-block;
    color: #0a66c2 !important;
    vertical-align: middle;
    margin-left: 3px;
    text-decoration: none !important;
}

.linkedin-link:hover {
    color: #004182 !important;
    text-decoration: none !important;
}

/* Footer */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.tmdb-attribution {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.tmdb-attribution:hover {
    color: var(--text-secondary);
}

.tmdb-attribution img {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tmdb-attribution:hover img {
    opacity: 1;
}

.footer-attributions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-sep {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* Edit Section (in movie modal) */
.edit-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.edit-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0;
}

.edit-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 12px;
}

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

.edit-form {
    margin-top: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
}

.edit-form-row {
    margin-bottom: 16px;
}

.edit-form-row label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.edit-form-row select,
.edit-form-row textarea,
.edit-form-row input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.edit-form-row select:focus,
.edit-form-row textarea:focus,
.edit-form-row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

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

.edit-form-row select {
    cursor: pointer;
}

/* Tag checkbox grid */
.tag-group {
    margin-bottom: 12px;
}

.tag-group-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
}

.tag-checkbox:hover {
    background: var(--bg-card-hover);
}

.tag-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.edit-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.edit-submit-btn {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-submit-btn:hover {
    background: var(--accent-hover);
}

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

.edit-cancel-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-cancel-btn:hover {
    background: var(--bg-card-hover);
}

.edit-success {
    padding: 12px 16px;
    background: #14532d;
    border: 1px solid #22c55e;
    border-radius: var(--radius);
    color: #86efac;
    font-size: 14px;
    margin-top: 12px;
}

/* Reviewer Panel */
.reviewer-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.reviewer-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.reviewer-panel-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.reviewer-panel-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.reviewer-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 16px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-card-movie {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.review-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.edit-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card-payload {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.review-card-payload .payload-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.review-card-payload .payload-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.review-card-payload .payload-tag {
    padding: 2px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.review-card-rationale {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.review-card-rationale strong {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
}

.review-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.review-note-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.review-note-input:focus {
    outline: none;
    border-color: var(--accent);
}

.review-approve-btn {
    padding: 10px 20px;
    background: #16a34a;
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.review-approve-btn:hover {
    background: #15803d;
}

.review-reject-btn {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.review-reject-btn:hover {
    background: var(--accent-hover);
}

.review-approve-btn:disabled,
.review-reject-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header reviewer link */
.reviewer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
}

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

/* Theme switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.theme-btn.active {
    color: var(--accent);
}

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

@media (max-width: 900px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-content {
        gap: 8px;
    }

    .logo-img {
        height: 48px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-section {
        padding: 40px 0 28px;
    }

    .container {
        padding: 0 16px;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .search-row {
        flex-direction: column;
    }

    .filter-row {
        flex-direction: column;
    }

    .movie-detail {
        grid-template-columns: 1fr;
    }

    .movie-detail-poster {
        max-width: 200px;
        margin: 32px auto 0;
    }

    .movie-detail-content {
        padding: 24px;
    }

    .movie-detail-title {
        font-size: 24px;
    }

    .review-actions {
        flex-direction: column;
    }

    .review-card {
        padding: 16px;
    }
}
