:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #0f172a;
    --text-on-dark: #f8fafc;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --purple: #7c3aed;
    --rose: #e11d48;
    --orange: #f97316;
    --amber: #f59e0b;
    --lime: #84cc16;
    --emerald: #10b981;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    --shadow-strong: 0 30px 100px rgba(2, 6, 23, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--panel-soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--text-on-dark);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.26);
    backdrop-filter: blur(18px);
}

.header-shell {
    max-width: var(--shell);
    margin: 0 auto;
    min-height: 78px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 34px rgba(6, 182, 212, 0.38);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.brand-text small {
    display: block;
    color: #67e8f9;
    font-size: 12px;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #67e8f9;
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 13px;
    color: #94a3b8;
    pointer-events: none;
}

.header-search input,
.mobile-search input {
    width: 205px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    color: white;
    padding: 11px 14px 11px 38px;
    outline: 0;
    transition: border 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus {
    border-color: rgba(6, 182, 212, 0.75);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: white;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel nav,
.quick-category-links {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav-link,
.quick-category-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
}

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

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    color: white;
    background: var(--bg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.36), transparent 30%),
        radial-gradient(circle at 84% 22%, rgba(37, 99, 235, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.94));
}

.hero-content {
    position: relative;
    max-width: var(--shell);
    min-height: 680px;
    margin: 0 auto;
    padding: 76px 22px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 18px;
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(46px, 7vw, 88px);
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.wide-meta span,
.movie-meta span,
.movie-meta a {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-meta span {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.home-search-panel button {
    border: 0;
    border-radius: 15px;
    padding: 13px 20px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.ghost-button {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.home-search-panel button:hover {
    transform: translateY(-2px);
}

.full-button {
    width: 100%;
    margin-top: 20px;
}

.hero-poster,
.detail-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.34), rgba(37, 99, 235, 0.16));
}

.hero-poster {
    aspect-ratio: 3 / 4.2;
    transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.movie-poster img,
.wide-cover img,
.category-tile img,
.category-cover-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #164e63 48%, #1d4ed8);
}

.hero-poster span {
    position: absolute;
    inset: auto 22px 22px auto;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 44px rgba(6, 182, 212, 0.4);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
}

.hero-dot,
.hero-arrow {
    border: 0;
    color: white;
    cursor: pointer;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 28px;
    line-height: 1;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
}

.home-search-panel,
.content-section,
.filter-shell,
.player-shell,
.detail-shell,
.footer-shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.home-search-panel {
    position: relative;
    z-index: 4;
    margin-top: -52px;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
    gap: 28px;
    align-items: center;
    padding-top: 26px;
    padding-bottom: 26px;
    border-radius: 26px;
    color: white;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.94));
    box-shadow: var(--shadow-strong);
}

.home-search-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.12;
}

.home-search-panel form {
    display: flex;
    gap: 12px;
}

.home-search-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.home-search-panel input::placeholder,
.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #94a3b8;
}

.content-section,
.filter-shell {
    padding-top: 68px;
    padding-bottom: 68px;
}

.soft-section {
    max-width: none;
    padding-left: max(22px, calc((100vw - var(--shell)) / 2 + 22px));
    padding-right: max(22px, calc((100vw - var(--shell)) / 2 + 22px));
    background: linear-gradient(180deg, #ffffff, #eff6ff);
}

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

.section-heading h2,
.ranking-panel-head h2,
.text-panel h2,
.about-card h2,
.sitemap-box h2,
.mini-rank-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.section-heading p,
.ranking-panel-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-link,
.text-link {
    color: var(--cyan-dark);
    font-weight: 850;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(6, 182, 212, 0.36);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63 48%, #1d4ed8);
}

.movie-poster img {
    transition: transform 0.5s ease, opacity 0.25s ease;
}

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.32);
}

