:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --pink: #db2777;
    --rose: #f43f5e;
    --shadow: 0 20px 45px rgba(28, 25, 23, 0.12);
    --soft-shadow: 0 10px 28px rgba(28, 25, 23, 0.08);
    --radius: 22px;
}

* {
    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(--stone-800);
    background: var(--bg);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.65);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.26);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.05);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.logo-icon-svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.logo-icon-svg .logo-play {
    fill: #ffffff;
    stroke: none;
}

.brand-text {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #b91c1c, #be185d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: var(--stone-700);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

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

.nav-link-soft {
    color: var(--stone-500);
}

.header-search {
    width: 225px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--stone-300);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

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

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

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--pink));
    cursor: pointer;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--stone-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--stone-200);
    background: rgba(255, 255, 255, 0.98);
    padding: 14px 16px 20px;
}

.mobile-panel.is-open {
    display: block;
    animation: fadeIn 0.18s ease both;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--stone-300);
    border-radius: 999px;
    margin-bottom: 10px;
}

.mobile-search input {
    padding: 8px 10px;
}

.mobile-link {
    display: block;
    padding: 11px 12px;
    color: var(--stone-700);
    border-radius: 12px;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--red-dark);
    background: #fff1f2;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.35), transparent 35%), linear-gradient(135deg, #1c1917, #451a03 48%, #831843);
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.04);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.72) 48%, rgba(28, 25, 23, 0.18)), linear-gradient(0deg, rgba(28, 25, 23, 0.95), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 58px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--pink));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-light {
    color: var(--red-dark);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px);
    padding: 18px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.25);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-panel h3 {
    margin: 16px 0 6px;
    font-size: 22px;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.42);
    backdrop-filter: blur(10px);
}

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

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

.main-content {
    padding: 58px 0 76px;
}

.section {
    margin-top: 58px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-kicker {
    color: var(--red);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
}

.section h2,
.detail-section h2 {
    margin: 5px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--stone-900);
}

.section-desc {
    margin: 9px 0 0;
    max-width: 680px;
    color: var(--stone-600);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(231, 229, 228, 0.8);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(244, 63, 94, 0.25);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-200), var(--stone-100));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.62);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.34);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 15px;
}

.card-title {
    display: block;
    color: var(--stone-900);
    font-weight: 800;
    line-height: 1.35;
    min-height: 42px;
}

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

.card-meta {
    margin: 6px 0 8px;
    color: var(--stone-500);
    font-size: 13px;
}

.card-body p {
    margin: 0;
    min-height: 44px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.55;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.card-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--red-dark);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #7f1d1d, #be185d 52%, #312e81);
    box-shadow: var(--soft-shadow);
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #1e293b, #b91c1c 54%, #fb7185);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #292524, #dc2626 55%, #fb923c);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.80);
}

.category-card .btn {
    min-height: 40px;
    padding: 0 16px;
}

.category-card:after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(244, 63, 94, 0.32);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 900;
}

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

.rank-item h3 {
    margin: 0 0 6px;
    line-height: 1.35;
}

.rank-item p {
    margin: 0;
    color: var(--stone-600);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 26px 0;
    padding: 12px;
    border: 1px solid var(--stone-200);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-search-wrap {
    padding: 0 8px;
}

.filter-search {
    min-height: 44px;
    padding: 0 8px;
}

.filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--stone-700);
    background: var(--stone-100);
    cursor: pointer;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--pink));
    transform: translateY(-1px);
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.32), transparent 35%), linear-gradient(135deg, #1c1917, #7f1d1d 55%, #831843);
    padding: 70px 0 76px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

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

.library-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--stone-200);
}

.library-card h2,
.library-card h3 {
    margin: 0;
}

.library-card p {
    margin: 0;
    color: var(--stone-600);
}

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

.library-links a {
    color: var(--red-dark);
    background: #fff1f2;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(8px);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.78) 50%, rgba(28, 25, 23, 0.52));
}

.detail-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    padding: 70px 0 58px;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-title h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 750;
}

.detail-title p {
    max-width: 790px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.player-section {
    padding: 46px 0 12px;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(28, 25, 23, 0.14);
}

.player-box {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.28), rgba(0, 0, 0, 0.38) 44%, rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-layer span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.42);
    font-size: 42px;
    padding-left: 6px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
    padding-bottom: 76px;
}

.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    box-shadow: var(--soft-shadow);
}

.detail-card {
    padding: 30px;
}

.detail-section + .detail-section {
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid var(--stone-200);
}

.detail-section p {
    color: var(--stone-700);
    margin: 14px 0 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.side-card {
    padding: 20px;
    position: sticky;
    top: 96px;
}

.side-card h2 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #fff1f2;
    transform: translateX(3px);
}

.compact-card img {
    width: 70px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    color: var(--stone-900);
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--stone-500);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
    padding: 48px 0 36px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 14px;
}

.footer-about p {
    max-width: 560px;
    margin: 0;
    color: var(--stone-400);
}

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

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

.site-footer a {
    color: var(--stone-300);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px 24px;
    color: var(--stone-500);
    text-align: center;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-panel {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
    }

    .hero-panel img {
        aspect-ratio: 3 / 4;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

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

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

    .detail-head {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

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

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

    .header-inner {
        min-height: 64px;
    }

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

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

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

    .hero-content {
        padding: 36px 0 70px;
    }

    .hero-panel {
        grid-template-columns: 108px minmax(0, 1fr);
        padding: 12px;
        border-radius: 22px;
    }

    .hero-panel h3 {
        font-size: 18px;
        margin-top: 0;
    }

    .hero-text,
    .page-hero p,
    .detail-title p {
        font-size: 16px;
    }

    .main-content {
        padding: 40px 0 56px;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

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

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

    .rank-item img {
        width: 64px;
        height: 84px;
    }

    .detail-head {
        grid-template-columns: 1fr;
        padding: 42px 0 44px;
    }

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

    .player-section {
        padding-top: 28px;
    }

    .detail-card {
        padding: 22px;
    }

    .play-layer span {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

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