/* ============ COMMON.CSS — база дизайна Kinogo ============ */

:root {
    --bg-main: #1a2035;
    --bg-secondary: #2d3446;
    --accent: #2c3c73;
    --accent-hover: #3a4f96;
    --text-main: #e2e6f3;
    --text-muted: #8790ad;
	--text-var3: #d3e18c;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --green: #9ab96d;
    --yellow: #e9b44c;
    --red: #eb4d4b;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #010007;
    color: var(--text-main);
    line-height: 1.5;
    background-image: url('../images/backtest5.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1680px auto;
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.d-none { display: none !important; }

/* --- HEADER --- */
.header {
    position: sticky; top: 0; z-index: 1000;
    background-color: rgba(26, 32, 53, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 24px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 2px; flex-shrink: 0; }
.search-bar { flex-grow: 1; max-width: 500px; position: relative; }
.search-bar input {
    width: 100%; padding: 10px 40px 10px 20px; border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color); color: #fff; font-family: inherit;
    transition: border-color 0.3s, background-color 0.3s;
}
.search-bar input:focus { background-color: rgba(255, 255, 255, 0.1); border-color: var(--accent-hover); }
.search-bar button { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }
.auth-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn { padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; color: #fff; }
.btn-login { background-color: transparent; border: 1px solid var(--border-color); }
.btn-login:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-reg { background-color: var(--accent); }
.btn-reg:hover { background-color: var(--accent-hover); }

/* --- ВЕРХНИЙ БЛОК (МЕНЮ + СЛАЙДЕР) --- */
.top-section { padding-top: 40px; margin-bottom: 30px; }
.top-menu { display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.top-menu a { padding: 8px 16px; background-color: var(--accent); border-radius: var(--border-radius); font-size: 14px; font-weight: 500; transition: background-color 0.3s; }
.top-menu a:hover { background-color: var(--accent-hover); }
.slider-wrapper {
    position: relative; background-color: var(--bg-secondary); padding: 15px;
    border-radius: var(--border-radius); box-shadow: var(--shadow); border: 1px solid var(--border-color);
}
.slider-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 calc(12.5% - 10.5px); position: relative; border-radius: 6px; overflow: hidden; cursor: pointer; }
.slider-item img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; display: block; transition: transform 0.3s, filter 0.3s; }
.slider-item:hover img { transform: scale(1.05); filter: brightness(1.1); }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background-color: var(--bg-main); color: #fff;
    border: 1px solid var(--border-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 10; box-shadow: var(--shadow); transition: background-color 0.3s; font-size: 13px;
}
.slider-btn:hover { background-color: var(--accent); }
.slider-btn.prev { left: -8px; }
.slider-btn.next { right: -8px; }

/* --- КАРКАС: САЙДБАР + КОНТЕНТ --- */
.content-wrapper { display: flex; gap: 20px; align-items: flex-start; }
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar-block { background-color: var(--bg-secondary); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.sidebar-title {
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center;
}
.user-nav { display: flex; flex-direction: column; gap: 10px; }
.user-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 15px; background-color: rgba(0,0,0,0.2); border-radius: var(--border-radius); font-size: 13px; transition: background-color 0.3s; }
.user-nav a:hover { background-color: var(--accent); }
.user-nav i { color: var(--text-muted); width: 16px; text-align: center; }
.user-nav a:hover i { color: #fff; }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 15px; margin-bottom: 15px; }
.nav-grid a { font-size: 13px; display: flex; justify-content: space-between; }
.nav-grid a span { color: var(--text-muted); font-size: 12px; }
.nav-grid a:hover { color: var(--accent-hover); }
.nav-subtitle { font-size: 14px; font-weight: 600; color: var(--accent-hover); margin: 15px 0 10px; }
.upd-list { display: flex; flex-direction: column; gap: 10px; }
.upd-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--border-radius); background-color: rgba(0,0,0,0.15); transition: background-color 0.3s; }
.upd-item:hover { background-color: rgba(255,255,255,0.05); }
.upd-img { width: 45px; height: 65px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.upd-info { flex-grow: 1; min-width: 0; }
.upd-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.upd-series { font-size: 12px; color: var(--text-muted); }
.upd-studio { font-size: 11px; color: var(--accent-hover); margin-top: 2px; }
.comm-title {height: 0; font-size: 13px; margin: 10px 0; border-top: 1px solid #7a9470;}
.comm-item { background-color: rgba(0,0,0,0.15); padding: 12px; border-radius: var(--border-radius); margin-bottom: 10px; }
.comm-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comm-avatar { width: 24px; height: 24px; border-radius: 50%; background-color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
.comm-author { font-size: 13px; font-weight: 600; color: #fff; }
.comm-text { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- ГЛАВНЫЙ КОНТЕНТ + КРОШКИ --- */
#dle-content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.main-content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.speedbar {
    background-color: var(--bg-secondary); padding: 12px 20px; border-radius: var(--border-radius);
    font-size: 13px; color: var(--text-muted); box-shadow: var(--shadow);
    border: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.speedbar a { color: var(--text-main); }
.speedbar a:hover { color: var(--accent-hover); }
.speedbar .sep { opacity: 0.4; }

/* --- КАРТОЧКА (общая: главная + подборки) --- */
.card {
    display: flex; background-color: var(--bg-secondary); border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid var(--border-color); position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.bookmark-btn {
    position: absolute; top: 15px; right: 15px; width: 35px; height: 35px;
    background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); border: 1px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; z-index: 5; transition: all 0.3s;
}
.bookmark-btn:hover { background-color: var(--accent); transform: scale(1.1); }
.bookmark-btn.is-active { background-color: var(--accent); }
.card-img-wrap { width: 220px; flex-shrink: 0; position: relative; overflow: hidden; border-radius: var(--border-radius) 0 0 var(--border-radius); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; }
.card:hover .card-img-wrap img { transform: scale(1.08); filter: brightness(1.15); }
.card-badge {
    position: absolute; top: 10px; left: 10px; background-color: rgba(0,0,0,0.7); color: #fff;
    padding: 4px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; backdrop-filter: blur(4px); z-index: 5;
}
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.card-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 15px; padding-right: 40px; }
.card-title a { color: inherit; }
.card-info { display: grid; gap: 6px; font-size: 13px; margin-bottom: 15px; }
.card-info li { display: flex; }
.card-info span { color: var(--text-muted); width: 140px; flex-shrink: 0; }
.card-info a { color: var(--text-main); }
.card-info a:hover { color: #fff; text-decoration: underline; }
.card-desc {
    font-size: 13px; color: var(--text-muted); display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 20px; line-height: 1.6;
}
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.btn-watch {
    background-color: var(--accent); color: #fff; padding: 10px 20px; border-radius: var(--border-radius);
    font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-watch:hover { background-color: var(--accent-hover); }
.card-ratings { display: flex; gap: 15px; }
.rating-item { display: flex; flex-direction: column; align-items: center; background-color: rgba(0,0,0,0.2); padding: 5px 10px; border-radius: 4px; }
.rating-val { font-size: 14px; font-weight: 700; color: #fff; }
.rating-name { font-size: 10px; color: var(--text-muted); }

/* --- МОИ СПИСКИ --- */
.mylists { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 10px 15px; font-family: 'Inter', sans-serif; }
.mylists-tabs { list-style: none; display: ruby; gap: 15px; padding: 0; margin: 0; }
.mylists-tabs li { position: relative; padding: 8px 18px; border-radius: var(--border-radius); background-color: rgba(255, 255, 255, 0.05); cursor: pointer; transition: background-color 0.3s ease; font-weight: 600; font-size: 14px; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.mylists-tabs li:hover:not(.active) { background-color: var(--accent-hover); }
.mylists-tabs li.active { background-color: var(--accent); color: #fff; }
.mylists-tabs li a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.mylists-tabs li span { background-color: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 12px; line-height: 1; user-select: none; }
.mylists-tabs li.active span { background-color: #d3e18c; color: var(--bg-main); }

/* --- СТРАНИЦА ФИЛЬМА: ЗАГОЛОВОК --- */
.page-header { margin-bottom: 15px; }
.page-header h1 { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; }
.movie-original { color: var(--accent-hover); text-transform: uppercase; font-size: 12px; margin-top: 4px; font-weight: 600; letter-spacing: 1px; }

/* --- СТРАНИЦА ФИЛЬМА: ПАНЕЛЬ (ПОСТЕР + ИНФО) --- */
.movie-panel {
    background-color: var(--bg-secondary); border-radius: var(--border-radius);
    border: 1px solid var(--border-color); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
.movie-subcols { display: flex; gap: 20px; }
.poster-wrap { width: 200px; flex-shrink: 0; position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.poster-wrap img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; transition: filter 0.3s; }
.poster-wrap:hover img { filter: brightness(1.1); }
.poster-btn {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    background-color: var(--accent); color: #fff; padding: 10px;
    border-radius: var(--border-radius); font-weight: 600; font-size: 13px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background-color 0.3s; z-index: 5;
}
.poster-btn:hover { background-color: var(--accent-hover); color: #fff; }
.movie-main { flex-grow: 1; min-width: 0; }

/* Инфо-лист */
.info-list { display: grid; gap: 6px; font-size: 13px; margin-bottom: 5px; }
.info-list li { display: flex; gap: 8px; flex-wrap: wrap; line-height: 1.5; }
.info-list .label { color: var(--text-muted); min-width: 150px; flex-shrink: 0; }
.info-list a { color: var(--text-main); }
.info-list a:hover { color: #fff; text-decoration: underline; }
.info-list li.quality { margin: 10px 0; }
.quality-badge {
    background-color: var(--accent); color: #fff; padding: 3px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

/* Кнопка направления */
.xsort__dir {
    width: 34px;
    padding: 0;
    justify-content: center;
}
.xsort__dir i {
    font-size: 13px;
    color: var(--text-var3);
}
.xsort__dir:hover i {
    color: #fff;
}
.xsort__resetall {
    display: none;
    background: transparent;
    border: 0;
    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.xsort__resetall:hover { color: #fff; text-decoration: underline; }
.xsort__resetall.visible { display: inline; }

/* Панель рейтингов */
.rating-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.site-rating { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.site-rating svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sr-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 12; }
.sr-prog { fill: none; stroke: var(--accent-hover); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 439.8; stroke-dashoffset: 114.4; }
.sr-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; }
.site-rating-text { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.site-rating-text small { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.ext-rating { display: flex; flex-direction: column; gap: 1px; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.ext-rating .er-name { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.ext-rating small { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.meta-date { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-muted); }

/* Звёзды */
.stars { display: inline-flex; gap: 2px; cursor: pointer; }
.stars .star { font-size: 16px; transition: transform 0.15s; }
.stars .star:hover { transform: scale(1.15); }
.stars .s-full, .stars .s-half { color: #e9b44c; }
.stars .s-empty { color: rgba(255,255,255,0.18); }
.stars-score { font-size: 12px; color: var(--text-muted); }

/* --- ЛИНИЯ НАСТРОЕНИЙ (v3, grid) --- */
.mood-line {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 16px;
    margin-bottom: 20px;

    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: border-color .3s;
}

.mood-line:hover {
    border-color: var(--accent-hover);
}

.mood-line-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.mood-line-label i {
    color: var(--accent-hover);
}

.mood-line-list {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;
    color: var(--text-main);
}

/* Раскрыто: переносим в том числе длинные слова и ссылки */
.mood-line.is-expanded .mood-line-list {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

.mood-line-list a {
    color: var(--text-main);
}

.mood-line-list a:hover {
    color: var(--accent-hover);
}

.mood-line-list .dot {
    color: var(--accent-hover);
    margin: 0 8px;
}

.mood-line-caret {
    color: var(--text-muted);
    font-size: 11px;
    transition: transform .3s;
}

.mood-line.is-expanded .mood-line-caret {
    transform: rotate(180deg);
}


/* --- ЛИНИЯ ТЕГОВ --- */
.tag-line {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    padding: 10px 16px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tag-line-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); font-weight: 600; flex-shrink: 0;
    display: flex; align-items: center; gap: 6px;
}
.tag-line-label i { color: var(--green); }
.tag-line-list { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; }
.tag-line-list a {
    color: var(--text-main); padding: 3px 10px; border-radius: 4px;
    background-color: rgba(255,255,255,0.04); transition: all 0.3s;
}
.tag-line-list a:hover { background-color: var(--accent); color: #fff; }
.tag-line-list .dot { color: var(--accent-hover); margin: 0 6px; }

/* --- ПОЛНЫЙ ТЕКСТ --- */
.full-text {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    padding: 25px; margin-bottom: 20px; font-size: 14px; line-height: 1.7;
}
.full-text p { margin-bottom: 12px; }
.full-text p:last-child { margin-bottom: 0; }
.full-text a { color: var(--accent-hover); text-decoration: underline; }

/* --- СЛОГАН И ПОДБОРКИ --- */
.slogan-collections {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 20px;
}
.slogan-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.slogan-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.slogan-text { font-size: 15px; font-style: italic; color: #fff; line-height: 1.5; }
.collections-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.collections-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
    background-color: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    color: var(--text-main); transition: all 0.3s; cursor: pointer;
}
.collection-tag:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.collection-tag i { font-size: 11px; color: var(--accent-hover); }
.collection-tag:hover i { color: #fff; }

/* Скриншоты */
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 25px; }
.screen-item {
    aspect-ratio: 16/9; border-radius: 6px; border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #232b45 0%, #141a2e 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 22px; cursor: pointer; transition: border-color 0.3s;
}
.screen-item:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

.page-h2 { font-size: 18px; font-weight: 700; color: #fff; text-align: center; margin: 10px 0 15px; }

/* --- ПЛЕЕР --- */
.player { margin-bottom: 20px; scroll-margin-top: 90px; }
.player-tabs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-bottom: 0; border-radius: var(--border-radius) var(--border-radius) 0 0; padding: 8px 10px;
}
.player-tabs .tab {
    padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; border-radius: 6px; transition: all 0.3s; user-select: none;
}
.player-tabs .tab:hover { color: #fff; background-color: rgba(255,255,255,0.05); }
.player-tabs .tab.is-active { color: #fff; background-color: var(--accent); }
.tabs-stars { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.player-box {
    position: relative; aspect-ratio: 16/9; background-color: #0b101f;
    border: 1px solid var(--border-color); border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
}
.player-panel { position: absolute; inset: 0; display: none; }
.player-panel.is-active { display: block; }
.player-panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(ellipse at center, #1c2440 0%, #0b101f 75%); color: var(--text-muted);
}
.player-placeholder i { font-size: 64px; color: var(--accent-hover); }
.ph-title { font-size: 14px; color: var(--text-main); font-weight: 600; }
.ph-hint { font-size: 12px; }

/* --- САУНДТРЕК ПАНЕЛЬ --- */
.soundtrack-panel {
    position: absolute; inset: 0; display: none; overflow-y: auto;
    background: linear-gradient(135deg, #1c2440 0%, #0b101f 100%);
    padding: 20px;
}
.soundtrack-panel.is-active { display: block; }
.st-layout { display: flex; gap: 20px; height: 100%; }
.st-poster-wrap { flex-shrink: 0; }
.st-poster {
    width: 180px; height: 180px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5); display: block;
}
.st-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.st-album-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.st-release { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.st-links { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.st-link-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background-color: rgba(255,255,255,0.08); border: 1px solid var(--border-color);
    color: var(--text-main); transition: all 0.3s; cursor: pointer;
}
.st-link-btn:hover { background-color: var(--accent); color: #fff; border-color: var(--accent); }
.st-link-btn.apple { border-color: #fa57c1; color: #fa57c1; }
.st-link-btn.apple:hover { background-color: #fa57c1; color: #fff; }
.st-link-btn.apple.is-hidden { display: none; }
.st-link-btn.yandex { border-color: #ffcc00; color: #ffcc00; }
.st-link-btn.yandex:hover { background-color: #ffcc00; color: #000; }
.st-link-btn.yandex.is-active { background-color: #ffcc00; color: #000; }
.st-tracklist { flex-grow: 1; overflow-y: auto; max-height: 260px; }
.st-tracklist.is-hidden { display: none; }
.st-track {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 6px; transition: background-color 0.2s; cursor: pointer;
}
.st-track:hover { background-color: rgba(255,255,255,0.05); }
.st-track-num { width: 22px; font-size: 12px; color: var(--text-muted); text-align: center; flex-shrink: 0; }
.st-track-info { flex-grow: 1; min-width: 0; }
.st-track-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-track-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-track-play {
    width: 28px; height: 28px; border-radius: 50%; background-color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px; flex-shrink: 0; transition: all 0.2s; opacity: 0;
}
.st-track:hover .st-track-play { opacity: 1; }
.st-track-play:hover { background-color: var(--accent-hover); transform: scale(1.1); }
.st-iframe-wrap { flex-grow: 1; border-radius: 8px; overflow: hidden; display: none; min-height: 0; }
.st-iframe-wrap.is-visible { display: block; }
.st-iframe-wrap iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; border-radius: 8px; }

/* Кнопки под плеером: списки + шер */
.player-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.watchlist { position: relative; display: inline-block; }
.watchlist-btn { display: inline-flex; align-items: center; gap: 10px; background-color: rgba(255,255,255,0.05); border: 1px solid var(--border-color, rgba(255,255,255,0.05)); color: var(--text-main, #e2e6f3); padding: 10px 18px; border-radius: var(--border-radius, 8px); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: inherit; }
.watchlist-btn:hover { border-color: var(--accent-hover, #3a4f96); }
.watchlist-btn .wl-caret { font-size: 11px; color: var(--text-muted, #8790ad); transition: transform 0.3s; }
.mylists-watchlist.open .wl-caret { transform: rotate(180deg); }
.watchlist-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background-color: var(--bg-secondary, #2d3446); border: 1px solid var(--border-color, rgba(255,255,255,0.05)); border-radius: var(--border-radius, 8px); box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.2)); display: none; z-index: 20; overflow: hidden; }
.mylists-watchlist.open .watchlist-menu { display: block; }
.watchlist-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 15px; font-size: 13px; color: var(--text-main, #e2e6f3); }
.watchlist-menu a i { width: 16px; text-align: center; color: var(--text-muted, #8790ad); }
.watchlist-menu a:hover { background-color: rgba(255,255,255,0.05); }
.watchlist-menu a.is-active { background-color: var(--accent, #2c3c73); color: #fff; }
.watchlist-menu a.is-active i { color: #fff; }
.share-row { display: flex; gap: 10px; }
.share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background-color: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 15px; transition: all 0.3s;
}
.share-btn:hover { background-color: var(--accent); color: #fff; }

/* Эмодзи-рейтинг */
.rating-emoji {display: flex;gap: 8px;flex-wrap: wrap; margin-bottom: 20px;}
.rating-emoji-rating { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rating-emoji-item {
    flex: 1; min-width: 70px; max-width: 150px; text-align: center;
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: 10px 6px 8px; cursor: pointer;
    transition: all 0.25s; font-size: 22px; line-height: 1;
}
.rating-emoji-item:hover { border-color: var(--accent-hover); transform: translateY(-2px); }
.rating-emoji-item.is-active { border-color: var(--accent-hover); background-color: var(--accent); }
.rating-emoji-item-count { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.rating-emoji-item.is-active .emoji-count { color: #fff; }

/* --- РОДИТЕЛЬСКИЙ КОНТРОЛЬ --- */
.parental-control {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    margin-bottom: 20px; overflow: hidden;
}
.pc-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; cursor: pointer; transition: background-color 0.3s;
    user-select: none;
}
.pc-header:hover { background-color: rgba(255,255,255,0.03); }
.pc-header-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background-color: rgba(235,77,75,0.12); display: flex; align-items: center; justify-content: center;
    color: var(--red); font-size: 16px; flex-shrink: 0;
}
.pc-header-text { flex-grow: 1; }
.pc-header-title { font-size: 14px; font-weight: 600; color: #fff; }
.pc-header-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pc-header-caret { color: var(--text-muted); transition: transform 0.3s; font-size: 12px; }
.parental-control.is-open .pc-header-caret { transform: rotate(180deg); }
.pc-body { display: none; padding: 0 20px 20px; }
.parental-control.is-open .pc-body { display: block; }
.pc-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.pc-item:last-child { border-bottom: 0; }
.pc-item-label { flex-grow: 1; font-size: 13px; color: var(--text-main); }
.pc-item-bar { width: 120px; height: 6px; border-radius: 3px; background-color: rgba(255,255,255,0.08); overflow: hidden; flex-shrink: 0; }
.pc-item-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.pc-item-bar-fill.level-low { width: 33%; background-color: var(--green); }
.pc-item-bar-fill.level-mid { width: 66%; background-color: var(--yellow); }
.pc-item-bar-fill.level-high { width: 100%; background-color: var(--red); }
.pc-item-badge {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; min-width: 60px; text-align: center;
}
.pc-item-badge.level-low { background-color: rgba(154,185,109,0.15); color: var(--green); }
.pc-item-badge.level-mid { background-color: rgba(233,180,76,0.15); color: var(--yellow); }
.pc-item-badge.level-high { background-color: rgba(235,77,75,0.15); color: var(--red); }

/* --- ФРАНШИЗА --- */
.franchise {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    margin-bottom: 20px; overflow: hidden;
}
.franchise__header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; background-color: var(--accent);
    border-left: 3px solid var(--green);
    font-size: 15px; font-weight: 600; color: #fff;
}
.franchise__header a { color: #fff; transition: opacity 0.3s; }
.franchise__header a:hover { opacity: 0.8; }
.franchise__header-icon { width: 18px; height: 18px; flex-shrink: 0; }
.franchise_item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.franchise_item:last-child { border-bottom: 0; }
.franchise_item:hover { background-color: rgba(255,255,255,0.03); }
.franchise_item.is-active { background-color: rgba(44,60,115,0.3); border-left: 3px solid var(--accent-hover); }
.fi__num {
    width: 28px; height: 28px; border-radius: 50%;
    background-color: rgba(255,255,255,0.06); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.franchise_item.is-active .fi__num { background-color: var(--accent); color: #fff; border-color: var(--accent); }
.fi__title { flex-grow: 1; min-width: 0; }
.fi__title-text { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi__category { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.fi__year { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.fi__rating {
    font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    background-color: rgba(154,185,109,0.15); color: var(--green); flex-shrink: 0;
}
.fi__rating--bad {
    font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    background-color: rgba(235,77,75,0.15); color: #eb4d4b; flex-shrink: 0;
}

/* --- СЕРИИ --- */
/* === КОНТЕЙНЕР === */
.episodes {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.episodes-heading {
    padding: 12px 20px;
    background-color: var(--accent);
    border-left: 3px solid var(--green);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episodes-body { padding: 15px; }

/* === КНОПКА СЕЗОНА === */
.season-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    height: 42px;
    padding: 0 16px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
}
.season-toggle:hover { background-color: rgba(255,255,255,0.04); }
.season-toggle i { color: var(--text-muted); transition: transform 0.3s; }
.season-toggle.is-active i { transform: rotate(180deg); }

.season-eps { display: none; }
.season-eps.is-open { display: block; }

/* === ОБЁРТКА ТАБЛИЦЫ (overflow-x) === */
.ep-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* === ТАБЛИЦА === */
.ep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
    table-layout: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ep-table thead th {
    padding: 10px 8px;
    text-align: left;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.ep-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    overflow: hidden;
}

.ep-row { transition: background-color 0.2s; }
.ep-row:hover { background-color: rgba(255,255,255,0.03); }

/* === ШИРИНЫ КОЛОНОК === */
.ep-td-num  { width: 84px; }
.ep-td-date { width: 120px; }
.ep-td-watch { width: 42px; text-align: center; }

/* === КНОПКА НОМЕРА СЕРИИ === */
.ep-num-btn {
    background-color: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.ep-num-btn:hover { background-color: var(--accent-hover); }

/* === НАЗВАНИЕ СЕРИИ === */
.ep-name {
    font-weight: 600;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === ДАТА === */
.ep-date {
    color: var(--text-muted);
    font-size: 12px;
    /* УБРАН white-space: nowrap — теперь переносится */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === КНОПКА ПРОСМОТРА === */
.ep-watch-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.ep-watch-btn:hover { border-color: var(--accent-hover); color: #fff; }
.ep-watch-btn.is-watched {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

/* === ОПИСАНИЕ СЕРИИ === */
.ep-desc-row {
    display: none !important;
}
.ep-desc-row.open {
    display: table-row !important;
}
.ep-desc-row td {
    background-color: rgba(0,0,0,0.25);
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === КНОПКА "ПОКАЗАТЬ ВСЕ" === */
.ep-more-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.ep-more-btn:hover { color: #fff; }

/* ============================================
   КРИТИЧЕСКИЙ ФИКС: атрибут hidden на <tr>
   Без этого мобильные браузеры показывают все
   ============================================ */
.ep-table tr[hidden] {
    display: none !important;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 600px) {
    .episodes-body { padding: 10px; }
    .ep-table { font-size: 12px; }
    .ep-td-num  { width: 60px; }
    .ep-td-date { width: 82px; }
    .ep-td-watch { width: 34px; }
    .ep-num-btn { padding: 6px 7px; font-size: 11px; }
    .ep-date { font-size: 11px; }
    .ep-table thead th { padding: 8px 4px; font-size: 10px; }
    .ep-table tbody td { padding: 8px 4px; }
    .ep-desc-row td { padding: 10px 8px; font-size: 12px; }
    .ep-watch-btn { width: 28px; height: 28px; }
}
/* Факты */
.trivia { margin-bottom: 20px; }
.trivia-title {
    background-color: var(--accent); border-left: 3px solid var(--green);
    padding: 10px 15px; font-size: 15px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px;
}
.trivia-box { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 15px; }
.trivia-item { display: flex; gap: 12px; padding: 12px; background-color: rgba(0,0,0,0.2); border-radius: 6px; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.6; position: relative; }
.trivia-item:last-child { margin-bottom: 0; }
.trivia-item i.trivia-icon { color: var(--green); font-size: 16px; margin-top: 3px; flex-shrink: 0; }

/* Спойлер в фактах */
.trivia-item.has-spoiler .trivia-text { position: relative; }
.trivia-item.has-spoiler .trivia-text-content {
    filter: blur(5px); user-select: none; transition: filter 0.4s ease;
}
.trivia-item.has-spoiler.revealed .trivia-text-content { filter: blur(0); user-select: auto; }
.spoiler-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.4); border-radius: 4px; cursor: pointer;
    transition: opacity 0.3s; z-index: 2;
}
.trivia-item.has-spoiler.revealed .spoiler-overlay { opacity: 0; pointer-events: none; }
.spoiler-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    background-color: var(--accent); color: #fff;
    font-size: 12px; font-weight: 600; border: none; cursor: pointer;
    font-family: inherit; transition: background-color 0.3s;
}
.spoiler-btn:hover { background-color: var(--accent-hover); }
.spoiler-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #eb4d4b; background-color: rgba(235,77,75,0.12);
    padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}

/* Важно */
.important-note {
    display: flex; gap: 15px; align-items: flex-start;
    background-color: rgba(44,60,115,0.25);
    border: 1px solid var(--border-color); border-left: 3px solid var(--accent-hover);
    padding: 15px 20px; border-radius: var(--border-radius);
    margin-bottom: 20px; font-size: 13px; line-height: 1.6;
}
.important-note i { font-size: 24px; color: var(--accent-hover); margin-top: 2px; }
.important-note strong { color: #fff; }

/* Смотрите также */
.related { margin-bottom: 20px; }
.sect-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.related-item img {
    width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px;
    display: block; box-shadow: var(--shadow); transition: transform 0.3s, filter 0.3s;
}
.related-item:hover img { transform: scale(1.04); filter: brightness(1.1); }
.related-item .t { font-size: 12px; margin-top: 8px; color: var(--text-main); line-height: 1.35; }
.related-item:hover .t { color: #fff; }

/* Комментарии */
.comments { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.comments-header { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 12px; }
.comments-title { font-size: 18px; font-weight: 700; color: #fff; }
.comments-info { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-grow: 1; }
.comments-info i { color: #eb4d4b; }
.btn-add {
    background-color: var(--accent); color: #fff; padding: 10px 20px;
    border-radius: var(--border-radius); font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; font-family: inherit; transition: background-color 0.3s;
}
.btn-add:hover { background-color: var(--accent-hover); }
.comment-form { display: none; background-color: rgba(0,0,0,0.2); border-radius: var(--border-radius); padding: 15px; margin-bottom: 15px; }
.comment-form.open { display: block; }
.comment-form textarea {
    width: 100%; min-height: 120px; resize: vertical;
    background-color: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    border-radius: 6px; padding: 12px; color: #fff;
    font-family: inherit; font-size: 13px;
}
.comment-form textarea:focus { border-color: var(--accent-hover); }
.emoji-bar { display: flex; gap: 14px; margin: 12px 0; font-size: 20px; }
.emoji-bar span { cursor: pointer; transition: transform 0.2s; }
.emoji-bar span:hover { transform: scale(1.3); }
.comment-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.comment-form-row input {
    flex: 1; min-width: 150px; padding: 10px 14px;
    background-color: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    border-radius: 6px; color: #fff; font-size: 13px; font-family: inherit;
}
.comment-form-row input:focus { border-color: var(--accent-hover); }
.comment-list .comment-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.comment-list .comment-item:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 16px; flex-shrink: 0; }
.comment-meta { display: flex; gap: 10px; align-items: baseline; }
.comment-author { font-weight: 600; font-size: 14px; color: #fff; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 13px; color: var(--text-main); line-height: 1.6; margin-top: 4px; }
.comment-like { margin-top: 6px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.comment-like:hover { color: var(--accent-hover); }

/* --- SEO БЛОК --- */
.seo-block { background-color: var(--bg-secondary); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.seo-block h1 { font-size: 20px; color: #fff; margin-bottom: 15px; }
.seo-block p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.seo-text-wrapper { max-height: 120px; overflow: hidden; position: relative; transition: max-height 0.5s ease; }
.seo-text-wrapper.expanded { max-height: 2000px; }
.seo-text-wrapper:not(.expanded)::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}
.seo-toggle-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 15px;
    padding: 10px 20px; background-color: var(--accent); color: #fff;
    border: none; border-radius: var(--border-radius); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background-color 0.3s; font-family: inherit;
}
.seo-toggle-btn:hover { background-color: var(--accent-hover); }
.seo-toggle-btn i { transition: transform 0.3s; }
.seo-toggle-btn.active i { transform: rotate(180deg); }
.seo-text-wrapper ul {font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px;}
.seo-text-wrapper ul li {position: relative;padding-left: 25px;margin-left: 25px;}
.seo-text-wrapper ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--text-var3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* --- FOOTER --- */
.footer { border-top: 1px solid var(--border-color); margin-top: 30px; padding: 25px 0; background-color: rgba(0,0,0,0.2); }
.footer__inner { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.footer__logo { font-size: 20px; }
.footer__rights { font-size: 12px; padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 20px; }
.footer__rights:hover { background-color: var(--accent); border-color: var(--accent); }
.footer__copy { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* --- LOGIN MODAL --- */
/* --- LOGIN MODAL --- */
.login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.login-overlay.active { display: flex; }

.login {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: loginFadeIn 0.3s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}
.login__title { font-size: 18px; font-weight: 700; color: #fff; }
.login__title a { color: var(--accent-hover); font-size: 13px; font-weight: 500; margin-left: 10px; }
.login__title a:hover { text-decoration: underline; }

.login__close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer;
    color: var(--text-muted); transition: all 0.3s;
}
.login__close:hover { background-color: rgba(255,255,255,0.1); color: #fff; }

.login__content { padding: 25px; }
.login__row { margin-bottom: 18px; position: relative; }
.login__caption { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.login__caption a { color: var(--accent-hover); font-size: 12px; }
.login__caption a:hover { text-decoration: underline; }

.login__input input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.login__input input:focus {
    border-color: var(--accent-hover);
    background-color: rgba(0,0,0,0.4);
    outline: none;
}
.login__input input::placeholder { color: var(--text-muted); }

.login__row .fa-user,
.login__row .fa-lock {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.login__row.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login__row.checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent-hover);
    cursor: pointer;
}
.login__row.checkbox span { font-size: 13px; color: var(--text-muted); }

.login__row button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}
.login__row button[type="submit"]:hover { background-color: var(--accent-hover); }

.login__social { padding: 0 25px 25px; text-align: center; }
.login__social-caption {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
}
.login__social-caption::before,
.login__social-caption::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--border-color);
}
.login__social-caption::before { left: 0; }
.login__social-caption::after  { right: 0; }

.login__social-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.login__social-btns a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 16px;
    text-decoration: none;
}
.login__social-btns a:hover { background-color: var(--accent); color: #fff; }

/* Кнопка в шапке */
.header-login-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.3s;
}
.header-login-btn:hover { background: var(--accent-hover); }

/* --- PROFILE MODAL --- */
.profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.profile-overlay.active { display: flex; }

.profile-modal {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: loginFadeIn 0.3s ease;
    overflow: hidden;
}

/* Header */
.profile-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
}
.profile-modal__user { display: flex; align-items: center; gap: 12px; }
.profile-modal__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}
.profile-modal__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-modal__name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
}
.profile-modal__name:hover { color: var(--accent-hover); }
.profile-modal__group { font-size: 12px; color: var(--text-muted); }

.profile-modal__close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer;
    color: var(--text-muted); transition: all 0.3s;
}
.profile-modal__close:hover { background-color: rgba(255,255,255,0.1); color: #fff; }

/* Stats */
.profile-modal__stats {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.profile-modal__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    transition: background-color 0.3s;
    border-right: 1px solid var(--border-color);
}
.profile-modal__stat:last-child { border-right: none; }
.profile-modal__stat:hover { background-color: rgba(255,255,255,0.05); }
.profile-modal__stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-hover);
}
.profile-modal__stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Menu */
.profile-modal__menu { padding: 10px 0; }
.profile-modal__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.profile-modal__link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}
.profile-modal__link i { width: 18px; text-align: center; font-size: 14px; }
.profile-modal__link--admin { color: var(--accent-hover); }
.profile-modal__link--admin:hover { color: #fff; background-color: rgba(255,100,100,0.1); }

.profile-modal__badge {
    margin-left: auto;
    background-color: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Footer */
.profile-modal__footer {
    display: flex;
    gap: 10px;
    padding: 15px 25px 25px;
    border-top: 1px solid var(--border-color);
}
.profile-modal__addnews {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--accent);
    color: #fff;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}
.profile-modal__addnews:hover { background-color: var(--accent-hover); }

.profile-modal__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--border-radius);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.profile-modal__logout:hover {
    background-color: rgba(255,50,50,0.15);
    border-color: rgba(255,50,50,0.3);
    color: #ff6b6b;
}

/* Header button */
.header-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}
.header-profile-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.header-profile-btn__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.header-profile-btn__name { font-weight: 600; }
.header-profile-btn__badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}
.header-profile-btn .fa-chevron-down { font-size: 10px; color: var(--text-muted); }


/* --- АДАПТИВ --- */
@media (max-width: 767px) {
    .content-wrapper {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; order: 2; }
    .main-content { order: 1; }
    .slider-item { flex: 0 0 calc(25% - 9px); }
    .info-list .label { min-width: 130px; }
    .st-layout { flex-direction: column; align-items: center; }
    .st-poster { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; justify-content: center; }
    .search-bar { order: 3; max-width: 100%; width: 100%; }
    .top-section { padding-top: 20px; }
    .top-menu { justify-content: center; }
    .slider-item { flex: 0 0 calc(33.333% - 8px); }
    .slider-btn { display: none; }
    .slider-track { scroll-snap-type: x mandatory; }
    .slider-item { scroll-snap-align: start; }
	.rating-emoji-item { max-width: 150px }
    .card { flex-direction: column; }
    .card-img-wrap { width: 100%; height: 350px; border-radius: var(--border-radius) var(--border-radius) 0 0; }
    .card-info span { width: 110px; }
    .card-footer { flex-direction: column; align-items: flex-start; }
    .btn-watch { width: 100%; justify-content: center; }
    .card-ratings { width: 100%; justify-content: space-between; }

    .page-header h1 { font-size: 20px; }
    .movie-subcols { flex-direction: column; }
    .poster-wrap { width: 180px; margin: 0 auto; }
    .info-list .label { min-width: 110px; }
    .rating-bar { gap: 14px; }
    .meta-date { margin-left: 0; }
    .tabs-stars { margin-left: 0; width: 100%; }
    .player-tabs .tab { padding: 10px 12px; font-size: 12px; }
    .player-actions { flex-direction: column; align-items: stretch; }
    .player-actions .watchlist-btn { width: 100%; justify-content: center; }
    .share-row { justify-content: center; }
    .emoji-item { min-width: 46px; }

    .ep-table, .ep-table tbody { display: block; }
    .ep-table thead { display: none; }
    .ep-table tr { display: block; width: 100%; }
    .ep-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; }
    .ep-row td { border: 0; padding: 0; width: auto; }
    .ep-row .ep-td-name { flex: 1 1 auto; min-width: 0; }
    .ep-row .ep-td-watch { margin-left: auto; }
    .ep-desc-row.open { display: block; padding: 0 12px 12px; }
    .ep-desc-row td { padding: 12px 0; }

    .franchise_item { padding: 10px 14px; gap: 8px; }
    .fi__year { display: none; }

    .pc-item-bar { width: 80px; }
    .st-layout { flex-direction: column; align-items: center; }
    .st-poster { width: 120px; height: 120px; }

    .login { margin: 20px; }
    .footer__inner { justify-content: center; text-align: center; }
    .footer__copy { margin-left: 0; }
}

/* На телефоне заголовок и каретка сверху, список снизу */
@media (max-width: 600px) {
    .mood-line {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }

    .mood-line-label {
        grid-column: 1;
        grid-row: 1;
    }

    .mood-line-caret {
        grid-column: 2;
        grid-row: 1;
    }

    .mood-line-list {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .rating-emoji-item { min-width: 50px }
	.slider-item { flex: 0 0 calc(50% - 6px); }
    .nav-grid { grid-template-columns: 1fr; }
    .card-info { display: block; }
    .card-info li { flex-direction: column; margin-bottom: 8px; }
    .card-info span { width: 100%; color: #fff; font-weight: 500; margin-bottom: 2px; }
    .info-list li { flex-direction: column; gap: 2px; margin-bottom: 6px; }
    .info-list .label { min-width: 100%; }
    .footer__inner { justify-content: center; text-align: center; }
    .footer__copy { margin-left: 0; }
    .related-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .st-poster { width: 100px; height: 100px; }
    .pc-item { flex-wrap: wrap; }
    .pc-item-bar { width: 100%; order: 3; }
}