:root {
    --primary-50: #e6fffa;
    --primary-100: #b2f5ea;
    --primary-400: #33cccc;
    --primary-500: #009999;
    --primary-600: #007a7a;
    --primary-700: #005c5c;
    --secondary-50: #f0f4f8;
    --secondary-100: #d9e2ec;
    --secondary-200: #bcccdc;
    --secondary-300: #9fb3c8;
    --secondary-400: #829ab1;
    --secondary-500: #627d98;
    --secondary-600: #486581;
    --secondary-700: #334e68;
    --secondary-800: #243b53;
    --secondary-900: #102a43;
    --accent-500: #f97316;
    --white: #ffffff;
    --black: #000000;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.14), 0 8px 10px -6px rgb(0 0 0 / 0.12);
}

body {
    min-height: 100vh;
    background: var(--secondary-50);
    color: var(--secondary-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

.container-custom {
    width: min(100%, 80rem);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.88);
    border-bottom: 1px solid rgb(188 204 220 / 0.55);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    color: var(--white);
    font-size: 1rem;
    box-shadow: 0 10px 22px rgb(0 153 153 / 0.28);
    transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--secondary-900);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 0.18rem;
    color: var(--secondary-600);
    font-size: 0.75rem;
    font-style: normal;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    padding: 0.58rem 0.78rem;
    border-radius: 0.65rem;
    color: var(--secondary-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.header-search {
    display: none;
    align-items: center;
    gap: 0.5rem;
    width: min(26rem, 36vw);
    padding: 0.35rem;
    border: 1px solid var(--secondary-100);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 4px 18px rgb(16 42 67 / 0.07);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.8rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--secondary-800);
}

.header-search button,
.hero-search button,
.filter-clear,
.btn {
    border: 0;
    border-radius: 0.55rem;
    background: var(--primary-500);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
}

.header-search button:hover,
.hero-search button:hover,
.filter-clear:hover,
.btn:hover {
    transform: translateY(-1px);
    background: var(--primary-600);
    box-shadow: 0 12px 24px rgb(0 153 153 / 0.24);
}

.menu-toggle {
    display: inline-grid;
    gap: 0.28rem;
    width: 2.5rem;
    height: 2.5rem;
    place-content: center;
    border: 0;
    border-radius: 0.65rem;
    background: var(--secondary-100);
}

.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    background: var(--secondary-800);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--secondary-100);
    background: var(--white);
}

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

.mobile-panel-inner {
    display: grid;
    gap: 0.25rem;
    width: min(100%, 80rem);
    margin: 0 auto;
    padding: 0.8rem 1rem 1rem;
}

.mobile-panel a {
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    color: var(--secondary-700);
    font-weight: 650;
}

.mobile-panel a:hover {
    background: var(--secondary-50);
    color: var(--primary-600);
}

