* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.14), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.16), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: #f8fafc;
    font-family: Inter, 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 {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.28);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.header-grid,
.footer-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(103, 232, 249, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.10) 1px, transparent 1px);
    background-size: 40px 40px;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(1440px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(34, 211, 238, 0.48);
    border-radius: 0.8rem;
    color: #cffafe;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(37, 99, 235, 0.88));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.38);
}

.brand-text {
    font-size: 1.38rem;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-link,
.mobile-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.85rem;
    color: #cbd5e1;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
    padding: 0.55rem 0.85rem;
    font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #67e8f9;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover {
    transform: translateY(-1px);
}

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

.header-search {
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-field input,
.filter-field select {
    color: #e2e8f0;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 15rem;
    padding: 0.65rem 0.85rem;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: rgba(103, 232, 249, 0.8);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.95rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.header-search button,
.mobile-search button {
    padding: 0.65rem 0.95rem;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.9rem;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
    position: relative;
    display: none;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 1rem;
    padding: 0.7rem;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.86);
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.4rem;
}

.mobile-link {
    justify-content: flex-start;
    padding: 0.68rem 0.8rem;
}

main {
    min-height: 70vh;
}

.hero-shell {
    position: relative;
    height: clamp(560px, 76vh, 760px);
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-bg::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 28% 22%, rgba(34, 211, 238, 0.18), transparent 25rem),
        linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.10);
    backdrop-filter: blur(10px);
}

.hero-pill {
    padding: 0.4rem 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 980px;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-tags,
.tag-row,
.detail-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.ranking-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.52);
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.ranking-meta span {
    padding: 0.32rem 0.68rem;
    font-size: 0.82rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.primary-button,
.ghost-button {
    min-height: 3.2rem;
    padding: 0.85rem 1.45rem;
}

.ghost-button {
    color: #dbeafe;
    border: 1px solid rgba(34, 211, 238, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.60), 0 0 60px rgba(34, 211, 238, 0.16);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(2, 6, 23, 0.70);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-current {
    width: 2.2rem;
    background: #22d3ee;
}

.content-section {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2.6rem, 6vw, 5.5rem) 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.section-kicker {
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0.3rem 0 0;
    color: #94a3b8;
}

.section-more {
    flex: 0 0 auto;
    padding: 0.72rem 1rem;
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(255, 255, 255, 0.05);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.1rem;
}

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

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

.movie-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
    transition: transform 0.28s ease, border 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.46);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34), 0 0 42px rgba(34, 211, 238, 0.12);
}

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

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

.movie-card:hover .poster-link img,
.compact-card:hover img,
.ranking-row:hover .ranking-cover img {
    transform: scale(1.07);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.92));
}

.play-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #ecfeff;
    font-size: 0.78rem;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.92));
}

.movie-card-body {
    padding: 0.95rem;
}

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0.45rem 0 0.35rem;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 3.2rem;
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.tag-row {
    margin-top: 0.75rem;
}

.tag-row span {
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.12);
}

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

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

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

.category-tile {
    position: relative;
    display: grid;
    gap: 1rem;
    overflow: hidden;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 1.3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.05));
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.8rem;
    object-fit: cover;
}

.category-tile h3 {
    margin: 0;
    font-size: 1.2rem;
}

.category-tile p {
    margin: 0.3rem 0 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

.category-arrow {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    color: #67e8f9;
    font-size: 1.8rem;
}

.rank-panel,
.aside-card,
.text-panel,
.filter-panel {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 1.15rem;
}

.rank-panel-head span {
    color: #67e8f9;
    font-weight: 900;
}

.rank-panel-head h2 {
    margin: 0.15rem 0 1rem;
}

.rank-mini-list {
    display: grid;
    gap: 0.55rem;
}

.rank-mini {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    border-radius: 0.95rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.045);
}

.rank-mini:hover {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.12);
}

.rank-number {
    color: #67e8f9;
    font-weight: 900;
}

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

