
:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #111c31;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --white: #ffffff;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --red: #dc2626;
    --orange: #ea580c;
    --green: #059669;
    --rose: #e11d48;
    --violet: #7c3aed;
    --shadow: 0 22px 70px rgba(2, 6, 23, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 45%, var(--slate-900));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
    border-bottom: 1px solid rgba(100, 116, 139, 0.25);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-copy em {
    color: var(--slate-300);
    font-style: normal;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-300);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(148, 163, 184, 0.13);
}

.header-search,
.mobile-search,
.wide-search,
.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    width: min(300px, 30vw);
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 4px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.header-search input {
    padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    padding: 9px 15px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-search button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(51, 65, 85, 0.95);
    padding: 10px 12px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(100, 116, 139, 0.25);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    display: block;
    color: var(--slate-300);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.45);
}

.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-search {
    background: rgba(51, 65, 85, 0.75);
    border-radius: 18px;
    padding: 8px;
}

.hero-carousel {
    position: relative;
    height: clamp(520px, 70vh, 720px);
    min-height: 520px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.34), transparent 38%),
        linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 760px;
    padding-top: 48px;
}

.hero-chip {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 16px;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.hero-text h1 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.45);
}

.hero-text p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 5px 10px;
    font-size: 13px;
}

.hero-actions,
.cta-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.btn.light {
    color: #0c4a6e;
    background: var(--white);
}

.btn.outline-light {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn.full {
    width: 100%;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.06);
}

.hero-nav.prev {
    left: 24px;
}

.hero-nav.next {
    right: 24px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-sections,
.page-content,
.detail-container {
    padding: 54px 0;
}

.home-search-panel,
.cta-card,
.category-section,
.side-card,
.movie-detail-card,
.text-panel,
.filter-panel,
.ranking-panel,
.category-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
    box-shadow: var(--shadow);
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 24px;
    padding: 26px;
    border-radius: var(--radius);
    margin-bottom: 64px;
}

.home-search-panel h2,
.cta-card h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
}

.home-search-panel p,
.cta-card p {
    margin: 0;
    color: var(--slate-300);
}

.wide-search,
.filter-search {
    border-radius: 999px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.wide-search input,
.filter-search input {
    padding: 12px 16px;
}

.content-section {
    margin-bottom: 72px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.heading-icon,
.panel-title span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.section-heading h2,
.panel-title h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.section-heading p {
    margin: 2px 0 0;
    color: var(--slate-400);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.42);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-950);
}

.movie-card.wide {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.wide .poster-link {
    aspect-ratio: auto;
    min-height: 220px;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.top-rank-card:hover img,
.category-cover:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 10px 0 8px;
    color: var(--white);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.card-body h3 a:hover,
.ranking-info h2 a:hover,
.category-card h2 a:hover,
.info-list a:hover {
    color: #67e8f9;
}

.card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--slate-300);
    font-size: 14px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.26);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.15));
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.side-card {
    border-radius: var(--radius);
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list.compact .rank-item {
    grid-template-columns: 54px minmax(0, 1fr);
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(51, 65, 85, 0.7);
}

.rank-num {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-list.compact .rank-item img {
    width: 54px;
    height: 72px;
}

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item em {
    color: var(--slate-400);
    font-style: normal;
    font-size: 13px;
}

.panel-link,
.watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.category-section {
    padding: 30px;
    border-radius: var(--radius);
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--slate-900);
}

.category-tile img,
.category-cover img,
.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.05));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile strong {
    bottom: 54px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    bottom: 18px;
    color: var(--slate-300);
    font-size: 13px;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta-card {
    padding: 42px;
    border-radius: var(--radius);
    text-align: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.28), transparent 32%),
        linear-gradient(135deg, #1e3a8a, #0e7490);
}

.cta-card p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #dbeafe;
}

.cta-card div {
    justify-content: center;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
}

