:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(250, 204, 21, 0.18);
    --line-strong: rgba(250, 204, 21, 0.32);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --gold: #facc15;
    --gold-2: #f59e0b;
    --blue: #1e3a8a;
    --shadow: 0 24px 80px rgba(250, 204, 21, 0.12);
    --radius: 24px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.11), transparent 30rem),
        radial-gradient(circle at 80% 8%, rgba(37, 99, 235, 0.22), transparent 36rem),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #111827 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
    z-index: -1;
}

img,
video {
    max-width: 100%;
    display: block;
}

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(250, 204, 21, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 36px rgba(250, 204, 21, 0.34);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.06);
}

.brand-text {
    font-size: clamp(20px, 2vw, 26px);
    background: linear-gradient(90deg, #facc15, #fef3c7, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--gold);
}

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

.top-search {
    position: relative;
    display: flex;
    align-items: center;
}

.top-search input {
    width: 246px;
    padding: 10px 42px 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.68);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08);
}

.top-search button {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    cursor: pointer;
}

.menu-button {
    display: none;
    color: var(--gold);
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    display: grid;
    gap: 12px;
    color: #cbd5e1;
}

.hero {
    position: relative;
    height: min(72vh, 660px);
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

.hero-track,
.hero-slide,
.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-media {
    background:
        radial-gradient(circle at 78% 30%, rgba(250, 204, 21, 0.2), transparent 22rem),
        linear-gradient(135deg, #172554, #020617 68%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
    transform: scale(1.03);
}

.hero-media.cover-missing::after,
.poster-frame.cover-missing::after,
.detail-poster.cover-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at 35% 28%, rgba(250, 204, 21, 0.26), transparent 12rem),
        linear-gradient(135deg, #1e293b, #020617);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.7) 45%, rgba(15, 23, 42, 0.1) 100%),
        linear-gradient(to top, #020617 2%, transparent 44%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-copy {
    width: min(690px, 100%);
    padding-top: 44px;
}

.hero-label,
.page-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-title-block p {
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.tag-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
    color: #fde68a;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.btn-small,
.search-box-large button,
.ranking-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.search-box-large button,
.btn-small {
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: var(--shadow);
}

.btn-primary,
.btn-ghost {
    min-height: 52px;
    padding: 0 26px;
}

.btn-ghost {
    color: #fde68a;
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.56);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-small:hover,
.search-box-large button:hover,
.ranking-more:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--gold);
}

.section-block {
    padding: 58px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-kicker strong {
    color: var(--text);
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p {
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.7;
}

.section-more {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

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

.category-tile {
    position: relative;
    min-height: 168px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    overflow: hidden;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 28px;
}

.category-tile strong,
.category-tile em,
.category-tile small {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile strong {
    margin-top: 12px;
    font-size: 21px;
}

.category-tile em {
    color: var(--gold);
    font-style: normal;
    margin-top: 4px;
}

.category-tile small {
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.6;
}

.category-bg {
    position: absolute;
    inset: auto -12px -34px auto;
    width: 132px;
    height: 132px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    transform: rotate(-10deg);
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.compact-grid {
    gap: 18px;
}

.movie-card {
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.58);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
}

.card-cover,
.list-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #172554, #020617);
    overflow: hidden;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.09);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.72);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #0f172a;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 0 38px rgba(250, 204, 21, 0.42);
}

.movie-card:hover .play-badge,
.player-shell:hover .player-overlay span {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(250, 204, 21, 0.94);
    font-weight: 900;
    font-size: 13px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-2);
    font-size: 12px;
    margin-bottom: 9px;
}

.card-meta a {
    color: var(--gold);
}

.movie-card h2,
.list-info h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.36;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card h2 a:hover,
.list-info h2 a:hover {
    color: var(--gold);
}

.movie-card p,
.list-info p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    color: #fcd34d;
    font-size: 11px;
    padding: 4px 8px;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    padding: 20px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 14px;
}

.ranking-list {
    display: grid;
    gap: 8px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.42);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: rgba(250, 204, 21, 0.08);
    transform: translateX(4px);
}

.rank-num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #0f172a;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-weight: 900;
}

.rank-title {
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-views {
    color: var(--muted-2);
    font-size: 12px;
}

.ranking-more {
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.page-hero {
    padding: 52px 0 24px;
}

.slim-hero {
    padding-top: 74px;
}

.category-hero {
    padding-top: 42px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb strong {
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
}

.page-hero p {
    max-width: 760px;
}

.category-large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 220px 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.66);
    overflow: hidden;
}

.category-card-cover {
    min-height: 220px;
    background: #020617;
}

.thumb-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    height: 100%;
}

.thumb-collage span {
    background-size: cover;
    background-position: center;
    opacity: 0.72;
}

