* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f9fafb;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.logo-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-text {
    display: grid;
    gap: 2px;
}

.logo-text strong {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-text small {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fb923c;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.search-toggle,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-toggle {
    width: 42px;
    height: 42px;
}

.search-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.search-toggle:hover,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-menu,
.site-search {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: #1e293b;
}

.mobile-menu.is-open,
.site-search.is-open {
    display: block;
}

.mobile-nav-link,
.mobile-search-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    color: #e5e7eb;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: transparent;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active,
.mobile-search-button:hover {
    color: #fb923c;
}

.search-panel-inner {
    padding: 18px 0;
}

.global-search-label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.global-search-input,
.quick-search-box input,
.page-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    outline: 0;
    border-radius: 999px;
    padding: 14px 20px;
    color: #111827;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.global-search-input:focus,
.quick-search-box input:focus,
.page-search input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #7c2d12 52%, #7f1d1d 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background: radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.35), transparent 34%), radial-gradient(circle at 88% 35%, rgba(248, 113, 113, 0.28), transparent 30%), rgba(0, 0, 0, 0.48);
}

.hero::after {
    opacity: 0.15;
    background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.45) 2px, transparent 2px);
    background-size: 52px 52px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    padding: 86px 0 74px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: 58px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.5s ease both;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge {
    padding: 9px 16px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.75);
    background: rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(10px);
}

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

