:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.22);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #64748b;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --amber: #f59e0b;
    --green: #22c55e;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.15), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 85%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
    font-size: 14px;
}

.brand-text,
.footer-brand {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.nav-link {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

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

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select,
.home-search-band input {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input {
    width: 230px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus,
.home-search-band input:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.mobile-search button,
.home-search-band button {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: white;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.mobile-link {
    padding: 11px 12px;
    background: rgba(15, 23, 42, 0.56);
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.16), transparent 30rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.34) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 40%, rgba(2, 6, 23, 0.68) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 0 110px;
}

.hero-kicker,
.eyebrow {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    font-size: clamp(44px, 7vw, 90px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: white;
    text-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
}

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

.hero-tags,
.card-tags,
.tag-cloud,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.card-tags span,
.tag-cloud a,
.rank-meta span {
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(8, 47, 73, 0.4);
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
    min-height: 52px;
    padding: 0 24px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34);
}

.ghost-btn,
.section-link {
    min-height: 52px;
    padding: 0 20px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    box-shadow: 0 24px 60px rgba(34, 211, 238, 0.32);
}

.ghost-btn:hover,
.section-link:hover {
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.95);
}

.hero-poster {
    position: absolute;
    z-index: 3;
    right: max(4vw, 42px);
    bottom: 78px;
    width: min(310px, 26vw);
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.88);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.14);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: translateY(-50%);
    font-size: 30px;
}

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(226, 232, 240, 0.4);
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.home-search-band,
.page-shell,
.detail-wrap,
.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-band {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    margin-top: -46px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.home-search-band h2,
.section-heading h2,
.filter-panel h2,
.category-overview-card h2,
.rank-card h2,
.detail-article h2 {
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.03em;
}

.home-search-band h2 {
    font-size: clamp(24px, 3vw, 38px);
}

.home-search-band p,
.section-heading p,
.filter-panel p,
.category-overview-card p,
.rank-card p,
.detail-article p,
.site-footer p {
    color: var(--muted);
}

.home-search-band form {
    display: flex;
    gap: 10px;
}

.home-search-band input {
    min-width: 0;
    flex: 1;
    padding: 15px 16px;
}

.page-shell {
    padding: 72px 0;
}

.page-shell > section + section,
.split-section {
    margin-top: 82px;
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 42px);
}

.section-heading p {
    margin: 7px 0 0;
}

.section-link {
    min-height: 42px;
    white-space: nowrap;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 42px rgba(34, 211, 238, 0.1);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.05);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

.score,
.play-dot {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.score {
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 30px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    font-size: 13px;
}

.play-dot {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    color: white;
    background: rgba(34, 211, 238, 0.82);
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.12);
}

.card-body {
    padding: 17px;
}

.card-title {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title:hover {
    color: var(--cyan);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--soft);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.5);
}

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

.card-tags span {
    padding: 5px 9px;
    color: #67e8f9;
    font-size: 11px;
}

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

.category-card,
.category-overview-card,
.filter-panel,
.rank-card,
.detail-article,
.watch-section {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.category-card {
    display: block;
    padding: 24px;
    min-height: 210px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.34);
}

.category-card span {
    color: #f8fafc;
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 12px 0 18px;
}

.category-card div {
    display: grid;
    gap: 6px;
}

.category-card div a {
    color: #a5f3fc;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: start;
}

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

.rank-row,
.small-card {
    display: grid;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.64);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr) 52px;
}

.rank-row:hover,
.small-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(15, 23, 42, 0.9);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: white;
    background: rgba(34, 211, 238, 0.18);
    font-weight: 900;
}

.rank-row img,
.small-card img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info,
.small-card span {
    min-width: 0;
}

.rank-info strong,
.small-card strong {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em,
.small-card em {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--amber);
    font-weight: 900;
}

.small-card {
    grid-template-columns: 58px minmax(0, 1fr);
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
}

.mini-hero {
    padding: 72px 0 58px;
}

.mini-hero > div {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.mini-hero h1 {
    max-width: 920px;
    margin: 12px 0 14px;
    color: #f8fafc;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.mini-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
}

.filter-panel p {
    margin: 6px 0 0;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 120px 120px 120px;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    min-width: 0;
    width: 100%;
    padding: 12px 13px;
}

.category-overview-card {
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-overview-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.category-overview-head a:last-child {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.compact-list .small-card:nth-child(n + 5) {
    display: none;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

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

.rank-card-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 34px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

.rank-card h2 {
    font-size: 24px;
}

.rank-card h2 a:hover {
    color: var(--cyan);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.5;
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.7)),
        linear-gradient(0deg, #020617 0%, transparent 45%, rgba(2, 6, 23, 0.72) 100%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    padding: 34px 0 70px;
}

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

.breadcrumb a {
    color: #a5f3fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    max-width: 900px;
    margin: 12px 0 18px;
    color: white;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.detail-line {
    max-width: 760px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin-bottom: 20px;
}

.detail-meta span {
    display: grid;
    gap: 2px;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-weight: 900;
}

.detail-meta em {
    color: var(--soft);
    font-size: 12px;
    font-style: normal;
}

.detail-copy .primary-btn {
    margin-top: 28px;
}

.detail-shell {
    padding-top: 34px;
}

.watch-section {
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: black;
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: black;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: white;
    background: black;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(2, 6, 23, 0.54);
}

.player-cover img {
    object-fit: cover;
}

.player-ring {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 0 14px rgba(34, 211, 238, 0.14), 0 22px 70px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    font-size: 30px;
}

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

.detail-article {
    margin-top: 34px;
    padding: 28px;
}

.detail-article h2 + p {
    margin-top: 10px;
}

.detail-article p {
    font-size: 18px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    padding: 42px 0;
}

.site-footer p {
    margin: 12px 0 0;
}

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

.footer-links a {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.48);
    font-size: 13px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.32);
}

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

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

    .header-search input {
        width: 190px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-poster {
        opacity: 0.36;
        right: 28px;
        width: min(260px, 38vw);
    }

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

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

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

@media (max-width: 860px) {
    .nav-wrap {
        height: 66px;
    }

    .header-search {
        display: none;
    }

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

    .hero,
    .hero-content {
        min-height: 610px;
    }

    .hero-content {
        padding: 74px 0 94px;
    }

    .hero-poster {
        display: none;
    }

    .hero-control {
        display: none;
    }

    .home-search-band {
        grid-template-columns: 1fr;
        margin-top: -28px;
        padding: 22px;
    }

    .home-search-band form {
        flex-direction: column;
    }

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

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

    .detail-cover {
        max-width: 280px;
    }

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

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

    .rank-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .mobile-panel,
    .home-search-band,
    .page-shell,
    .detail-wrap,
    .footer-inner,
    .mini-hero > div,
    .hero-content {
        width: min(100% - 24px, 1240px);
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p,
    .detail-line {
        font-size: 16px;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .page-shell {
        padding: 46px 0;
    }

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

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

    .filter-controls,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 34px 50px minmax(0, 1fr);
    }

    .rank-row .rank-score {
        display: none;
    }

    .rank-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
    }

    .rank-card h2 {
        font-size: 19px;
    }

    .rank-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .detail-cover {
        max-width: 230px;
    }

    .player-ring {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