.category-card-body {
    padding: 24px;
}

.category-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title-line h2 {
    margin: 0;
    font-size: 26px;
}

.category-card-body p {
    color: var(--muted);
    line-height: 1.7;
}

.category-stats strong {
    color: var(--gold);
    font-size: 30px;
    margin-right: 6px;
}

.btn-small {
    min-height: 40px;
    padding: 0 18px;
    margin-top: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.filter-search label,
.filter-selects label,
.search-box-large label {
    display: grid;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
}

.filter-search input,
.filter-selects select,
.search-box-large input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.48);
    outline: none;
}

.filter-search input:focus,
.filter-selects select:focus,
.search-box-large input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08);
}

.filter-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.filter-result {
    color: var(--muted);
    white-space: nowrap;
    padding: 10px 0;
}

.filter-result span {
    color: var(--gold);
    font-weight: 900;
}

.movie-card.is-hidden,
.ranking-page-row.is-hidden {
    display: none;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
}

.list-cover .poster-frame {
    height: 100%;
}

.list-info {
    padding: 18px;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.podium-card {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.podium-card a:first-child {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
}

.podium-num {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-size: 22px;
    font-weight: 900;
}

.podium-card h2 {
    margin: 16px 0 10px;
    font-size: 22px;
}

.podium-card p {
    color: var(--muted);
    line-height: 1.7;
}

.podium-card strong {
    color: var(--gold);
}

.ranking-page-list {
    display: grid;
    gap: 10px;
}

.ranking-page-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 120px;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border: 1px solid rgba(250, 204, 21, 0.1);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.56);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ranking-page-row:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
    background: rgba(250, 204, 21, 0.07);
}

.ranking-index {
    color: var(--gold);
    font-weight: 900;
}

.ranking-name {
    font-weight: 800;
}

.ranking-meta {
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-page-row strong {
    color: #fde68a;
    text-align: right;
}

.search-page-panel {
    padding-top: 30px;
}

.search-box-large {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.search-box-large div {
    display: flex;
    gap: 12px;
}

.search-box-large input {
    flex: 1;
}

.search-box-large button {
    border: 0;
    padding: 0 24px;
    cursor: pointer;
}

.search-summary {
    margin-bottom: 20px;
    color: var(--muted);
}

.detail-layout {
    padding-top: 36px;
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.player-card,
.detail-info,
.detail-side,
.text-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #0f172a;
    background: var(--gold);
    font-size: 28px;
    box-shadow: 0 0 48px rgba(250, 204, 21, 0.46);
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay em {
    color: var(--muted);
    font-style: normal;
}

.detail-side {
    padding: 18px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #172554, #020617);
}

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

.side-stats {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.side-stats span {
    padding: 12px;
    border-radius: 14px;
    color: #fde68a;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.12);
    text-align: center;
    font-weight: 800;
}

.detail-info {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-block h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(250, 204, 21, 0.1);
}

.meta-grid dt {
    color: var(--muted-2);
    font-size: 12px;
    margin-bottom: 6px;
}

.meta-grid dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.meta-grid a {
    color: var(--gold);
}

.text-panel {
    padding: 22px;
    margin-top: 18px;
    background: rgba(2, 6, 23, 0.28);
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.95;
}

.tag-cloud a:hover {
    border-color: var(--gold);
    background: rgba(250, 204, 21, 0.16);
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 34px;
    padding: 42px 0 28px;
}

.footer-brand span:last-child {
    font-size: 22px;
    color: #fde68a;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 9px;
    color: var(--muted);
}

.footer-links-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 28px;
    color: var(--muted-2);
    font-size: 14px;
    border-top: 1px solid rgba(250, 204, 21, 0.08);
}

@media (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-split,
    .watch-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-side {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .top-search {
        display: none;
    }

    .hero {
        min-height: 620px;
        height: 76vh;
    }

    .hero-shade {
        background:
            linear-gradient(to top, #020617 5%, rgba(2, 6, 23, 0.8) 52%, rgba(2, 6, 23, 0.4) 100%);
    }

    .hero-content {
        align-items: end;
        padding-bottom: 82px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-title-block h1 {
        letter-spacing: -0.03em;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-large-grid,
    .podium-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .filter-selects {
        grid-template-columns: 1fr;
    }

    .ranking-page-row {
        grid-template-columns: 54px 1fr;
    }

    .ranking-meta,
    .ranking-page-row strong {
        grid-column: 2;
        text-align: left;
    }

    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 62px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-copy p {
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }

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

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .category-card-cover {
        min-height: 180px;
    }

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

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

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .detail-info {
        padding: 20px;
    }

    .search-box-large div {
        flex-direction: column;
    }
}
