:root {
    --red-50: #fff1f2;
    --red-100: #ffe4e6;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --rose-500: #f43f5e;
    --orange-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: var(--gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

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

.header-inner {
    width: min(var(--container), calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--rose-500));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.brand strong {
    display: block;
    color: var(--gray-900);
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand small {
    display: block;
    color: var(--gray-500);
    font-size: 11px;
    margin-top: -4px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    color: var(--gray-700);
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
    color: var(--red-600);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    display: grid;
    min-width: 168px;
    padding: 10px;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--red-600);
    background: var(--red-50);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--rose-500));
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: var(--gray-800);
    background: var(--gray-100);
    padding: 10px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
}

.page-main {
    padding-top: 76px;
}

.hero-carousel {
    position: relative;
    height: 700px;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-50), #fff7ed 45%, #ffe4e6);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(220, 38, 38, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 38, 38, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.55;
}

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

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

.hero-bg {
    position: absolute;
    right: min(6vw, 90px);
    bottom: 56px;
    width: min(42vw, 520px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(244, 63, 94, 0.08));
    box-shadow: 0 40px 90px rgba(220, 38, 38, 0.24);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
}

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

.hero-content {
    position: relative;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding-right: min(48vw, 560px);
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: var(--red-700);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--red-600);
    background: var(--red-50);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-kicker.light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.hero-content h1 {
    max-width: 720px;
    margin: 22px 0 18px;
    color: var(--gray-900);
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 26px;
    color: var(--gray-700);
    font-size: 19px;
}

.hero-tags,
.simple-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.simple-tags span {
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 700;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    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(135deg, var(--red-600), var(--rose-500));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.btn-light {
    color: var(--gray-900);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.btn-muted {
    color: var(--gray-700);
    background: var(--gray-100);
}

.btn.full {
    width: 100%;
    margin-top: 20px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    box-shadow: var(--soft-shadow);
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--red-600);
}

.section {
    padding: 72px 0;
}

.white-section {
    background: var(--white);
}

.gray-section {
    background: var(--gray-50);
}

.soft-section {
    background: linear-gradient(135deg, var(--red-50), #fff7ed);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--gray-500);
}

.section-more,
.text-link {
    color: var(--red-600);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 32%), linear-gradient(135deg, var(--red-100), #fff7ed);
}

.poster-frame img,
.feature-poster img,
.category-tile img,
.cover-preview img,
.hero-mini-posters img,
.ranking-item img,
.ranking-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame:hover img,
.feature-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    font-size: 34px;
    transition: opacity 0.2s ease;
}

.play-hover.large {
    font-size: 46px;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}

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

.meta-row,
.tiny-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.pill {
    color: var(--red-600);
    background: var(--red-50);
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--red-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 30px;
    background: var(--gray-900);
    box-shadow: var(--shadow);
}

.feature-poster {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, var(--red-600), var(--rose-500));
}

.feature-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
}

.feature-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px;
    color: var(--white);
}

.light-meta {
    color: rgba(255, 255, 255, 0.78);
}

.feature-content h3 {
    margin: 10px 0;
    font-size: 24px;
    line-height: 1.2;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.82);
}

.ranking-strip {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--rose-500));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

.ranking-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.ranking-copy p {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.ranking-number {
    color: rgba(255, 255, 255, 0.82);
    font-size: 22px;
    font-weight: 900;
}

.ranking-item img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.ranking-info strong,
.ranking-info small {
    display: block;
}

.ranking-info small {
    color: rgba(255, 255, 255, 0.72);
}

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

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--red-100), #fff7ed);
    box-shadow: var(--soft-shadow);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.category-tile strong,
.category-tile small {
    position: absolute;
    left: 20px;
    right: 20px;
    color: var(--white);
}

.category-tile strong {
    bottom: 44px;
    font-size: 24px;
}

.category-tile small {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, var(--red-600), var(--rose-500));
    padding: 76px 0;
}

.compact-hero {
    padding: 80px 0 64px;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

.two-col-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

.hero-mini-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    transform: rotate(-2deg);
}

.hero-mini-posters a {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--soft-shadow);
}

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

.category-overview-card {
    padding: 28px;
    border: 1px solid var(--gray-100);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.category-overview-head h2 {
    margin: 0;
    color: var(--gray-900);
}

.category-overview-head span {
    color: var(--red-600);
    background: var(--red-50);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--gray-500);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.sample-links a {
    max-width: 100%;
    overflow: hidden;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--gray-100);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 11px 14px;
}