.hero-slider {
    position: relative;
    min-height: 680px;
    height: 72vh;
    overflow: hidden;
    background: var(--secondary-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgb(16 42 67 / 0.96) 0%, rgb(16 42 67 / 0.72) 48%, rgb(16 42 67 / 0.15) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 42%;
    background: linear-gradient(0deg, var(--secondary-50) 0%, rgb(240 244 248 / 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: 680px;
    height: 72vh;
    max-width: 48rem;
    color: var(--white);
}

.hero-eyebrow,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: rgb(0 153 153 / 0.92);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-title {
    margin: 1rem 0 0.7rem;
    font-size: clamp(2.4rem, 6vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-movie-title {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 3vw, 3.25rem);
    line-height: 1.05;
    font-weight: 850;
}

.hero-text {
    max-width: 44rem;
    color: rgb(217 226 236 / 0.95);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.78rem 1.35rem;
}

.btn-secondary {
    background: rgb(255 255 255 / 0.16);
    color: var(--white);
    border: 1px solid rgb(255 255 255 / 0.24);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgb(255 255 255 / 0.24);
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags {
    margin-top: 1rem;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: var(--secondary-100);
    color: var(--secondary-700);
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-tags span {
    background: rgb(255 255 255 / 0.15);
    color: var(--white);
    border: 1px solid rgb(255 255 255 / 0.18);
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: min(100%, 40rem);
    margin-top: 1.6rem;
    padding: 0.45rem;
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.22);
    backdrop-filter: blur(16px);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    padding: 0.82rem 1rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
}

.hero-search input::placeholder {
    color: rgb(255 255 255 / 0.72);
}

.hero-search button {
    padding: 0.82rem 1.15rem;
}

.hero-dots {
    position: absolute;
    right: max(1.2rem, calc((100vw - 80rem) / 2 + 2rem));
    bottom: 2.4rem;
    z-index: 4;
    display: flex;
    gap: 0.6rem;
}

.hero-dot {
    width: 0.78rem;
    height: 0.78rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2.2rem;
    background: var(--primary-400);
}

.quick-cats {
    position: relative;
    z-index: 5;
    margin-top: -3.4rem;
}

.quick-cats-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgb(188 204 220 / 0.6);
    border-radius: 1.25rem;
    background: rgb(255 255 255 / 0.92);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.quick-cat {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--secondary-50), var(--white));
    color: var(--secondary-800);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.quick-cat:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary-50), var(--white));
    box-shadow: var(--shadow-sm);
}

.quick-cat strong {
    font-size: 1rem;
}

.quick-cat span {
    color: var(--secondary-500);
    font-size: 0.85rem;
}

.section {
    padding: 4.5rem 0;
}

.section.tight {
    padding-top: 2.5rem;
}

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

.section.dark {
    background: var(--secondary-900);
    color: var(--white);
}

.section.soft-gradient {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-100));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0.65rem 0 0.35rem;
    color: var(--secondary-900);
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dark .section-heading h2 {
    color: var(--white);
}

.section-heading p,
.page-hero p,
.detail-lead {
    color: var(--secondary-600);
    line-height: 1.8;
}

.dark .section-heading p {
    color: var(--secondary-300);
}

.section-more {
    flex-shrink: 0;
    color: var(--primary-600);
    font-weight: 800;
}

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

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

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

.movie-card-link {
    display: grid;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--secondary-200), var(--secondary-100));
}

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

.movie-card:hover .movie-poster img,
.mini-card:hover img,
.topic-feature:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

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

.year-badge {
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.28rem 0.58rem;
    background: rgb(16 42 67 / 0.78);
    backdrop-filter: blur(8px);
}

.type-badge {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.28rem 0.58rem;
    background: rgb(0 153 153 / 0.88);
}

.rank-badge {
    top: 0.65rem;
    right: 0.65rem;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    background: var(--accent-500);
}

.movie-body {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.movie-meta-line {
    color: var(--primary-600);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-body h3 {
    display: -webkit-box;
    overflow: hidden;
    color: var(--secondary-900);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 850;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.15rem;
    color: var(--secondary-600);
    font-size: 0.92rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.is-compact .movie-body p {
    min-height: auto;
}

.horizontal-scroll {
    display: grid;
    grid-auto-columns: minmax(16.5rem, 20rem);
    grid-auto-flow: column;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.2rem 0 1rem;
    scroll-snap-type: x proximity;
}

.horizontal-scroll > * {
    scroll-snap-align: start;
}

.latest-list {
    display: grid;
    gap: 1.2rem;
}

.latest-item {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.latest-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    background: var(--secondary-100);
}

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

.latest-item:hover .latest-thumb img {
    transform: scale(1.06);
}

.new-badge {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.72rem;
    background: var(--accent-500);
}

.latest-body h3 {
    margin: 0.2rem 0 0.55rem;
    color: var(--secondary-900);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 850;
}

.latest-body p {
    color: var(--secondary-600);
    line-height: 1.8;
}

.topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.topic-feature,
.topic-small {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 15rem;
    border-radius: var(--radius-md);
    background: var(--secondary-800);
    color: var(--white);
}

.topic-feature img,
.topic-small img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.topic-feature::after,
.topic-small::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.12) 72%);
}

.topic-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1.4rem;
}

.topic-content span {
    color: var(--primary-400);
    font-size: 0.85rem;
    font-weight: 800;
}

.topic-content h3 {
    margin-top: 0.3rem;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 900;
}

.topic-content p {
    margin-top: 0.5rem;
    color: var(--secondary-200);
    line-height: 1.7;
}

.page-hero {
    padding: 4rem 0 2.2rem;
    background: linear-gradient(135deg, var(--white), var(--primary-50));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    color: var(--secondary-500);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-600);
    font-weight: 700;
}

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

