:root {
    --amber-50: #fff8ec;
    --amber-100: #ffedd5;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    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: var(--slate-900);
    background: linear-gradient(135deg, var(--slate-50), var(--amber-50) 48%, #fff7ed);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-header-inner,
.footer-inner,
.content-section,
.hero-wrap,
.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 10px 18px rgba(217, 119, 6, 0.24);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.header-search,
.mobile-search,
.filter-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.local-search {
    width: 230px;
    height: 42px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 0 16px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.clear-search {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: var(--amber-600);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--slate-900);
    background: var(--amber-100);
}

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

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-wrap {
    padding: 34px 0 18px;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    isolation: isolate;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 40px;
    padding: 72px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

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

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    filter: saturate(1.08);
    z-index: -3;
}

.hero-shade {
    background:
        radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.2), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.63) 46%, rgba(15, 23, 42, 0.34)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1));
    z-index: -2;
}

.hero-content {
    max-width: 760px;
    color: #fff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-kicker {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-meta,
.hero-summary {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-summary {
    max-width: 680px;
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.text-link,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 14px 24px rgba(217, 119, 6, 0.26);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.34);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.23);
}

.hero-poster {
    align-self: center;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 28px;
    z-index: 8;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber-500);
}

.content-section {
    padding: 46px 0;
}

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

.section-title-row h2,
.ranking-panel h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title-row h2,
.ranking-panel h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.text-link {
    color: var(--amber-700);
    font-weight: 850;
}

.text-link:hover {
    color: var(--orange-600);
}

.filter-panel {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--soft-shadow);
}

.filter-search-row {
    margin-bottom: 16px;
}

.local-search {
    width: min(100%, 560px);
}

.filter-tags,
.category-chip-row,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip,
.category-chip,
.tag-list a {
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--slate-700);
    background: #fff;
    transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover,
.category-chip:hover,
.tag-list a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.category-chip-row {
    margin-top: 14px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: var(--soft-shadow);
    background: var(--slate-900);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 72%);
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 21px;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.6;
}

.category-card:hover img {
    transform: scale(1.08);
}

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

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

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

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

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

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

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

.cover-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 70%);
    transition: opacity 0.25s ease;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #fff;
    background: var(--amber-600);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--orange-600));
    font-weight: 900;
}

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

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

.movie-card h3 a:hover {
    color: var(--amber-700);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.55;
}

.movie-desc {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-panel,
.detail-card,
.detail-section,
.side-info,
.category-overview-card,
.ranking-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--soft-shadow);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

.list-rank {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    border-radius: 999px;
    background: var(--amber-600);
    font-weight: 900;
}

.rank-item img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
}

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

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

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

.rank-item small {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-main {
    padding: 30px 0 56px;
}

.page-hero {
    margin: 0 0 24px;
    padding: 42px;
    border-radius: var(--radius-xl);
}

.soft-hero {
    border: 1px solid rgba(226, 232, 240, 0.86);
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.2), transparent 32%),
        rgba(255, 255, 255, 0.78);
    box-shadow: var(--soft-shadow);
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 860px;
    margin: 16px 0 0;
    color: var(--slate-500);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-700);
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    padding: 20px;
}

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

.category-thumbs img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 22px;
    color: var(--slate-500);
    line-height: 1.8;
}

.small-button {
    min-height: 40px;
    padding: 0 18px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

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

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--amber-600);
    font-weight: 900;
}

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

.ranking-card p {
    color: var(--slate-500);
    line-height: 1.75;
}

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

.detail-primary {
    display: grid;
    gap: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #030712;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.large-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.35);
    font-size: 38px;
    line-height: 1;
}

.player-overlay strong {
    font-size: 20px;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: none;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: rgba(220, 38, 38, 0.88);
}

.player-message.visible {
    display: block;
}

.detail-card,
.detail-section {
    padding: 24px;
}

.detail-card h1 {
    font-size: clamp(30px, 5vw, 48px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-weight: 750;
}

.lead-text {
    color: var(--slate-700);
    font-size: 18px;
    line-height: 1.8;
}

.detail-section h2,
.side-info h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

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

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.side-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.side-info {
    padding: 22px;
}

.side-info p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
    color: var(--slate-500);
}

.side-info p strong {
    color: var(--slate-900);
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

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

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 28px;
    text-align: center;
    color: var(--slate-500);
    border-radius: var(--radius-lg);
    background: #fff;
}

.empty-state.visible {
    display: block;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--slate-900);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5fr;
    gap: 34px;
    padding: 40px 0;
}

.footer-logo .brand-text {
    color: #fff;
    background: none;
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-content: start;
    justify-content: end;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
        padding: 56px;
    }
}

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: end;
        gap: 24px;
        padding: 42px 28px 76px;
    }

    .hero-poster {
        width: 220px;
        justify-self: start;
        order: -1;
    }

    .hero-dots {
        left: 28px;
    }

    .split-section,
    .detail-layout,
    .footer-inner,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 700px) {
    .site-header-inner,
    .footer-inner,
    .content-section,
    .hero-wrap,
    .page-main {
        width: min(100% - 24px, 1280px);
    }

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

    .hero-carousel {
        min-height: 610px;
        border-radius: 18px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 38px;
    }

    .hero-meta,
    .hero-summary {
        font-size: 15px;
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: auto;
        right: 78px;
    }

    .hero-next {
        right: 26px;
    }

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

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

    .movie-card h3 {
        font-size: 15px;
    }

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

    .ranking-card {
        grid-template-columns: 108px minmax(0, 1fr);
        padding: 14px;
    }

    .page-hero {
        padding: 28px;
    }

    .filter-search-row,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-search input,
    .local-search {
        width: 100%;
    }

    .detail-card,
    .detail-section,
    .side-info {
        padding: 18px;
    }
}

@media (max-width: 440px) {
    .category-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: 170px;
    }

    .rank-item {
        grid-template-columns: 30px 54px minmax(0, 1fr);
    }

    .rank-item img {
        width: 54px;
        height: 74px;
    }
}