.result-line {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.result-line strong {
    color: var(--red-600);
}

.detail-hero {
    background: linear-gradient(135deg, var(--gray-50), var(--red-50));
    padding: 30px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--red-600);
}

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

.player-column {
    display: grid;
    gap: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

.hls-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    color: var(--red-600);
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.cover-preview {
    overflow: hidden;
    max-height: 260px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--red-100), #fff7ed);
    box-shadow: var(--soft-shadow);
}

.cover-preview img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.detail-card {
    position: sticky;
    top: 100px;
    padding: 28px;
    border: 1px solid var(--gray-100);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.detail-pills,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-pills a,
.detail-pills span,
.tag-chip {
    color: var(--red-600);
    background: var(--red-50);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.detail-pills span:nth-child(2n) {
    color: #2563eb;
    background: #eff6ff;
}

.detail-card h1 {
    margin: 18px 0 12px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.one-line {
    color: var(--gray-700);
    font-size: 17px;
    font-weight: 700;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
}

.info-list dt {
    color: var(--gray-500);
}

.info-list dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 700;
}

.info-list a:hover {
    color: var(--red-600);
}

.content-card {
    padding: 30px;
    border: 1px solid var(--gray-100);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
}

.content-card p {
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
}

.review-card {
    background: linear-gradient(135deg, var(--red-50), #fff7ed);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.prev-next a {
    display: inline-flex;
    max-width: 48%;
    color: var(--red-600);
    background: var(--white);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: var(--soft-shadow);
    font-weight: 800;
}

.table-card {
    overflow: hidden;
    border: 1px solid var(--gray-100);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.ranking-table {
    display: grid;
}

.ranking-row {
    display: grid;
    grid-template-columns: 72px 58px 1fr 140px 80px;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
}

.ranking-row:hover {
    background: var(--red-50);
}

.ranking-row-no {
    color: var(--red-600);
    font-size: 22px;
    font-weight: 900;
}

.ranking-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    background: var(--red-50);
}

.ranking-row-title strong,
.ranking-row-title small {
    display: block;
}

.ranking-row-title small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 13px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.site-footer {
    color: var(--gray-500);
    background: var(--gray-900);
    padding: 42px 0;
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.footer-links a:hover {
    color: var(--white);
}

.is-hidden {
    display: none !important;
}

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

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

    .mobile-panel {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        display: grid;
        gap: 14px;
        padding: 18px 24px 24px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--soft-shadow);
        transform: translateY(-120%);
        transition: transform 0.25s ease;
    }

    body.menu-open .mobile-panel {
        transform: translateY(0);
    }

    .mobile-search {
        display: flex;
        gap: 8px;
    }

    .mobile-search input {
        min-width: 0;
        flex: 1;
        padding: 10px 14px;
    }

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

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

    .filter-panel .search-label {
        grid-column: 1 / -1;
    }

    .two-col-hero,
    .detail-layout,
    .detail-content-grid,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .detail-card {
        position: static;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-bg {
        right: -70px;
        opacity: 0.28;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
    }

    .page-main {
        padding-top: 68px;
    }

    .mobile-panel {
        top: 68px;
    }

    .hero-carousel {
        height: 640px;
        min-height: 620px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-control {
        display: none;
    }

    .movie-grid.four-col,
    .movie-grid.six-col,
    .movie-grid.three-col,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .feature-card {
        min-height: 430px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }

    .ranking-row {
        grid-template-columns: 48px 52px 1fr;
    }

    .ranking-row > span:nth-last-child(-n + 2) {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand small {
        display: none;
    }

    .brand strong {
        font-size: 17px;
    }

    .hero-carousel {
        min-height: 680px;
    }

    .hero-bg {
        width: 70vw;
        right: -28vw;
        bottom: 20px;
    }

    .hero-content {
        align-self: start;
        padding-top: 100px;
    }

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

    .movie-grid.four-col,
    .movie-grid.six-col,
    .movie-grid.three-col,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 56px 0;
    }

    .hero-mini-posters {
        grid-template-columns: repeat(2, 1fr);
    }

    .prev-next {
        display: grid;
    }

    .prev-next a {
        max-width: 100%;
    }
}
