:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-300: #d1d5db;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.14);
    --shadow-hover: 0 28px 70px rgba(17, 24, 39, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 38%, #ffffff);
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.45rem;
    color: #8a3b12;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
    font-size: 0.84rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-weight: 650;
    color: var(--gray-700);
}

.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--orange-600);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #8a3b12;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #d97706, var(--orange-500), var(--red-500));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.75s ease;
    background-image: var(--hero-image), linear-gradient(135deg, #d97706, var(--orange-500), var(--red-500));
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.hero-shade,
.page-hero::before,
.detail-hero::before {
    position: absolute;
    content: "";
    inset: 0;
    background: radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.20), transparent 30%), linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(124, 45, 18, 0.54), rgba(15, 23, 42, 0.42));
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 8px;
    max-width: 780px;
    font-size: clamp(2.55rem, 7vw, 5.25rem);
    line-height: 1.03;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
}

.hero-title-alt {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--amber-100);
}

.hero-copy > p:last-of-type {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    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: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 22px 46px rgba(249, 115, 22, 0.44);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.7rem;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.home-search {
    margin-top: -34px;
    position: relative;
    z-index: 10;
}

.search-panel {
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel form,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 16px;
    padding: 0 18px;
    background: #fffaf5;
    font-size: 1rem;
    outline: none;
}

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

.search-panel button {
    min-width: 128px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    font-weight: 800;
    cursor: pointer;
}

.stats-section,
.section {
    padding: 72px 0;
}

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

.stat-card {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.stat-card b {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card span {
    color: var(--gray-600);
}

.stat-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #1e3a8a;
}

.stat-green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    color: #14532d;
}

.stat-amber {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
}

.stat-rose {
    background: linear-gradient(135deg, #fff1f2, #fce7f3);
    color: #9f1239;
}

.soft-bg {
    background: linear-gradient(180deg, var(--amber-50), #ffffff);
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

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

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

.compact-grid,
.preview-grid,
.related-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    font-size: 3rem;
    transition: opacity 0.25s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.movie-row h2 a:hover {
    color: var(--orange-600);
}

.movie-meta,
.muted {
    color: var(--gray-600);
}

.movie-meta {
    margin: 0 0 8px;
    font-size: 0.92rem;
}

.movie-line {
    margin: 0 0 12px;
    color: var(--gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-line span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-line span {
    padding: 4px 8px;
}

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

.category-tile {
    min-height: 246px;
    border-radius: 24px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.16);
}

.category-orb {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa, var(--orange-500));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.22);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.category-tile p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
}

.mini-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mini-links a {
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(180deg, var(--slate-900), #020617);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
    margin: 0 0 18px;
}

.ranking-panel ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.ranking-panel li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-no {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    font-weight: 900;
}

.ranking-panel small {
    color: rgba(255, 255, 255, 0.62);
}

.text-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--amber-300);
    font-weight: 800;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-cloud a {
    padding: 10px 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tag-cloud a:hover {
    transform: translateY(-2px);
    background: #ffedd5;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: var(--page-image), linear-gradient(135deg, #d97706, var(--orange-500), var(--red-500));
    background-size: cover;
    background-position: center;
}

.page-hero .container {
    position: relative;
    padding: 88px 0;
}

.small-hero .container {
    padding: 76px 0;
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
}

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

.page-hero-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-bar {
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.advanced-filter {
    grid-template-columns: minmax(0, 1fr) 240px;
}

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

.category-overview-card {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
}

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

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

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

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

.movie-row {
    display: grid;
    grid-template-columns: 66px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.row-rank {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    font-weight: 900;
}

.row-thumb {
    overflow: hidden;
    border-radius: 14px;
}

.row-thumb img {
    width: 84px;
    height: 112px;
    object-fit: cover;
}

.row-body h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.row-body p {
    margin: 4px 0;
}

.row-action {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange-600);
    font-weight: 800;
}

.detail-hero {
    background-image: var(--detail-image), linear-gradient(135deg, #111827, #7c2d12);
}

.detail-hero-inner {
    position: relative;
    padding: 42px 0 58px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.detail-line {
    max-width: 800px;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.88);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-section {
    background: #ffffff;
}

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

.detail-main,
.detail-side,
.player-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

.detail-main {
    padding: 34px;
}

.detail-main h2,
.detail-side h2,
.player-card h2 {
    margin: 0 0 14px;
    font-size: 1.8rem;
}

.detail-main p {
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: 1.06rem;
}

.player-card {
    padding: 24px;
    margin-top: 8px;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.70));
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--orange-600);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 2.2rem;
    padding-left: 5px;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 26px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--gray-600);
}

.detail-side dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 0;
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-300);
    font-size: 1.25rem;
}

.site-footer p {
    margin: 0;
    color: rgba(209, 213, 219, 0.86);
}

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.22);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(209, 213, 219, 0.68);
}

.search-card.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .movie-grid,
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

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

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

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0 16px;
        border-top: 1px solid rgba(251, 146, 60, 0.25);
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 10px 0;
    }

    .hero-content {
        min-height: 680px;
        padding: 70px 0 110px;
        gap: 28px;
    }

    .hero-poster {
        width: min(260px, 82vw);
        justify-self: center;
        transform: none;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .preview-grid,
    .related-grid,
    .search-grid,
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

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

    .detail-cover {
        width: min(270px, 82vw);
    }

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

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

    .movie-row {
        grid-template-columns: 48px 70px minmax(0, 1fr);
    }

    .row-thumb img {
        width: 70px;
        height: 94px;
    }

    .row-action {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .brand {
        font-size: 1.15rem;
    }

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.45rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .preview-grid,
    .related-grid,
    .search-grid,
    .category-list {
        grid-template-columns: 1fr;
    }

    .detail-main,
    .detail-side,
    .player-card,
    .category-overview-card {
        padding: 20px;
        border-radius: 20px;
    }

    .detail-side dl {
        grid-template-columns: 1fr;
    }
}