.category-card {
    display: grid;
    gap: 1rem;
    min-height: 13rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--white), var(--primary-50));
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card h2 {
    color: var(--secondary-900);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-card p {
    color: var(--secondary-600);
    line-height: 1.75;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.category-preview span {
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--secondary-600);
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding: 1rem;
    border: 1px solid var(--secondary-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-search {
    display: flex;
    gap: 0.65rem;
}

.filter-search input,
.filter-selects select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--secondary-100);
    border-radius: 0.75rem;
    background: var(--secondary-50);
    color: var(--secondary-800);
    outline: 0;
}

.filter-search input {
    padding: 0.85rem 1rem;
}

.filter-selects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.filter-selects select {
    padding: 0.8rem 0.9rem;
}

.filter-clear {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
}

.empty-state {
    display: none;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--secondary-600);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

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

.rank-list {
    display: grid;
    gap: 1rem;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 7rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rank-number {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--accent-500), #fb923c);
    color: var(--white);
    font-weight: 900;
}

.rank-row img {
    aspect-ratio: 16 / 10;
    height: 5.2rem;
    border-radius: 0.75rem;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rank-info h2 {
    color: var(--secondary-900);
    font-size: 1.15rem;
    font-weight: 850;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.35rem;
    color: var(--secondary-600);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
    color: var(--secondary-500);
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
    color: var(--white);
}

.detail-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--secondary-800);
    box-shadow: var(--shadow-lg);
}

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

.detail-title h1 {
    color: var(--white);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0;
}

.detail-meta span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.12);
    color: var(--secondary-100);
    font-weight: 750;
}

.detail-lead {
    max-width: 58rem;
    color: var(--secondary-200);
    font-size: 1.08rem;
}

.player-section {
    padding: 3rem 0;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgb(0 153 153 / 0.24), rgb(0 0 0 / 0.62));
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-trigger {
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 0.74);
    border-radius: 999px;
    background: rgb(0 153 153 / 0.82);
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1;
    box-shadow: 0 18px 44px rgb(0 0 0 / 0.34);
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.prose-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.prose-card h2 {
    margin-bottom: 0.8rem;
    color: var(--secondary-900);
    font-size: 1.45rem;
    font-weight: 900;
}

.prose-card p {
    color: var(--secondary-700);
    line-height: 1.95;
}

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

.mini-card {
    display: grid;
    gap: 0.55rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.mini-card img {
    aspect-ratio: 16 / 10;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mini-card span,
.mini-card strong {
    padding: 0 0.9rem;
}

.mini-card span {
    color: var(--primary-600);
    font-size: 0.8rem;
    font-weight: 800;
}

.mini-card strong {
    padding-bottom: 0.95rem;
    color: var(--secondary-900);
    line-height: 1.35;
}

.site-footer {
    margin-top: 4rem;
    background: var(--secondary-900);
    color: var(--secondary-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer-logo .brand-text strong {
    color: var(--white);
}

.footer-logo .brand-text em,
.footer-brand p,
.footer-links a,
.footer-bottom {
    color: var(--secondary-300);
}

.footer-brand p {
    max-width: 42rem;
    margin-top: 1rem;
    line-height: 1.8;
}

.site-footer h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 850;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

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

.footer-bottom {
    padding: 1.2rem 1rem 1.6rem;
    border-top: 1px solid rgb(130 154 177 / 0.3);
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

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

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

    .quick-cats-inner {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

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

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .latest-item {
        grid-template-columns: minmax(16rem, 20rem) 1fr;
        align-items: center;
    }

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

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
    }

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

@media (min-width: 1024px) {
    .container-custom {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .header-search {
        display: flex;
    }

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

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

    .topic-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-auto-rows: 15.5rem;
    }

    .topic-feature {
        grid-row: span 2;
        min-height: auto;
    }

    .topic-small {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .hero-slider,
    .hero-content {
        min-height: 680px;
        height: auto;
    }

    .hero-slide::before {
        background: linear-gradient(90deg, rgb(16 42 67 / 0.96), rgb(16 42 67 / 0.72));
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        width: 100%;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .rank-row {
        grid-template-columns: auto 5.5rem 1fr;
        gap: 0.7rem;
    }

    .rank-row img {
        height: 4.6rem;
    }
}