.poster-region,
.poster-year {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

.poster-region {
    left: 12px;
}

.poster-year {
    right: 12px;
}

.movie-card-body {
    padding: 15px 15px 16px;
}

.movie-title {
    display: block;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.32;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body p {
    min-height: 42px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta span,
.movie-meta a,
.tag-row span {
    color: #475569;
    background: #f1f5f9;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    font-size: 11px;
}

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

.category-tile {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    border-radius: 26px;
    padding: 26px;
    color: white;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

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

.category-tile strong {
    font-size: 26px;
    letter-spacing: -0.03em;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.category-tile img {
    position: absolute;
    right: -22px;
    bottom: -30px;
    z-index: 1;
    width: 128px;
    height: 172px;
    border-radius: 22px;
    transform: rotate(10deg);
    opacity: 0.6;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.26);
}

.category-tile-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.25), transparent 34%);
}

.from-cyan.to-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.from-purple.to-indigo {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
}

.from-orange.to-rose {
    background: linear-gradient(135deg, #f97316, #e11d48);
}

.from-pink.to-rose {
    background: linear-gradient(135deg, #ec4899, #e11d48);
}

.from-slate.to-cyan {
    background: linear-gradient(135deg, #0f172a, #0891b2);
}

.from-red.to-orange {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.from-amber.to-lime {
    background: linear-gradient(135deg, #f59e0b, #84cc16);
}

.from-violet.to-cyan {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.from-stone.to-amber {
    background: linear-gradient(135deg, #57534e, #d97706);
}

.from-emerald.to-cyan {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.from-blue.to-indigo {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.from-slate.to-blue {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

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

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

.wide-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.wide-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f172a, #164e63 48%, #1d4ed8);
}

.rank-number {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 32px;
    border-radius: 12px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.36);
}

.wide-content {
    align-self: center;
}

.wide-content h2 {
    margin: 8px 0;
    font-size: 24px;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.wide-content h2 a:hover,
.movie-title:hover {
    color: var(--cyan-dark);
}

.wide-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.wide-meta span {
    color: #0e7490;
    background: #ecfeff;
}

.ranking-panel,
.text-panel,
.about-card,
.sitemap-box,
.mini-rank-card,
.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 26px;
    background: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 102px;
    padding: 24px;
}

.ranking-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.ranking-list a,
.mini-rank-card li a,
.sitemap-list li {
    display: grid;
    align-items: center;
    gap: 10px;
}

.ranking-list a {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ranking-list span {
    color: var(--cyan-dark);
    font-weight: 950;
}

.ranking-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.page-hero {
    position: relative;
    color: white;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.32), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.28), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 54%, #0e7490);
}

.compact-hero {
    padding: 86px max(22px, calc((100vw - var(--shell)) / 2 + 22px));
}

.compact-hero > div {
    max-width: 780px;
}

.page-hero h1 {
    font-size: clamp(42px, 7vw, 76px);
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 190px;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

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

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 13px;
    outline: 0;
    background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.result-count {
    margin: 0 0 20px;
    color: var(--muted);
    font-weight: 800;
}

.pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill-link {
    border-radius: 999px;
    padding: 9px 13px;
    color: #0f172a;
    background: white;
    border: 1px solid #e2e8f0;
    font-weight: 850;
}

.pill-link.is-active,
.pill-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-color: transparent;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: #0f172a;
}

.category-cover-row img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.category-overview-card > div {
    padding: 24px;
}

.category-overview-card h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.category-overview-card p {
    color: var(--muted);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    color: white;
    background: var(--bg);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.detail-shell {
    position: relative;
    padding-top: 32px;
    padding-bottom: 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 42px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

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

.detail-poster {
    aspect-ratio: 3 / 4;
}

.detail-copy h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.detail-one-line {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 20px;
}

.detail-tags span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
}

.player-section {
    background: linear-gradient(180deg, #020617, #0f172a);
    padding: 66px 0;
}

.player-shell {
    display: grid;
    gap: 20px;
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: black;
    box-shadow: var(--shadow-strong);
}

.video-stage video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.72)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.8));
}

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

.player-overlay span {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 22px 54px rgba(6, 182, 212, 0.35);
}

.player-overlay strong {
    font-size: clamp(24px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.player-info {
    color: white;
}

.player-info h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.player-info p {
    margin: 0;
    color: #cbd5e1;
}

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

.text-panel,
.about-card,
.sitemap-box,
.mini-rank-card {
    padding: 28px;
}

.text-panel p,
.about-card p {
    color: #475569;
    font-size: 16px;
}

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

.ranking-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
}

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

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

.mini-rank-card ol {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.mini-rank-card li a {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mini-rank-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-rank-card span {
    color: var(--muted);
    font-size: 12px;
}

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

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

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

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}

.sitemap-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.movie-sitemap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
}

.sitemap-list a {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sitemap-list a:hover {
    color: var(--cyan-dark);
}

.sitemap-list span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 22px;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-column a:hover {
    color: #67e8f9;
}

[data-card].is-hidden {
    display: none;
}

body.is-menu-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .all-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .two-column-section,
    .ranking-layout,
    .sitemap-section {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content,
    .detail-layout,
    .home-search-panel,
    .detail-content,
    .footer-shell,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 54px;
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
        transform: none;
    }

    .detail-poster {
        max-width: 260px;
    }

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

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

@media (max-width: 720px) {
    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

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

    .movie-grid,
    .all-grid,
    .related-grid,
    .category-grid,
    .about-grid,
    .movie-sitemap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .category-tile {
        min-height: 150px;
        padding: 20px;
    }

    .category-tile strong {
        font-size: 22px;
    }

    .category-tile img {
        width: 92px;
        height: 126px;
    }

    .wide-card {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .wide-content h2 {
        font-size: 18px;
    }

    .wide-content p {
        display: none;
    }

    .footer-shell {
        gap: 24px;
    }
}

@media (max-width: 460px) {
    .header-shell,
    .home-search-panel,
    .content-section,
    .filter-shell,
    .player-shell,
    .detail-shell,
    .footer-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .movie-grid,
    .all-grid,
    .related-grid,
    .category-grid,
    .about-grid {
        gap: 14px;
    }

    .movie-card {
        border-radius: 18px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-card-body p,
    .tag-row {
        display: none;
    }

    .poster-region,
    .poster-year {
        font-size: 10px;
        padding: 4px 7px;
    }

    .compact-hero {
        padding: 64px 16px;
    }

    .player-overlay span {
        width: 64px;
        height: 64px;
        border-radius: 22px;
    }
}
