﻿:root {
    --bg-base: #0a0c12;
    --bg-surface: rgba(18, 22, 33, 0.7);
    --border-color: rgba(255,255,255,0.06);
    --border-glow: rgba(0,242,254,0.25);
    --text: #e8ecf2;
    --text-secondary: #8b95a8;
    --text-muted: #5a6478;
    --primary: #00f2fe;
    --primary-glow: rgba(0,242,254,0.15);
    --accent: #9d4edd;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-base); color: var(--text); font-family: 'Outfit', sans-serif; min-height: 100vh; }
.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.015) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,0.015) 1px,transparent 1px); background-size: 40px 40px; pointer-events: none; z-index: 0; }
.bg-glow { position: fixed; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); opacity: 0.1; pointer-events: none; z-index: 0; }
.bg-glow-1 { top: -150px; right: -100px; background: radial-gradient(circle, var(--primary), transparent 70%); }
.bg-glow-2 { bottom: -150px; left: -100px; background: radial-gradient(circle, var(--accent), transparent 70%); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(10,12,18,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); }
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.logo { font-size: 20px; font-weight: 800; text-decoration: none; color: var(--text); white-space: nowrap; margin-right: 8px; }
.header-search { flex: 1; display: flex; position: relative; }
.h-search { width: 100%; padding: 9px 40px 9px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border 0.2s; }
.h-search:focus { border-color: var(--primary); }
.h-search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; }
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.h-nav-link { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.h-nav-link:hover { color: var(--text); background: var(--primary-glow); }
.h-nav-link.active { color: var(--primary); background: var(--primary-glow); }
.profile-btn { padding: 8px 14px; border-radius: 8px; background: var(--primary-glow); color: var(--primary); font-size: 14px; cursor: pointer; white-space: nowrap; }
.header-profile { display: flex; align-items: center; gap: 6px; }

.content { max-width: 1400px; margin: 0 auto; padding: 28px 24px; position: relative; z-index: 1; }
.page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.home-section { margin-bottom: 36px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-size: 22px; font-weight: 700; }
.section-all { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.section-all:hover { text-shadow: 0 0 10px var(--primary-glow); }

.scroll-wrap { position: relative; }
.scroll-wrap:hover .scroll-btn { opacity: 1; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: rgba(10,12,18,0.85); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: all 0.3s; }
.scroll-btn:hover { background: var(--bg-surface); border-color: var(--primary); color: var(--primary); }
.scroll-btn-left { left: -14px; }
.scroll-btn-right { right: -14px; }
.movie-horizontal { display: flex; gap: 14px; overflow-x: auto; padding: 8px 0 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.movie-horizontal::-webkit-scrollbar { display: none; }
.movie-horizontal > * { scroll-snap-align: start; flex-shrink: 0; }

.movie-card { min-width: 160px; width: 160px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all 0.3s; flex-shrink: 0; }
.movie-grid .movie-card { width: 100%; min-width: 0; }
.movie-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 10px 30px rgba(0,242,254,0.05); }
.movie-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; background: rgba(0,0,0,0.3); }
.movie-info { padding: 10px 12px; }
.movie-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-year { font-size: 12px; color: var(--text-muted); }
.movie-rating { font-size: 12px; color: var(--primary); font-weight: 700; }
.movie-card .movie-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }

.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1200px) { .movie-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1000px) { .movie-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .movie-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .movie-grid { grid-template-columns: repeat(2, 1fr); } }
.list-layout { display: flex; gap: 24px; }
.list-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.list-sidebar h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.list-sidebar label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.f-select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
.f-select option { background: #1a1e2e; color: var(--text); }
.f-select:focus { border-color: var(--primary); }
.f-apply { padding: 10px; border: 1px solid var(--primary); border-radius: 8px; background: transparent; color: var(--primary); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; margin-top: 4px; }
.f-apply:hover { background: var(--primary-glow); }
.list-main { flex: 1; }
.list-main h1 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }

