:root {
    --bg-main: #0b0f17;
    --bg-card: #131b26;
    --bg-card-hover: #1b2636;
    --border-color: #243142;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #00ADEF;
    --accent-blue-hover: #008ecc;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-purple: #8b5cf6;
    --accent-purple-hover: #7c3aed;
    --accent-gold: #f59e0b;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header 100% Full Width */
.app-header {
    background: #0d131d;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo-area .accent {
    color: var(--accent-blue);
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: #192231;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.header-search input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.2);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* Category Navigation 100% Width */
.cat-nav-bar {
    background: #111823;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease, border-color 0.25s ease;
    max-height: 2500px;
    opacity: 1;
}

.cat-nav-bar.is-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0px solid transparent !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.cat-nav-container {
    width: 100%;
    max-width: 100%;
    padding: 10px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #192433;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cat-chip:hover, .cat-chip.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* Main Container 100% Responsive */
.main-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 24px auto;
    padding: 0 24px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-blue);
}

.breadcrumbs a:hover {
    color: var(--accent-blue);
}

/* Movie Detail Card */
.movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
}

.movie-header {
    margin-bottom: 20px;
}

.movie-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.movie-alt-title {
    font-size: 16px;
    color: var(--text-muted);
}

.movie-grid-main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.poster-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #1a2332;
    aspect-ratio: 2/3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

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

.info-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.info-label {
    color: var(--text-muted);
}

.info-val {
    color: #fff;
    font-weight: 500;
}

.badge-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #1e293b;
    border: 1px solid var(--border-color);
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.badge-tag:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* Accordion Description */
.desc-box {
    position: relative;
    background: #0f1520;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 20px 0;
}

