:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --green: #16a34a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.brand-name {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #374151;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--orange);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--orange-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #fff7ed;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.1);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(105deg, rgba(249, 115, 22, 0.92) 0%, rgba(239, 68, 68, 0.78) 45%, rgba(17, 24, 39, 0.75) 100%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    min-height: 640px;
    padding: 76px 0 86px;
}

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

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-kicker span,
.search-tags a,
.tag-row span,
.side-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

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

.hero-copy p {
    margin: 0;
    max-width: 720px;
    color: #fff7ed;
    font-size: clamp(18px, 2.4vw, 25px);
}

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

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

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

.btn-light {
    color: var(--orange-dark);
    background: var(--white);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.36);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 14px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

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

.hero-controls button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-controls button.is-active {
    width: 54px;
    background: var(--white);
}

.home-search {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.search-panel {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-panel form,
.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    background: var(--white);
}

.search-panel 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.12);
}

.search-panel button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
    cursor: pointer;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

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

.section {
    padding: 64px 0;
}

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

.browse-section {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}

.latest-section {
    background: #f3f4f6;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.feature-stack {
    display: grid;
    gap: 24px;
}

.feature-card {
    position: relative;
    min-height: 230px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.feature-card-large {
    min-height: 484px;
}

.feature-card a,
.feature-card img,
.feature-overlay {
    position: absolute;
    inset: 0;
}

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

.feature-card:hover img {
    transform: scale(1.06);
}

.feature-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1), transparent);
}

.feature-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: var(--white);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-tags span,
.movie-card-badges span {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.82);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.feature-tags span:first-child,
.movie-card-badges span:first-child {
    background: var(--orange);
}

.feature-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

.feature-title-large {
    font-size: 32px !important;
}

.feature-content p,
.feature-meta {
    color: #e5e7eb;
}

.feature-content p {
    margin: 0 0 10px;
}

.feature-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.today-grid,
.hot-grid,
.card-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.today-card,
.movie-card,
.year-panel,
.category-overview-card,
.detail-card,
.side-card,
.player-card {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.today-card {
    padding: 18px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.today-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.today-card div:first-child {
    position: relative;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
}

.today-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.today-card:hover img {
    transform: scale(1.06);
}

.today-card div:first-child span {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    background: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.today-card h3,
.movie-card h3,
.mini-card h3,
.related-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.today-card h3 {
    min-height: 52px;
    margin: 0 0 8px;
    font-size: 18px;
}

.today-card p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.today-card footer,
.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-cover {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #111827;
}

.movie-card-small .movie-card-cover {
    height: 205px;
}

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

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

.movie-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.movie-card-badges {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

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

.movie-card h3 {
    min-height: 50px;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange-dark);
}

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

.region-list {
    display: grid;
    gap: 34px;
}

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

.region-head h3 {
    margin: 0 0 4px;
    font-size: 24px;
}

.region-head p {
    margin: 0;
    color: var(--muted);
}

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

.year-panel {
    padding: 24px;
}

.year-panel h3 {
    margin: 0 0 18px;
    color: var(--purple);
    font-size: 26px;
}

.mini-card + .mini-card {
    margin-top: 12px;
}

.mini-card a,
.related-card a {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    background: #f9fafb;
    overflow: hidden;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mini-card a:hover,
.related-card a:hover {
    background: #fff7ed;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.12);
}

.mini-card img,
.related-card img {
    width: 112px;
    height: 82px;
    object-fit: cover;
}

.mini-card h3,
.related-card h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.mini-card p,
.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.latest-tile {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #111827;
}

.latest-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.latest-tile:hover img {
    transform: scale(1.1);
}

.latest-tile span {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 8px 8px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.page-hero {
    color: var(--white);
    padding: 64px 0;
}

.page-hero-orange {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, var(--orange), var(--red));
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

.filter-panel {
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.empty-state {
    display: none;
    padding: 44px 18px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

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

.category-overview-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 180px;
    background: #111827;
}

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

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0 0 6px;
}

.category-overview-body p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-overview-body span {
    color: var(--orange-dark);
    font-weight: 900;
}

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

.ranking-row a {
    display: grid;
    grid-template-columns: 70px 96px 1fr 86px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ranking-row strong {
    color: var(--orange-dark);
    font-size: 28px;
    font-style: italic;
}

.ranking-row img {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0 0 4px;
    color: var(--muted);
}

.ranking-row span {
    color: #9ca3af;
    font-size: 13px;
}

.ranking-row em {
    color: #f59e0b;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.detail-page {
    padding: 36px 0 70px;
    background: #f9fafb;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
    font-size: 34px;
    transform: translateX(3px);
}

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

.detail-card {
    padding: 26px;
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row,
.side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-row span,
.side-tags span {
    padding: 6px 10px;
    color: var(--orange-dark);
    background: #fff7ed;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}

.detail-one-line {
    margin: 0 0 16px;
    color: #374151;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--muted);
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f3f4f6;
}

.detail-text {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.detail-text h2,
.related-section h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-text p {
    margin: 0 0 22px;
    color: #374151;
}

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

.detail-sidebar {
    min-width: 0;
}

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

.side-poster {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 18px;
}

.side-card dl {
    display: grid;
    gap: 13px;
    margin: 0 0 18px;
}

.side-card dt {
    color: var(--muted);
    font-size: 13px;
}

.side-card dd {
    margin: 2px 0 0;
    font-weight: 900;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    max-width: 480px;
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 620px;
        gap: 30px;
        padding-top: 58px;
    }

    .hero-poster {
        display: none;
    }

    .feature-grid,
    .year-grid,
    .detail-grid,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .sticky-card {
        position: static;
    }
}

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

    .brand-name {
        font-size: 18px;
    }

    .hero-slider,
    .hero-content {
        min-height: 590px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

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

    .section {
        padding: 44px 0;
    }

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

    .card-grid,
    .card-grid-four,
    .category-grid,
    .search-grid,
    .hot-grid,
    .today-grid,
    .latest-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-cover,
    .movie-card-small .movie-card-cover {
        height: 190px;
    }

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

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

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

    .feature-card,
    .feature-card-large {
        min-height: 260px;
    }

    .ranking-row a {
        grid-template-columns: 46px 78px 1fr;
        gap: 12px;
    }

    .ranking-row img {
        width: 78px;
        height: 68px;
    }

    .ranking-row em {
        grid-column: 3;
        text-align: left;
    }

    .detail-card {
        padding: 18px;
    }

    .player-overlay span {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .mini-card a,
    .related-card a {
        grid-template-columns: 86px 1fr;
    }

    .mini-card img,
    .related-card img {
        width: 86px;
        height: 76px;
    }
}