.page-hero.blue {
    background: linear-gradient(135deg, #172554, #075985);
}

.page-hero.cyan {
    background: linear-gradient(135deg, #164e63, #0f766e);
}

.page-hero.violet {
    background: linear-gradient(135deg, #2e1065, #86198f);
}

.category-hero {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.92)),
        var(--hero-bg) center / cover;
}

.page-hero h1 {
    margin: 14px 0 12px;
    color: var(--white);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--slate-300);
    font-size: 14px;
}

.crumb a:hover {
    color: var(--white);
}

.crumb strong {
    color: var(--white);
    font-weight: 700;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    border-radius: var(--radius);
    padding: 18px;
}

.category-cover {
    min-height: 230px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--slate-900);
}

.category-card h2 {
    margin: 4px 0 10px;
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--slate-300);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-links a {
    color: #bfdbfe;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(37, 99, 235, 0.18);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 30px;
    border-radius: var(--radius);
    padding: 18px;
}

.year-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.55);
    border-radius: 999px;
    padding: 10px 14px;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-color: transparent;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 30px;
    text-align: center;
    color: var(--slate-300);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.empty-state.is-visible {
    display: block;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 34px;
}

.top-rank-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--slate-950);
}

.top-rank-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.16));
}

.top-rank-card strong,
.top-rank-card em,
.rank-medal {
    position: absolute;
    z-index: 2;
}

.rank-medal {
    left: 18px;
    top: 18px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
    font-size: 22px;
}

.top-rank-card strong {
    left: 22px;
    right: 22px;
    bottom: 58px;
    color: var(--white);
    font-size: 25px;
    font-weight: 900;
}

.top-rank-card em {
    left: 22px;
    right: 22px;
    bottom: 24px;
    color: var(--slate-300);
    font-style: normal;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 98px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.ranking-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

.ranking-poster img {
    width: 98px;
    height: 132px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-info h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.ranking-info p {
    margin: 0 0 12px;
    color: var(--slate-300);
}

.detail-wrap {
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.detail-crumb {
    margin-bottom: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-size: 42px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.player-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.movie-detail-card,
.text-panel {
    margin-top: 24px;
    border-radius: var(--radius);
    padding: 26px;
}

.movie-detail-card h1 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.lead-text {
    margin: 18px 0;
    color: #dbeafe;
    font-size: 18px;
}

.text-panel h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.text-panel p {
    margin: 0;
    color: var(--slate-300);
    font-size: 16px;
    line-height: 1.9;
}

.review-panel {
    border-left: 4px solid var(--blue);
}

.detail-side {
    display: grid;
    gap: 22px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.info-list dt {
    color: var(--slate-400);
}

.info-list dd {
    margin: 0;
    color: var(--white);
}

.related-section {
    margin-top: 36px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-grid p {
    max-width: 420px;
    color: var(--slate-400);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--slate-300);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    padding: 7px 11px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(37, 99, 235, 0.42);
}

.footer-bottom {
    padding: 18px 16px 28px;
    text-align: center;
    color: var(--slate-500, #64748b);
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .movie-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .split-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .home-search-panel,
    .filter-panel,
    .footer-grid,
    .category-card {
        grid-template-columns: 1fr;
    }

    .large-grid,
    .category-list,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-row {
        grid-template-columns: 48px 82px minmax(0, 1fr);
    }

    .ranking-row .watch-link {
        grid-column: 2 / -1;
        width: fit-content;
        margin-top: 0;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy em {
        display: none;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-text {
        padding-top: 90px;
    }

    .hero-nav {
        display: none;
    }

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

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

    .movie-card.wide {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .movie-card.wide .poster-link {
        min-height: 190px;
    }

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

    .home-sections,
    .page-content,
    .detail-container {
        padding: 36px 0;
    }

    .home-search-panel,
    .category-section,
    .cta-card,
    .filter-panel,
    .ranking-panel,
    .side-card,
    .movie-detail-card,
    .text-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .ranking-row {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-poster img {
        width: 72px;
        height: 98px;
    }

    .card-meta span {
        font-size: 12px;
    }
}
