/* ===== Базовые стили ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, system-ui, sans-serif;
    background: var(--bg);
    color: #e6edf3;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== Шапка ===== */
.header {
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 2px solid var(--main);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--hover), var(--main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a {
    color: var(--hover);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--main); }
.search-bar {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 40px;
    padding: 4px;
    border: 1px solid rgba(var(--main-rgb), 0.3);
}
.search-bar input {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: #e6edf3;
    font-size: 14px;
    border-radius: 40px 0 0 40px;
    outline: none;
    width: 180px;
}
.search-bar input::placeholder { color: #94a3b8; }
.search-bar button {
    background: var(--main);
    color: #0f172a;
    border: none;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.search-bar button:hover { background: var(--hover); }

.breadcrumbs { font-size: 13px; color: #94a3b8; margin: 20px 0 12px; }
.breadcrumbs a { color: var(--main); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { text-decoration: none; }

/* ===== Слайдер ===== */
.slider-section {
    margin: 20px 0 30px;
    background: rgba(17, 25, 40, 0.5);
    border-radius: 20px;
    padding: 20px 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.slider-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 18px;
    padding-left: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.slider-wrapper { position: relative; display: flex; align-items: center; overflow: hidden; }
.slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-item {
    flex: 0 0 160px;
    background: rgba(17, 25, 40, 0.8);
    border-radius: 14px;
    padding: 10px;
    text-decoration: none;
    color: #e6edf3;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slider-item:hover {
    transform: translateY(-4px);
    border-color: var(--main);
    box-shadow: 0 8px 20px rgba(var(--main-rgb), 0.25);
}
.slider-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    background: #1e293b;
}
.slider-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}
.slider-item-rating { font-size: 13px; color: #fbbf24; margin-top: 4px; }
.slider-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    margin: 0 4px;
}
.slider-btn:hover { background: rgba(59, 130, 246, 0.4); border-color: var(--main); }
@media (max-width: 768px) {
    .slider-item { flex: 0 0 120px; }
    .slider-btn { width: 32px; height: 32px; font-size: 16px; }
}

/* ===== Каталог ===== */
.catalog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 30px 0; }
.catalog-item {
    display: flex;
    gap: 20px;
    background: rgba(17,25,40,0.7);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(var(--main-rgb), 0.15);
    text-decoration: none;
    color: #e6edf3;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.catalog-item:hover {
    transform: translateY(-2px);
    border-color: var(--main);
    box-shadow: 0 6px 18px rgba(var(--main-rgb), 0.25);
}
.catalog-poster {
    flex: 0 0 120px;
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: #1e293b;
}
.catalog-info { flex: 1; display: flex; flex-direction: column; }
.catalog-title { font-size: 20px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1px; }
.catalog-meta span {
    font-size: 13px;
    background: rgba(var(--main-rgb), 0.15);
    color: var(--hover);
    padding: 3px 10px;
    border-radius: 20px;
}
.catalog-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.catalog-btn {
    align-self: flex-start;
    padding: 6px 16px;
    background: var(--main);
    color: #0f172a;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    margin-top: auto;
    transition: background 0.2s;
}
.catalog-item:hover .catalog-btn { background: var(--hover); }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: rgba(17,25,40,0.6);
    color: #94a3b8;
    border: 1px solid rgba(var(--main-rgb), 0.15);
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.page-link:hover { background: rgba(var(--main-rgb), 0.1); color: var(--hover); border-color: rgba(var(--main-rgb), 0.4); }
.page-link.active {
    background: var(--main);
    color: #0f172a;
    border-color: var(--main);
    box-shadow: 0 4px 12px rgba(var(--main-rgb), 0.3);
}
.page-link.disabled { pointer-events: none; opacity: 0.5; }

.genre-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.genre-link {
    padding: 4px 14px;
    background: rgba(255,255,255,0.06);
    color: inherit;
    border: 1px solid rgba(var(--main-rgb), 0.2);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}
.genre-link:hover, .genre-link.active {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
}

/* ===== Страница фильма/сериала ===== */
.movie-card {
    display: flex;
    gap: 40px;
    background: rgba(17,25,40,0.7);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 30px;
    border: 1px solid rgba(var(--main-rgb), 0.2);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.9);
    margin: 20px 0 35px;
}
.poster-block { flex: 0 0 280px; text-align: center; }
.poster-block img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.7);
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(var(--main-rgb), 0.15);
    transition: transform 0.3s;
}
.poster-block img:hover { transform: scale(1.02); }
.rating-block { margin-top: 14px; }
.stars { display: flex; justify-content: center; gap: 4px; cursor: pointer; }
.star { font-size: 22px; color: #334155; }
.star.filled {
    color: #fbbf24 !important;
}
.rating-label { font-size: 13px; color: #94a3b8; margin-top: 4px; }

.info-block { flex: 1; }
.info-block h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #f1f5f9;
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #cbd5e1;
}
.movie-meta span {
    padding: 6px 18px;
    background: rgba(255,255,255,0.06);
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}
.movie-meta .genre-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(var(--main-rgb), 0.3);
    transition: border-color 0.2s;
    margin-left: 4px;
    margin-right: 4px;
}
.movie-meta .genre-link:hover { border-bottom-color: var(--main); color: #ffffff; }

.seo-snippet {
    font-size: 15px;
    color: #f1f5f9;
    background: rgba(var(--main-rgb), 0.18);
    padding: 14px 18px;
    border-radius: 16px;
    border-left: 4px solid var(--main);
    margin: 14px 0 20px;
}

.desc p { margin-bottom: 14px; font-size: 16px; color: #cbd5e1; }
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 30px;
    margin: 20px 0 10px;
    font-size: 15px;
    color: #94a3b8;
}
.details-grid dt { color: var(--main); font-weight: 600; display: inline; }
.details-grid dd { display: inline; margin-left: 4px; }

.player-wrap {
    background: rgba(17,25,40,0.7);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 20px;
    border: 1px solid rgba(var(--main-rgb), 0.15);
    margin: 30px 0;
}
.player-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    background: #0a0f1a;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}
.player-placeholder img { width: 100%; height: 500px; object-fit: cover; display: block; }
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.player-placeholder:hover .overlay { background: rgba(0,0,0,0.25); }
.play-btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(var(--main-rgb), 0.5);
    transition: transform 0.2s;
}
.play-btn-circle:hover { transform: scale(1.06); background: var(--hover); }
.play-btn-circle svg { width: 40px; height: 40px; fill: #0f172a; }

.player-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.quality-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.q-btn {
    padding: 6px 18px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    border: 1px solid rgba(var(--main-rgb), 0.2);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
}
.q-btn.active {
    background: var(--main);
    color: #0f172a;
    border-color: var(--main);
    box-shadow: 0 4px 12px rgba(var(--main-rgb), 0.3);
}

.player { position: relative; width: 100%; overflow: hidden; }

/* ===== Реакции ===== */
.reactions { margin: 25px 0 15px; text-align: center; }
#lf-reactions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lfv-react {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(var(--main-rgb), 0.2);
    border-radius: 40px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 18px;
    color: #e6edf3;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.lfv-react:hover { background: rgba(var(--main-rgb), 0.2); transform: scale(1.05); }
.lfv-react .emoji { font-size: 24px; line-height: 1; }
.lfv-react .cnt { font-size: 14px; color: #94a3b8; font-weight: 500; }
.lfv-react.selected {
    background: var(--main);
    color: #0f172a;
    border-color: var(--main);
}
.lfv-react.selected .cnt { color: #0f172a; }

/* ===== Похожие ===== */
.related-section { margin: 40px 0; }
.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(var(--main-rgb), 0.2);
    padding-bottom: 10px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.related-card {
    display: flex;
    flex-direction: column;
    background: rgba(17,25,40,0.7);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: #e6edf3;
    border: 1px solid rgba(var(--main-rgb), 0.15);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--main);
    box-shadow: 0 6px 18px rgba(var(--main-rgb), 0.25);
}
.related-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #1e293b;
}
.related-card .related-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    line-height: 1.2;
}
.related-year { font-size: 13px; color: #94a3b8; display: block; }

/* ===== Комментарии ===== */
.comments-section { margin: 40px 0; }
.comment {
    background: rgba(17,25,40,0.6);
    backdrop-filter: blur(8px);
    padding: 16px 22px;
    border-radius: 28px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.comment-author { font-weight: 600; color: var(--hover); }
.comment-date { color: #94a3b8; font-size: 13px; }
.comment p { font-size: 15px; color: #cbd5e1; }

/* ===== Футер ===== */
.footer {
    background: rgba(10,15,30,0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(var(--main-rgb), 0.15);
    margin-top: 40px;
}
.footer p { font-size: 14px; color: #94a3b8; }

/* ===== Кнопка наверх ===== */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--main);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(var(--main-rgb), 0.5);
    transition: transform 0.2s, background 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--hover); transform: translateY(-4px); }

/* ===== SEO-текст ===== */
.seo-footer-text { color: #cbd5e1; }
.seo-footer-text strong { color: #f1f5f9; }
.seo-footer-text li { color: #cbd5e1; }
.seo-footer-text .ph-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f1f5f9;
}

/* ===== Блок "О фильме" ===== */
.about-block {
    background: rgba(17,25,40,0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 22px 28px;
    border: 1px solid rgba(var(--main-rgb), 0.2);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.8);
    margin: 20px 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}
.about-block h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hover);
    margin-bottom: 12px;
}
.about-block p { margin-bottom: 10px; }
.about-block p:last-child { margin-bottom: 0; }

/* ===== Сайдбар ===== */
.layout { display: flex; gap: 20px; margin: 20px 0; }
.sidebar {
    flex: 0 0 280px;
    max-width: 280px;
    background: rgba(17, 25, 40, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    height: fit-content;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(59,130,246,0.2);
    padding-bottom: 8px;
}
.sidebar-comment {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(59,130,246,0.1);
}
.sidebar-comment:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-comment-author { font-weight: 600; color: var(--hover); font-size: 14px; }
.sidebar-comment-date { font-size: 12px; color: #94a3b8; margin-left: 6px; }
.sidebar-comment-text { font-size: 13px; color: #cbd5e1; margin: 4px 0; line-height: 1.4; }
.sidebar-comment-movie { font-size: 12px; color: #86efac; text-decoration: none; }
.sidebar-comment-movie:hover { text-decoration: underline; }
.catalog-main { flex: 1; min-width: 0; }

.sidebar-watch-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-watch-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.sidebar-watch-poster {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}
.sidebar-watch-title { font-size: 13px; color: #cbd5e1; line-height: 1.3; }
.sidebar-watch-link:hover .sidebar-watch-title { color: var(--hover); }

/* ===== Светлая тема ===== */
body.light-theme h1[style*="color:#ffffff"] {
    color: #0f172a !important;
}
body.light-theme {
    --bg: #f1f5f9;
    --main: #16a34a;
    --hover: #22c55e;
    color: #1e293b;
}
body.light-theme .header { background: rgba(248,250,252,0.92); }
body.light-theme .logo {
    background: none;
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
}
body.light-theme .nav-links a { color: #1e293b; }
body.light-theme .nav-links a:hover { color: var(--main); }
body.light-theme .search-bar { background: #e2e8f0; }
body.light-theme .search-bar input { color: #0f172a; }
body.light-theme .search-bar input::placeholder { color: #64748b; }
body.light-theme .search-bar button { color: #ffffff; }
body.light-theme .slider-section { background: rgba(255,255,255,0.7); }
body.light-theme .slider-item { background: #ffffff; }
body.light-theme .slider-item-title { color: #0f172a; }
body.light-theme .catalog-item {
    background: #ffffff;
    border-color: rgba(59,130,246,0.2);
}
body.light-theme .catalog-title {
    color: #0f172a;
}

body.light-theme .catalog-meta span {
    background: rgba(59,130,246,0.1);
    color: #1e293b;
    font-size: 13px;
}
body.light-theme .catalog-desc { color: #475569; }
body.light-theme .catalog-btn {
    background: var(--main);
    color: #ffffff;
}

body.light-theme .movie-meta .genre-link:hover { border-bottom-color: var(--main); color: #ffffff; }


body.light-theme .movie-card { background: #ffffff; }
body.light-theme .info-block h1 { color: #0f172a; }
body.light-theme .seo-snippet { background: rgba(59,130,246,0.1); color: #1e293b; }
body.light-theme .desc p { color: #334155; }
body.light-theme .details-grid dt { color: var(--main); }
body.light-theme .details-grid dd { color: #475569; }
body.light-theme .movie-meta span { background: #e2e8f0; color: #334155; }
body.light-theme .movie-meta .genre-link { color: #1e293b; }
body.light-theme .player-wrap { background: #ffffff; }
body.light-theme .q-btn { background: #e2e8f0; color: #334155; }
body.light-theme .q-btn.active { color: #ffffff; }
body.light-theme .lfv-react { background: #e2e8f0; color: #1e293b; }
body.light-theme .lfv-react.selected { color: #ffffff; }
body.light-theme .related-card {
    background: #ffffff;
    border-color: rgba(59,130,246,0.2);
}
body.light-theme .related-card .related-title {
    color: #0f172a;
}
body.light-theme .related-year {
    color: #64748b;
}

body.light-theme .comment {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}
body.light-theme .comment-author {
    color: var(--main);
}
body.light-theme .comment-date {
    color: #64748b;
}
body.light-theme .comment p {
    color: #334155;
}
body.light-theme .footer { background: rgba(241,245,249,0.9); }
body.light-theme .footer p { color: #64748b; }
body.light-theme .slider-title { color: #0f172a; }
body.light-theme .slider-btn { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.5); color: #1e293b; }
body.light-theme .slider-btn:hover { background: rgba(59,130,246,0.3); color: #0f172a; }
body.light-theme .slider-item-rating { color: #b45309; }
body.light-theme .scroll-top { background: var(--main); }
body.light-theme .scroll-top:hover { background: var(--hover); }
body.light-theme .seo-footer-text { color: #1e293b; }
body.light-theme .seo-footer-text strong { color: #0f172a; }
body.light-theme .seo-footer-text li { color: #1e293b; }
body.light-theme .seo-footer-text .ph-logo { color: #0f172a; }
body.light-theme .about-block { background: #ffffff; color: #1e293b; }
body.light-theme .about-block h4 { color: #0f172a; }
body.light-theme .sidebar { background: #ffffff; }
body.light-theme .sidebar-title { color: #0f172a; }
body.light-theme .sidebar-comment-author { color: var(--main); }
body.light-theme .sidebar-comment-date { color: #64748b; }
body.light-theme .sidebar-comment-text { color: #334155; }
body.light-theme .sidebar-comment-movie { color: #15803d; }
body.light-theme .sidebar-watch-title { color: #334155; }
body.light-theme .sidebar-watch-link:hover .sidebar-watch-title { color: var(--main); }
body.light-theme .sidebar-watch-poster { background: #e2e8f0; }
body.light-theme .related-title {
    color: #0f172a !important;
}
/* Исправления контраста для светлой темы */
body.light-theme .breadcrumbs {
    color: #475569;
}
body.light-theme .breadcrumbs a {
    color: #15803d;
}
body.light-theme .rating-label {
    color: #334155;
}
body.light-theme .details-grid dt {
    color: #15803d;
}

body.light-theme .q-btn.active {
    background: var(--main);
    color: #ffffff;
}
body.light-theme .comment-author {
    color: #15803d;
}
body.light-theme .comment p {
    color: #1e293b;
}
body.light-theme .comment-date {
    color: #64748b;
}
body.light-theme .seo-footer-text {
    color: #1e293b;
}
body.light-theme .seo-footer-text strong,
body.light-theme .seo-footer-text li {
    color: #0f172a;
}
body.light-theme .seo-footer-text .ph-logo {
    color: #0f172a;
}
body.light-theme .footer p {
    color: #475569;
}
body.light-theme .search-bar button {
    color: #ffffff;
}

body.light-theme .slider-item-rating {
    color: #b45309;
}
body.light-theme .slider-item-title {
    color: #0f172a;
}
body.light-theme .slider-title {
    color: #0f172a;
}
body.light-theme .about-block h4 {
    color: #0f172a;
}
body.light-theme .sidebar-comment-author {
    color: #15803d;
}
body.light-theme .sidebar-comment-text {
    color: #1e293b;
}
body.light-theme .sidebar-comment-movie {
    color: #15803d;
}
body.light-theme .sidebar-watch-title {
    color: #1e293b;
}
body.light-theme .related-title {
    color: #0f172a !important;
}
body.light-theme .catalog-title {
    color: #0f172a;
}
body.light-theme .catalog-meta span {
    background: #e2e8f0;
    color: #1e293b;
}
body.light-theme .movie-meta span {
    background: #e2e8f0;
    color: #334155;
}
body.light-theme .movie-meta .genre-link {
    color: #1e293b;
}

body.light-theme .info-block h1 {
    color: #0f172a;
}
body.light-theme .desc p {
    color: #1e293b;
}
body.light-theme .page-link {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}
body.light-theme .page-link:hover {
    background: #f1f5f9;
    border-color: #16a34a;
    color: #16a34a;
}
body.light-theme .page-link.active {
    background: var(--main);
    color: #ffffff;
    border-color: var(--main);
}
/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
    .movie-card { flex-direction: column; padding: 20px; }
    .poster-block img { max-width: 240px; margin: 0 auto; }
    .info-block h1 { font-size: 30px; }
    .catalog-item { flex-direction: column; }
    .catalog-poster { width: 100%; height: auto; }
}
@media (max-width: 500px) {
    .header .nav { flex-direction: column; align-items: stretch; }
    .search-bar { width: 100%; }
    .search-bar input { flex: 1; width: auto; }
}