:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --pink: #ec4899;
    --blue: #0ea5e9;
    --green: #10b981;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.28);
}

.nav-bar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.site-logo {
    font-size: 21px;
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.04);
}

.logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fef3c7;
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
}

.mobile-nav a.active,
.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.2)), var(--hero-bg);
    background-size: cover;
    background-position: center;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(249, 115, 22, 0.32), transparent 30%), radial-gradient(circle at 70% 15%, rgba(236, 72, 153, 0.24), transparent 25%);
}

.hero-content {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 64px;
    color: var(--white);
}

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

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 40px);
    color: #fed7aa;
}

.hero-copy p {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-tags,
.ranking-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags a,
.ranking-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    backdrop-filter: blur(12px);
}

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

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.hero-copy .btn-primary {
    color: var(--orange-dark);
    background: var(--white);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(1.5deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: inherit;
    z-index: 1;
}

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

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

.hero-controls button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dots button.active {
    width: 30px;
    background: var(--white);
}

.site-search-section {
    margin-top: -44px;
    position: relative;
    z-index: 8;
}

.search-box-panel,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-box-panel h2,
.search-box-panel p {
    margin: 0;
}

.search-box-panel h2 {
    font-size: 28px;
    line-height: 1.2;
}

.search-box-panel p {
    color: var(--slate-600);
}

.global-search {
    position: relative;
}

.global-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    outline: 0;
    color: var(--slate-900);
    background: var(--white);
    padding: 0 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 430px;
    overflow: auto;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.global-search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item img {
    width: 62px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--slate-100);
}

.search-result-item strong {
    display: block;
    margin-bottom: 4px;
}

.search-result-item p {
    margin: 0 0 7px;
    color: var(--slate-600);
    font-size: 13px;
}

.search-result-item span {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}

.section-block {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fee2e2 55%, #fdf2f8);
}

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

.section-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--orange-dark);
    font-weight: 800;
}

.inline-head {
    margin-bottom: 22px;
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-200);
}

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

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.rank-row:hover img,
.ranking-card:hover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.76));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-type,
.movie-year,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.movie-type {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.movie-year {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    background: rgba(2, 6, 23, 0.72);
}

.play-badge {
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-card h2 a:hover {
    color: var(--orange-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags span {
    color: var(--orange-dark);
    background: #ffedd5;
    padding: 4px 8px;
}

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

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--shadow-card);
    padding: 22px;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.85));
    z-index: 1;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.45s ease;
}

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

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

.category-tile em {
    max-width: 220px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.category-glow {
    position: absolute;
    inset: auto -40px -50px auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.48);
    filter: blur(12px);
    z-index: 2;
}

.dual-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.rank-panel,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.rank-panel-head h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 32px 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: var(--slate-50);
}

.rank-no {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 13px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    overflow: hidden;
    width: 70px;
    height: 48px;
    border-radius: 12px;
    background: var(--slate-100);
}

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

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.rank-info em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.rank-more {
    width: 100%;
    margin-top: 20px;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.9fr 1fr;
    gap: 38px;
    padding: 56px 0 34px;
}

.footer-logo {
    color: var(--white);
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 14px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 86px 0;
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

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

.page-hero .section-kicker {
    color: #fff7ed;
}

.category-preview-wrap {
    display: grid;
    gap: 54px;
    padding-bottom: 76px;
}

.category-preview {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.filter-panel {
    grid-template-columns: 1fr 210px 210px;
    margin-bottom: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 28px 0 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

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

.detail-content,
.detail-side {
    min-width: 0;
}

.player-card,
.detail-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.42));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

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

.detail-panel {
    margin-top: 24px;
    padding: 30px;
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span,
.ranking-meta span {
    padding: 6px 10px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.one-line {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--orange);
    border-radius: 16px;
    color: var(--slate-800);
    background: #fff7ed;
    font-weight: 700;
}

.detail-panel section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.detail-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-panel p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags a {
    padding: 7px 12px;
    color: var(--orange-dark);
    background: #ffedd5;
}

.detail-tags a:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.sticky-side {
    position: sticky;
    top: 92px;
}

.compact-rank-list .rank-row {
    grid-template-columns: 28px 64px 1fr;
    padding: 8px;
}

.related-section {
    padding-top: 54px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    width: 150px;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
}

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

.ranking-cover span {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.ranking-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
}

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

@media (max-width: 1180px) {
    .movie-grid,
    .movie-grid-home {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 70px 0 105px;
        text-align: center;
    }

    .hero-copy {
        margin: 0 auto;
    }

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

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

    .search-box-panel,
    .filter-panel,
    .dual-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        order: 2;
    }

    .sticky-side {
        position: static;
    }
}

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

    .site-logo {
        font-size: 18px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

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

    .site-search-section {
        margin-top: -26px;
    }

    .search-box-panel,
    .filter-panel,
    .category-preview,
    .detail-panel,
    .rank-panel,
    .side-card {
        padding: 20px;
    }

    .section-block {
        padding: 54px 0;
    }

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

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

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

    .category-tile {
        min-height: 190px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .ranking-card {
        grid-template-columns: 96px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .ranking-cover {
        width: 96px;
    }

    .ranking-card h2 {
        font-size: 18px;
    }

    .video-overlay span {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .movie-grid-home,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

    .movie-card h2 {
        font-size: 14px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