.pagination { display: flex; justify-content: center; gap: 6px; padding: 24px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 14px; transition: all 0.2s; }
.page-btn:hover { border-color: var(--primary); color: var(--text); }
.page-btn.active { background: var(--primary-glow); border-color: var(--border-glow); color: var(--primary); }

.btn-back { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 8px 18px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; margin-bottom: 20px; transition: all 0.2s; }
.btn-back:hover { border-color: var(--primary); color: var(--text); }

.detail-layout { display: flex; gap: 28px; }
.detail-poster { width: 280px; height: 420px; border-radius: var(--radius); flex-shrink: 0; object-fit: contain; background: rgba(0,0,0,0.3); }
.detail-content { flex: 1; }
.detail-content h1 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.detail-original { font-size: 16px; color: var(--text-muted); margin-bottom: 10px; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--text-muted); }
.detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 4px 14px; border-radius: 14px; font-size: 13px; background: var(--primary-glow); color: var(--primary); border: 1px solid var(--border-glow); }
.detail-overview { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 24px; }
.detail-section h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.detail-grid .label { color: var(--text-muted); }
.detail-grid .value { font-weight: 500; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cast-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; text-align: center; cursor: pointer; transition: all 0.2s; }
.cast-card:hover { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: 0 6px 20px rgba(0,242,254,0.05); }
.cast-photo { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: rgba(0,0,0,0.3); }
.cast-name { padding: 8px 6px 2px; font-size: 13px; font-weight: 600; }
.cast-role { padding: 0 6px 8px; font-size: 11px; color: var(--text-muted); }
.loading { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-muted); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.trailer-modal { width: 90%; max-width: 900px; position: relative; border-radius: var(--radius); overflow: hidden; }
.modal-close-btn { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,0.5); border: none; color: #fff; font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; }
.modal-close-btn:hover { background: rgba(0,0,0,0.8); }
.season-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text); cursor: pointer; font-family: inherit; font-size: 13px; transition: all 0.2s; }
.season-btn:hover { border-color: var(--primary); color: var(--primary); }
.episode-card { display: flex; gap: 12px; padding: 10px 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; }
.episode-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-glow); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.episode-info { flex: 1; }
.episode-title { font-size: 14px; font-weight: 600; }
.episode-overview { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.episode-still { width: 120px; height: 68px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cal-date { margin-bottom: 16px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.cal-date-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.2s; }
.cal-date-header:hover { background: rgba(0,0,0,0.35); }
.cal-arrow { font-size: 10px; color: var(--primary); transition: transform 0.2s; }
.cal-day { font-weight: 700; color: var(--primary); text-transform: capitalize; }
.cal-date-num { color: var(--text-muted); }
.cal-episodes { display: flex; flex-direction: column; }
.cal-episode { display: flex; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border-color); }
.cal-episode:last-child { border-bottom: none; }
.cal-episode:hover { background: var(--primary-glow); }
.cal-poster { width: 46px; height: 69px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cal-ep-info { flex: 1; }
.cal-ep-title { font-size: 14px; font-weight: 600; }
.cal-ep-sub { font-size: 12px; color: var(--primary); margin-top: 2px; }
.cal-ep-over { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-inner { flex-wrap: wrap; }
    .header-search { max-width: 100%; order: 3; }
    .list-layout { flex-direction: column; }
    .list-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .detail-layout { flex-direction: column; }
    .detail-poster { width: 200px; height: 300px; }
}

/* ============ Кабинет пользователя ============ */

/* Модал авторизации */
.auth-modal {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-radius: 16px; padding: 32px; width: 380px; max-width: 92vw;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}
.auth-modal .modal-close-btn {
    position: absolute; top: 14px; right: 14px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 16px; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.auth-modal .modal-close-btn:hover {
    color: var(--text); border-color: var(--primary); background: var(--primary-glow);
}
.auth-tabs {
    display: flex; gap: 2px; margin-bottom: 24px;
    background: rgba(0,0,0,0.2); border-radius: 10px; padding: 3px;
}
.atab {
    flex: 1; background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; padding: 10px 16px; font-size: 14px; font-weight: 500;
    border-radius: 8px; transition: all 0.25s;
}
.atab.active {
    color: var(--text); background: var(--primary-glow);
    box-shadow: 0 0 20px rgba(0,242,254,0.08);
}
.atab:hover:not(.active) { color: var(--text-secondary); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label {
    color: var(--text-secondary); font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px;
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
    position: absolute; left: 14px; pointer-events: none; font-size: 16px;
    color: var(--text-muted); line-height: 1;
}
.auth-input-wrap input {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    color: var(--text); border-radius: 10px; padding: 12px 14px 12px 42px;
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-wrap input::placeholder { color: var(--text-muted); }
.auth-input-wrap input:focus {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(0,242,254,0.08);
}
.auth-submit {
    margin-top: 18px; background: linear-gradient(135deg, var(--primary), #00b4d8);
    color: #000; border: none; border-radius: 10px; padding: 13px;
    font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: opacity 0.2s, transform 0.15s; letter-spacing: 0.3px;
}
.auth-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-submit:active { transform: scale(0.98); }
.auth-message { margin-top: 14px; min-height: 20px; font-size: 13px; text-align: center; padding: 8px; border-radius: 8px; }
.auth-hint { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; line-height: 1.5; }
.auth-header { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* Страница профиля */
.profile-container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 16px 20px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); }
.profile-header h1 { font-size: 20px; font-weight: 600; color: var(--text); }
.profile-logout {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    border-radius: 8px; padding: 8px 16px; cursor: pointer; font-family: inherit;
    font-size: 13px; transition: all 0.2s;
}
.profile-logout:hover { border-color: #ef4444; color: #ef4444; }

.profile-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 28px; }
@media (max-width: 820px) { .profile-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .profile-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.profile-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 3px; }
.ptab {
    flex: 1; background: transparent; border: none; color: var(--text-muted); cursor: pointer;
    padding: 10px 18px; font-size: 14px; font-weight: 500; border-radius: 8px; transition: all 0.25s;
}
.ptab.active { color: var(--text); background: var(--primary-glow); box-shadow: 0 0 20px rgba(0,242,254,0.08); }
.ptab:hover:not(.active) { color: var(--text-secondary); }

.profile-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.profile-loading, .profile-empty { color: var(--text-muted); padding: 32px; text-align: center; }
.profile-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.profile-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.profile-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.profile-card-info { padding: 12px; }
.profile-card-title { color: var(--text); font-size: 14px; font-weight: 600; }
.profile-card-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.profile-card-stat { color: var(--primary); font-size: 12px; margin-top: 6px; font-weight: 600; }

/* Кнопки действий на деталях */
.detail-actions { display: flex; gap: 8px; margin: 14px 0; }
.action-btn {
    border: 1px solid transparent; border-radius: 8px; padding: 8px 16px; cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: inherit;
    transition: all 0.2s;
}
.action-watching { background: #16a34a; color: #fff; border-color: #16a34a; }
.action-watching:hover { background: #15803d; }
.action-abandon { background: transparent; color: #f87171; border-color: #f87171; }
.action-abandon:hover { background: rgba(248,113,113,0.1); }

.episode-mark-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary);
    padding: 6px 12px; border-radius: 6px; font-size: 12px; margin-top: 8px; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
}
.episode-mark-btn:hover { border-color: var(--primary); color: var(--text); }
.episode-mark-btn.watched {
    background: #16a34a; border-color: #16a34a; color: #fff;
}
.episode-mark-btn.watched:hover { background: #15803d; border-color: #15803d; }
.episode-watched { background: rgba(22,163,74,0.06); border-color: rgba(22,163,74,0.2); }
.episode-watched .episode-num { background: #16a34a; color: #fff; }

.episode-batch-btn {
    width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--primary);
    background: transparent; color: var(--primary); cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
    transition: all 0.2s;
}
.episode-batch-btn:hover { background: var(--primary-glow); }

.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

.feed-layout { display: flex; gap: 24px; }
.feed-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 160px); overflow-y: auto; position: sticky; top: 80px; }
.feed-sidebar h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feed-sidebar-item { padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.15s; font-size: 13px; }
.feed-sidebar-item:hover { background: var(--primary-glow); }
.feed-sidebar-item.active { background: var(--primary-glow); color: var(--primary); font-weight: 600; }
.feed-sidebar-status { font-size: 14px; flex-shrink: 0; }
.feed-sidebar-title { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-content { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: flex; gap: 16px; padding: 14px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); transition: all 0.2s; }
.feed-item:hover { border-color: var(--border-glow); }
.feed-item-poster { width: 92px; height: 138px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(0,0,0,0.3); }
.feed-item-info { flex: 1; }
.feed-item-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.feed-item-title { font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; }
.feed-item-title:hover { color: var(--primary); }
.feed-item-year { color: var(--text-muted); font-weight: 400; font-size: 14px; }
.feed-item-status-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.feed-item-status { font-size: 14px; flex-shrink: 0; margin-left: 0; }
.feed-item-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.feed-item-remaining { color: var(--primary); font-weight: 500; }
.feed-item-last { color: var(--text-secondary); }
.feed-item-last span { color: var(--text-muted); font-weight: 400; }
.feed-item-next { color: #4ade80; font-weight: 500; }
.feed-item-aired { color: #fbbf24; font-weight: 500; }
.feed-item-prodstatus { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.feed-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 3px; max-width: 320px; }
.feed-tab { flex: 1; background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 10px 16px; font-size: 14px; font-weight: 500; border-radius: 8px; transition: all 0.25s; }
.feed-tab.active { color: var(--text); background: var(--primary-glow); box-shadow: 0 0 20px rgba(0,242,254,0.08); }
.feed-tab:hover:not(.active) { color: var(--text-secondary); }

@media (max-width: 800px) { .feed-layout { flex-direction: column; } .feed-sidebar { width: 100%; max-height: none; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; overflow: visible; } .feed-sidebar h3 { width: 100%; } }

/* ============ Страница актёра ============ */
.person-layout { display: flex; gap: 28px; }
.person-photo { width: 220px; height: 330px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: rgba(0,0,0,0.3); }
.person-info { flex: 1; }
.person-info { flex: 1; }
.person-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.person-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.person-aka { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.person-bio { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.person-credits { margin-top: 28px; }
.person-credits h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; color: var(--text); }
.person-credit-list { display: flex; flex-direction: column; gap: 4px; }
.person-credit-item {
    display: flex; gap: 12px; padding: 10px 14px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s; align-items: center;
}
.person-credit-item:hover { background: var(--bg-surface); }
.person-credit-poster { width: 46px; height: 69px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.person-credit-info { flex: 1; }
.person-credit-title { font-size: 14px; font-weight: 600; color: var(--text); }
.person-credit-year { color: var(--text-muted); font-weight: 400; }
.person-credit-role { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

@media (max-width: 640px) {
    .person-layout { flex-direction: column; }
    .person-photo { width: 160px; height: 240px; }
}

/* ============ Кнопки статусов ============ */
.status-btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
.status-btn {
    padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 500;
    transition: all 0.2s;
}
.status-btn:hover { border-color: var(--primary); color: var(--text); background: var(--primary-glow); }
.status-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); font-weight: 600; box-shadow: 0 0 12px rgba(0,242,254,0.12); }
.status-btn.active[onclick*="'watching'"] { border-color: #00f2fe; color: #00f2fe; }
.status-btn.active[onclick*="'planned'"] { border-color: #fbbf24; color: #fbbf24; }
.status-btn.active[onclick*="'paused'"] { border-color: #f97316; color: #f97316; }
.status-btn.active[onclick*="'completed'"] { border-color: #4ade80; color: #4ade80; }
.status-btn.active[onclick*="'abandoned'"] { border-color: #f87171; color: #f87171; }

.badge-18 { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; color: #fff; background: #ef4444; border-radius: 4px; padding: 2px 5px; line-height: 1; z-index: 2; pointer-events: none; }
.movie-card { position: relative; }
.feed-item-poster { position: relative; }
.detail-poster { position: relative; }
.profile-card { position: relative; }
