:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f6fb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-text {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: #ffffff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.site-header.is-scrolled .brand-text,
.site-header.header-solid .brand-text {
    color: var(--ink);
    text-shadow: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
    font-size: 0.95rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-header.is-scrolled .nav-link,
.site-header.header-solid .nav-link {
    color: #374151;
}

.nav-link:hover,
.nav-link.active,
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.active,
.site-header.header-solid .nav-link:hover,
.site-header.header-solid .nav-link.active {
    color: var(--blue);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled .nav-toggle,
.site-header.header-solid .nav-toggle {
    background: #f3f4f6;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.header-solid .nav-toggle span {
    background: var(--ink);
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 12px 20px 18px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--blue);
    background: #eff6ff;
}

.hero-carousel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan), var(--teal));
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(6, 182, 212, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.25) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.82) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.52fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: 110px 0 80px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: #eff6ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .hero-kicker,
.detail-copy .hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 22px 0 20px;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.hero-line {
    max-width: 690px;
    margin: 0 0 28px;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

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

.hero-tags span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.hero-actions.center {
    justify-content: center;
}

.primary-btn,
.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-btn.light {
    color: var(--blue);
    background: #ffffff;
}

.glass-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(6, 182, 212, 0.25));
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-hint span {
    display: block;
    width: 6px;
    height: 6px;
    margin: 7px auto 0;
    border-radius: 50%;
    background: #ffffff;
    animation: scrollHint 1.3s ease-in-out infinite;
}

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

.container.narrow {
    width: min(980px, calc(100% - 32px));
}

.section {
    padding: clamp(64px, 8vw, 108px) 0;
}

.light-section {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.white-section {
    background: #ffffff;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-head.align-left {
    margin-left: 0;
    text-align: left;
}

.section-head h2,
.page-hero h1,
.cta-section h2 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.cta-section p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.movie-card a {
    display: block;
    height: 100%;
}

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

.poster-wrap img,
.detail-poster img,
.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    font-size: 2rem;
    transition: opacity 0.25s ease;
}

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

.corner-label,
.type-label,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.corner-label {
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.62);
}

.type-label {
    top: 10px;
    right: 10px;
    background: var(--blue);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: #f97316;
}

.card-body {
    padding: 16px;
}

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

.card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body h3,
.rank-info h3 a:hover,
.text-link:hover {
    color: var(--blue);
}

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

.movie-card.small .card-body p {
    display: none;
}

.card-meta {
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.82rem;
}

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

.category-grid.big {
    margin-bottom: 56px;
}

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 26px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;
    z-index: -1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(8px);
    transition: transform 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card:hover::after {
    transform: scale(1.28);
}

.category-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.theme-0 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.theme-1 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.theme-2 { background: linear-gradient(135deg, #f97316, #ef4444); }
.theme-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.theme-4 { background: linear-gradient(135deg, #0f172a, #2563eb); }
.theme-5 { background: linear-gradient(135deg, #0891b2, #0f766e); }
.theme-6 { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.theme-7 { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.theme-8 { background: linear-gradient(135deg, #be123c, #db2777); }
.theme-9 { background: linear-gradient(135deg, #111827, #475569); }

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 84px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-no {
    width: 36px;
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    display: block;
    width: 84px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.rank-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    line-height: 1.35;
}

.rank-info p {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta span {
    color: #6b7280;
    font-size: 0.78rem;
}

.score-pill {
    display: inline-flex;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.center-action {
    margin-top: 36px;
    text-align: center;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blue-dark);
    font-weight: 800;
}

.cta-section {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan), var(--teal));
}

.cta-inner {
    text-align: center;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.page-main,
.detail-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    padding: 132px 0 76px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero .section-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
}

.compact-hero::after,
.category-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -35%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(10px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb:not(.light) {
    color: #e5e7eb;
}

.category-preview {
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.category-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.category-preview h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.category-preview p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.global-filter {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(145px, 0.42fr));
}

.local-filter {
    grid-template-columns: minmax(220px, 1fr);
}

.filter-panel label,
.search-box {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
    font-size: 0.9rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    display: none;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px dashed #bfdbfe;
    border-radius: 18px;
    color: #1e40af;
    background: #eff6ff;
    text-align: center;
    font-weight: 800;
}

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

.search-card.is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.55;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 28%, rgba(6, 182, 212, 0.25), transparent 26%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.66)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 126px 0 72px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.36);
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.2rem, 5.8vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.detail-one-line {
    max-width: 850px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    font-weight: 700;
}

.player-panel,
.content-card {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.38);
    font-size: 1.6rem;
}

.player-title,
.content-card {
    padding: 24px;
}

.player-title h2,
.content-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.player-title p,
.content-card p {
    margin: 0;
    color: #4b5563;
}

.content-card p {
    font-size: 1.02rem;
    line-height: 1.85;
}

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

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 36px;
    padding: 54px 0 34px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.25rem;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p,
.site-footer a {
    color: #9ca3af;
    font-size: 0.92rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes scrollHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(14px);
        opacity: 0.45;
    }
}

@media (max-width: 1080px) {
    .featured-grid,
    .latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .split-layout {
        grid-template-columns: 1fr;
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .site-header.menu-open .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 96px;
    }

    .hero-poster {
        display: none;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

    .detail-poster {
        width: min(260px, 72vw);
    }

    .rank-item {
        grid-template-columns: auto 70px minmax(0, 1fr);
    }

    .rank-item .score-pill {
        grid-column: 3;
        width: auto;
        height: 32px;
        justify-self: start;
        border-radius: 999px;
        padding: 0 12px;
    }

    .category-preview-head {
        display: block;
    }
}

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

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 15vw, 4.2rem);
    }

    .hero-tags span,
    .detail-meta span {
        font-size: 0.78rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .section {
        padding: 54px 0;
    }

    .category-grid,
    .featured-grid,
    .latest-grid,
    .archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

    .page-hero,
    .detail-hero-inner {
        padding-top: 96px;
    }

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

    .rank-no {
        display: none;
    }

    .rank-poster {
        width: 54px;
    }

    .score-pill {
        display: none;
    }

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