.desc-box.collapsed {
    max-height: 140px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.btn-toggle-desc {
    display: block;
    width: 100%;
    padding: 12px;
    background: #16202e;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 30px;
}

.btn-toggle-desc:hover {
    background: var(--accent-blue);
    color: #fff;
}

/* Online Player Section */
.online-player-section {
    background: #0d141f;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 720px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-top: 14px;
}

.player-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Torrents Table */
.torrents-section {
    margin-top: 36px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.torrents-table {
    width: 100%;
    border-collapse: collapse;
    background: #0e141e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.torrents-table th {
    background: #162130;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.torrents-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    vertical-align: middle;
}

.torrents-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.quality-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.q-4k { background: #7c3aed; color: #fff; }
.q-1080p { background: #0284c7; color: #fff; }
.q-720p { background: #059669; color: #fff; }
.q-480p { background: #475569; color: #fff; }

.peer-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 13px;
}

.stat-seeds { 
    color: #10b981; 
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-peers { 
    color: #f59e0b; 
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-magnet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-magnet:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-torrent-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-torrent-file:hover {
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

/* Movie Cards Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.movie-thumb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.movie-thumb-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.thumb-poster {
    aspect-ratio: 2/3;
    position: relative;
    background: #16202e;
    overflow: hidden;
}

.thumb-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.thumb-year {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.thumb-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.thumb-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-genres {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: auto;
}

/* Footer */
.app-footer {
    background: #080c12;
    border-top: 1px solid var(--border-color);
    padding: 36px 24px;
    margin-top: 60px;
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .movie-grid-main {
        grid-template-columns: 1fr;
    }
    .poster-wrap {
        max-width: 220px;
        margin: 0 auto;
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .header-search {
        max-width: 100%;
    }
    .torrents-table th:nth-child(3), .torrents-table td:nth-child(3) {
        display: none;
    }
}

/* Similar Movies (10 похожих фильмов) */
.similar-movies-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.similar-card {
    background: #0f1722;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.similar-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.similar-poster {
    position: relative;
    aspect-ratio: 2/3;
    background: #16202e;
    overflow: hidden;
}

.similar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.similar-card:hover .similar-poster img {
    transform: scale(1.06);
}

.similar-year-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.similar-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.similar-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-genre {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@media (max-width: 768px) {
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   Unique Film Hub Architecture (Спецификации, Расширенная проза, FAQ, Плеер)
   ========================================================================== */
.film-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.film-hub-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.film-hub-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 6px;
}

.film-hub-year {
    color: var(--accent-blue);
    font-weight: 700;
}

.film-hub-alt {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
}

.film-hub-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

/* Sidebar: Poster & Quick Action Card */
.film-hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.poster-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #141c28;
    aspect-ratio: 2/3;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-quality-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--accent-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.quick-actions-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0d141e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
}

.btn-primary-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary-dl:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-secondary-mag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: #182230;
    border: 1px solid #2d3e52;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-secondary-mag:hover {
    background: #202d40;
    border-color: var(--accent-blue);
    color: #fff;
}

.btn-tertiary-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 173, 239, 0.1);
    border: 1px solid rgba(0, 173, 239, 0.3);
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-tertiary-online:hover {
    background: var(--accent-blue);
    color: #fff;
}

.p2p-status-box {
    background: #0d141e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p2p-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.p2p-live {
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Right Column: Specs Matrix, Prose & FAQ */
.film-specs-matrix {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0e1622;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.spec-matrix-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    align-items: center;
}

.spec-matrix-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-matrix-label {
    color: var(--text-muted);
    font-size: 14px;
}

.spec-matrix-val {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14.5px;
}

.spec-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #192535;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: #cbd5e1;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.spec-tag:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.spec-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background: #0369a1;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

/* Prose Section */
.block-heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.film-prose-section {
    background: #0f1724;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.film-synopsis-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.film-synopsis-text p:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.film-faq-section {
    background: #0d1420;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #141d2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
}

.faq-question {
    font-weight: 700;
    font-size: 14.5px;
    color: #38bdf8;
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Multi-Player Online Streaming Section */
.cinema-player-vault {
    background: #0c121b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.player-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.player-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-btn {
    padding: 7px 14px;
    background: #192433;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.player-btn:hover {
    background: #223246;
    color: #fff;
    border-color: var(--accent-blue);
}

.player-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.player-frame-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 700px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Interactive Cinema Stage (No Black Screen) */
.cinema-stage-splash {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 700px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080d14;
    border: 1px solid var(--border-color);
}

.stage-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px);
    opacity: 0.28;
    transform: scale(1.1);
}

.stage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    max-width: 600px;
}

.stage-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.stage-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.btn-play-cinema {
    padding: 16px 36px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.5);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-play-cinema:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(2, 132, 199, 0.8);
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.stage-server-nav {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-active-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 700px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.player-bottom-fallback {
    margin-top: 14px;
    padding: 12px 16px;
    background: #111823;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.player-fallback-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-jump-torrent {
    padding: 6px 12px;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-jump-torrent:hover {
    background: #059669;
}

@media (max-width: 900px) {
    .film-hub-grid {
        grid-template-columns: 1fr;
    }
    .poster-box {
        max-width: 240px;
        margin: 0 auto;
    }
    .spec-matrix-row {
        grid-template-columns: 130px 1fr;
    }
    .player-bottom-fallback {
        flex-direction: column;
        align-items: stretch;
    }
    .player-fallback-actions {
        justify-content: center;
    }
}

/* Stream Options Action Grid */
.stream-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
    width: 100%;
}

.stream-btn-card {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #131c28;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stream-btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.stream-btn-vk {
    background: linear-gradient(135deg, #0077ff, #0055cc);
    border-color: #0077ff;
    box-shadow: 0 4px 16px rgba(0, 119, 255, 0.35);
}

.stream-btn-rutube {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #0284c7;
}

.stream-btn-trailer {
    background: #1e293b;
    border-color: #334155;
}

.stream-btn-torrent {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   Mobile-First Responsiveness & Speed Optimization (< 768px & < 480px)
   ========================================================================== */
.torrents-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.movie-title, .film-hub-title, .movie-alt-title {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .main-wrapper {
        padding: 12px 10px;
    }
    
    .movie-card, .film-hub-card {
        padding: 16px 12px;
        border-radius: 10px;
    }
    
    .movie-title, .film-hub-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .info-table, .spec-matrix {
        font-size: 13px;
    }
    
    .info-row, .spec-matrix-row {
        grid-template-columns: 110px 1fr;
        padding: 6px 0;
    }
    
    /* Responsive Torrents Table on Small Screens */
    .torrents-table th, .torrents-table td {
        padding: 10px 8px;
        font-size: 12.5px;
    }
    
    .btn-actions-cell {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
    }
    
    .btn-magnet, .btn-torrent-file {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .peer-stats {
        font-size: 11.5px;
        gap: 6px;
    }
    
    /* Text Longread Reading Experience */
    .desc-box, .film-synopsis-text {
        font-size: 14.5px;
        line-height: 1.65;
    }
    
    .desc-box h3, .film-synopsis-text h3 {
        font-size: 16px;
        margin-top: 18px;
        margin-bottom: 8px;
    }
    
    .stream-options-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Floating Quick Sidebar (Vertical Right Toolbar)
   ========================================================================== */
.floating-quick-sidebar {
    position: fixed !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    padding: 6px 5px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65) !important;
    z-index: 999999 !important;
    backdrop-filter: blur(8px) !important;
}

.fqs-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
}

.fqs-btn:hover {
    transform: scale(1.12) !important;
    filter: brightness(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.fqs-btn--search { background: #0284c7 !important; }
.fqs-btn--menu   { background: #059669 !important; }
.fqs-btn--copy   { background: #8b5cf6 !important; }
.fqs-btn--vk     { background: #0077ff !important; }
.fqs-btn--tg     { background: #24a1de !important; }
.fqs-btn--wa     { background: #25d366 !important; }
.fqs-btn--mm     { background: #168de2 !important; }
.fqs-btn--viber  { background: #7360f2 !important; }
.fqs-btn--ok     { background: #ee8208 !important; }
.fqs-btn--top, .fqs-btn--bottom { background: #334155 !important; }

.fqs-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    margin: 2px 2px !important;
}

.fqs-tooltip {
    position: absolute !important;
    right: calc(100% + 10px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease !important;
}

.fqs-btn:hover .fqs-tooltip {
    opacity: 1 !important;
}

@keyframes pulseHighlight {
    0% { outline: 3px solid #00adef; box-shadow: 0 0 20px rgba(0, 173, 239, 0.9); }
    50% { outline: 3px solid #10b981; box-shadow: 0 0 30px rgba(16, 185, 129, 0.9); }
    100% { outline: none; box-shadow: none; }
}

.nav-pulse-highlight {
    animation: pulseHighlight 1.5s ease-out !important;
}

/* ==========================================================================
   Horizontal Share Bar (Before Torrents Download Table)
   ========================================================================== */
.horizontal-share-bar {
    background: linear-gradient(135deg, #0e1624, #131d2e);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hsb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.hsb-header-icon {
    font-size: 18px;
}

.hsb-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hsb-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.hsb-btn--copy  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.hsb-btn--vk    { background: linear-gradient(135deg, #0077ff, #0055cc); }
.hsb-btn--tg    { background: linear-gradient(135deg, #24a1de, #0284c7); }
.hsb-btn--wa    { background: linear-gradient(135deg, #25d366, #16a34a); }
.hsb-btn--ok    { background: linear-gradient(135deg, #ee8208, #d97706); }
.hsb-btn--viber { background: linear-gradient(135deg, #7360f2, #6366f1); }
.hsb-btn--mm    { background: linear-gradient(135deg, #168de2, #0284c7); }

@media (max-width: 640px) {
    .floating-quick-sidebar {
        right: 4px !important;
        padding: 4px 3px !important;
        gap: 3px !important;
    }
    .fqs-btn {
        width: 28px !important;
        height: 28px !important;
    }
    .fqs-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    .fqs-tooltip {
        display: none !important;
    }
    .horizontal-share-bar {
        padding: 12px 14px;
        margin-top: 24px;
    }
    .hsb-btn {
        padding: 7px 11px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Header Square Menu Toggle Button & Unified Category Navbar
   ========================================================================== */
.header-square-menu-btn {
    width: 38px;
    height: 38px;
    background: #059669;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
    color: #ffffff;
    padding: 0;
}

.header-square-menu-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
    background: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.header-square-menu-btn:active {
    transform: scale(0.96);
}

.header-square-menu-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    display: block;
}

.header-square-menu-btn.is-active-toggle {
    background: #047857;
    filter: brightness(0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Специальные чипы меню */
.cat-chip--top {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.24)) !important;
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.cat-chip--top:hover, .cat-chip--top.active {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4) !important;
}

.cat-chip--year {
    background: rgba(2, 132, 199, 0.15) !important;
    border: 1px solid rgba(2, 132, 199, 0.45) !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

.cat-chip--year:hover, .cat-chip--year.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.4) !important;
}

.cat-chip--epoch {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.45) !important;
    color: #a5b4fc !important;
    font-weight: 600 !important;
}

.cat-chip--epoch:hover, .cat-chip--epoch.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4) !important;
}

.cat-nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-container {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-areas: 
            "menu logo"
            "search search" !important;
        gap: 10px 12px !important;
        padding: 10px 16px !important;
        align-items: center !important;
    }
    .header-square-menu-btn {
        grid-area: menu !important;
        justify-self: start !important;
        width: 36px !important;
        height: 36px !important;
    }
    .logo-area {
        grid-area: logo !important;
        font-size: 19px !important;
        margin-right: 0 !important;
    }
    .header-search {
        grid-area: search !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