.rank-heat {
    color: #94a3b8;
    font-size: 0.8rem;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.compact-hero,
.category-hero {
    padding: clamp(4rem, 10vw, 8rem) max(16px, calc((100vw - 1440px) / 2));
}

.page-hero > div,
.detail-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.filter-field {
    display: grid;
    gap: 0.35rem;
}

.filter-field label {
    color: #94a3b8;
    font-size: 0.82rem;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 0.82rem 0.9rem;
}

.filter-field select option {
    color: #0f172a;
}

.ranking-list {
    display: grid;
    gap: 0.8rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 86px 58px minmax(0, 1fr) 110px;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.ranking-cover {
    overflow: hidden;
    border-radius: 0.9rem;
    aspect-ratio: 3 / 4;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ranking-index {
    color: #67e8f9;
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
}

.ranking-body h2 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}

.ranking-body p {
    margin: 0 0 0.6rem;
    color: #94a3b8;
}

.ranking-score {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.ranking-score strong {
    color: #67e8f9;
    font-size: 1.45rem;
}

.ranking-score span {
    color: #94a3b8;
    font-size: 0.82rem;
}

.detail-hero {
    padding: 1.5rem max(16px, calc((100vw - 1440px) / 2)) clamp(2rem, 6vw, 5rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0.7rem 0 2rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

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

.detail-hero-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
}

.detail-cover {
    width: 100%;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 1.5rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.detail-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-meta {
    margin: 1.1rem 0;
}

.detail-tags span {
    margin-bottom: 0.2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.4rem;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2.2rem, 5vw, 4rem) 0 0;
}

.detail-main {
    display: grid;
    gap: 1.2rem;
}

.detail-aside {
    min-width: 0;
}

.aside-card {
    position: sticky;
    top: 92px;
    padding: 1rem;
}

.aside-card h2,
.text-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.player-section {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 1.4rem;
    background: #020617;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    background: #000000;
}

.player-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 0;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.24), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.86));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.38);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.text-panel {
    padding: 1.2rem;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
}

.info-panel dl {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.info-panel dl div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.7rem;
}

.info-panel dt {
    color: #94a3b8;
}

.info-panel dd {
    margin: 0;
    color: #e2e8f0;
}

.compact-list {
    display: grid;
    gap: 0.8rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.compact-card img {
    width: 96px;
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-card span {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

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

.compact-card em {
    color: #94a3b8;
    font-size: 0.82rem;
    font-style: normal;
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    border-top: 1px solid rgba(34, 211, 238, 0.25);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(0, 0, 0, 0.96));
}

.footer-inner {
    position: relative;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2.5rem 0;
}

.footer-brand {
    color: #e0f2fe;
    font-size: 1.2rem;
}

.footer-inner p {
    max-width: 680px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1.2rem 0;
}

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    color: #64748b;
    font-size: 0.9rem;
}

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

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

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .hero-poster {
        display: none;
    }

    .hero-shell {
        height: 620px;
    }

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

    .rank-panel,
    .aside-card {
        position: static;
    }

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

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

    .ranking-index {
        position: absolute;
        transform: translate(-0.4rem, -2.6rem);
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
    }

    .ranking-score {
        grid-column: 2;
        justify-items: start;
    }
}

@media (max-width: 620px) {
    .header-inner {
        width: min(100% - 24px, 1440px);
        min-height: 64px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: min(100% - 24px, 1440px);
    }

    .hero-shell {
        height: 590px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .hero-actions {
        display: grid;
    }

    .content-section,
    .detail-layout {
        width: min(100% - 24px, 1440px);
    }

    .movie-grid,
    .featured-grid,
    .small-grid,
    .category-grid,
    .category-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .movie-card-body {
        padding: 0.75rem;
    }

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

    .section-head {
        display: grid;
        align-items: start;
    }

    .detail-cover {
        width: 190px;
    }

    .detail-hero-inner {
        align-items: start;
    }

    .player-stage {
        min-height: 210px;
    }

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

    .compact-card img {
        width: 78px;
    }
}