.hero p {
    max-width: 680px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.hero-stats span {
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-tags span {
    padding: 8px 12px;
    font-size: 13px;
}

.hero-stats span {
    padding: 7px 12px;
    color: #e5e7eb;
    font-size: 14px;
}

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

.btn svg {
    fill: currentColor;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #dc2626);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 22px 48px rgba(220, 38, 38, 0.38);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.hero-art {
    position: relative;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: -18px;
    border-radius: 32px;
    background: linear-gradient(90deg, #f97316, #dc2626);
    filter: blur(32px);
    opacity: 0.24;
    transition: opacity 0.3s ease;
}

.hero-art:hover .hero-glow {
    opacity: 0.38;
}

.hero-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%);
}

.hero-category {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: #f97316;
    font-size: 13px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, #fb923c, #ef4444);
}

.quick-search-section {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.quick-search-card {
    display: grid;
    gap: 22px;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.ranking-side h2,
.side-card h2 {
    margin: 0;
}

.section-kicker {
    margin-bottom: 8px;
    color: #ea580c;
}

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

.category-chip {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    color: #111827;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1px solid #fed7aa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.category-chip span {
    font-weight: 900;
}

.category-chip small {
    color: #64748b;
}

.section {
    padding: 74px 0;
    background: #fff;
}

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

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

.section-head h2 {
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-head.light h2 {
    color: #fff;
}

.section-more {
    color: #ea580c;
    font-weight: 800;
}

.section-more:hover {
    color: #c2410c;
    text-decoration: underline;
}

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

.all-card-grid {
    align-items: stretch;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: grid;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    color: #111827;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}

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

.movie-card-link:hover .movie-cover img {
    transform: scale(1.1);
}

.movie-cover-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-cover-shade {
    opacity: 1;
}

.movie-duration,
.movie-play,
.movie-foot span:last-child,
.tag-row a,
.tag-row span {
    border-radius: 999px;
}

.movie-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    font-size: 12px;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: #f97316;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-play svg {
    fill: currentColor;
}

.movie-card-link:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-info strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-link:hover .movie-info strong {
    color: #ea580c;
}

.movie-meta,
.movie-foot,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 13px;
}

.movie-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.movie-foot {
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.movie-foot span:last-child {
    padding: 5px 9px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 700;
}

.movie-card-horizontal .movie-card-link {
    grid-template-columns: 210px 1fr;
}

.movie-card-horizontal .movie-cover {
    height: 100%;
    aspect-ratio: auto;
}

.category-feature {
    background: linear-gradient(135deg, #f8fafc, #fff);
}

.tone-orange,
.category-feature.tone-orange {
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.tone-red,
.category-feature.tone-red {
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.tone-blue,
.category-feature.tone-blue {
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.tone-slate,
.category-feature.tone-slate {
    background: linear-gradient(135deg, #f1f5f9, #fff);
}

.tone-pink,
.category-feature.tone-pink {
    background: linear-gradient(135deg, #fdf2f8, #fff);
}

.tone-purple,
.category-feature.tone-purple {
    background: linear-gradient(135deg, #f5f3ff, #fff);
}

.tone-teal,
.category-feature.tone-teal {
    background: linear-gradient(135deg, #f0fdfa, #fff);
}

.tone-emerald,
.category-feature.tone-emerald {
    background: linear-gradient(135deg, #ecfdf5, #fff);
}

.ranking-strip {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #7c2d12, #7f1d1d);
}

.rank-grid,
.ranking-main {
    display: grid;
    gap: 14px;
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 48px 96px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    color: #111827;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-strip .rank-item a {
    background: rgba(255, 255, 255, 0.95);
}

.rank-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

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

.rank-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

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

.rank-copy small,
.rank-copy em,
.rank-views {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

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

.rank-views {
    font-weight: 800;
    color: #ea580c;
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #7c2d12, #7f1d1d);
}

.page-hero .container {
    display: grid;
    gap: 18px;
    padding: 58px 0;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.crumb {
    width: max-content;
    color: #fed7aa;
    font-weight: 700;
}

.crumb:hover {
    color: #fff;
}

.page-search {
    max-width: 720px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 9px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.filter-row button:hover,
.filter-row button.is-active {
    border-color: #fb923c;
    background: #f97316;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.category-overview-link {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    padding: 24px;
}

.category-poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-poster-stack img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.category-overview-copy small {
    color: #ea580c;
    font-weight: 800;
}

.category-overview-copy strong {
    font-size: 28px;
}

.category-overview-copy em {
    color: #4b5563;
    font-style: normal;
    line-height: 1.7;
}

.category-overview-copy span {
    color: #64748b;
    font-weight: 700;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 24px;
}

.category-sample-links a {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 8px 12px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.ranking-side,
.side-card,
.detail-card {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.ranking-side {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.mini-card:hover {
    background: #f8fafc;
}

.mini-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #e5e7eb;
}

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

.mini-cover span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 6px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    font-size: 11px;
}

.mini-info {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.mini-info strong {
    color: #111827;
}

.mini-info small {
    color: #64748b;
}

.detail-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.detail-topbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 15px 0;
    color: #64748b;
    font-size: 14px;
}

.detail-topbar a:hover {
    color: #ea580c;
}

.detail-section {
    padding: 34px 0 72px;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.35);
}

.play-layer svg {
    fill: currentColor;
    width: 34px;
    height: 34px;
}

.play-layer strong {
    font-size: 20px;
}

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

.detail-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-row a,
.tag-row span {
    padding: 7px 12px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.tag-row a {
    color: #c2410c;
    background: #ffedd5;
}

.detail-card h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.one-line {
    color: #111827;
    font-weight: 700;
}

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
}

.cover-card {
    display: grid;
    gap: 15px;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

.cover-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cover-card strong {
    color: #ea580c;
    font-size: 24px;
}

.cover-card span {
    color: #64748b;
    font-size: 13px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-logo .logo-text strong {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p,
.site-footer p {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

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

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

    .category-overview-link,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-side,
    .detail-side {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        height: 66px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .logo-text small {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding: 54px 0 72px;
    }

    .hero-slide,
    .hero-slide.is-active {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-dots {
        left: 0;
        bottom: 28px;
    }

    .wide-grid,
    .rank-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 150px 1fr;
    }

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

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

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

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

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

    .btn {
        width: 100%;
    }

    .quick-search-card {
        padding: 22px;
    }

    .category-chip-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-link,
    .mini-card,
    .rank-item a {
        grid-template-columns: 1fr;
    }

    .rank-item img,
    .mini-cover {
        width: 100%;
    }

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

    .category-overview-link {
        padding: 18px;
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }
}
