:root {
    --bg: #f8fafc;
    --text: #1f2937;
    --muted: #64748b;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --red: #dc2626;
    --orange: #f97316;
    --amber: #f59e0b;
    --green: #059669;
    --line: #e2e8f0;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
    transition: transform 0.3s ease;
}

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

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

.brand-text strong {
    font-size: 21px;
    background: linear-gradient(90deg, #f87171, #fb923c);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    color: #94a3b8;
    font-size: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.nav-menu a {
    color: #cbd5e1;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: #fb7185;
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--orange));
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: #334155;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626, #f97316, #f59e0b);
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(194, 65, 12, 0.76), rgba(15, 23, 42, 0.52)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04));
}

.hero-content {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    z-index: 2;
}

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

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 680px;
    font-size: clamp(18px, 2vw, 24px);
    color: #fff7ed;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 26px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    background: #ffffff;
    color: var(--red);
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--red);
    border-color: #fecaca;
    background: #fff1f2;
}

.hero-poster {
    position: relative;
    display: block;
    height: 500px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4);
    transform: rotate(2deg);
    border: 10px solid rgba(255, 255, 255, 0.18);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 999px;
    padding: 10px 14px;
    text-align: center;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 38px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.25s ease, width 0.25s ease;
}

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

.page-section {
    padding: 70px 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.section-heading a {
    color: var(--red);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-thumb img,
.large-image img,
.horizontal-thumb img {
    transition: transform 0.42s ease;
}

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

.badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
}

.badge-year {
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
}

.badge-type {
    right: 12px;
    background: var(--red);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 46px;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

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

.movie-card-body h3 {
    min-height: 48px;
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #1f2937;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

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

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.movie-card-large .movie-card-link {
    position: relative;
    min-height: 340px;
    border-radius: 22px;
}

.large-image {
    position: absolute;
    inset: 0;
}

.large-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.08));
}

.large-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    color: #ffffff;
}

.large-copy h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.large-copy p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #e2e8f0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.large-copy strong {
    color: #fde68a;
    font-size: 13px;
}

.movie-badges,
.inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-badges span,
.inline-badges span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.inline-badges span {
    color: #b91c1c;
    background: #fee2e2;
}

.movie-card-horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    min-height: 210px;
}

.horizontal-thumb {
    position: relative;
    min-height: 210px;
    overflow: hidden;
}

.horizontal-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.horizontal-body h3 {
    min-height: auto;
    -webkit-line-clamp: 1;
}

.horizontal-body .tag-row span {
    color: #475569;
    background: #f1f5f9;
    border-color: #f1f5f9;
}

.soft-section {
    background: #ffffff;
}

.orange-section {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.green-section {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.category-tile,
.category-overview-card {
    display: grid;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: #fb7185;
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: #1f2937;
    font-size: 22px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.category-overview-card {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 0;
}

.category-overview-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
}

.category-overview-card span,
.category-overview-card strong {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 0 22px;
}

.category-overview-card span {
    margin-top: auto;
    font-size: 26px;
    font-weight: 900;
}

.category-overview-card strong {
    padding-bottom: 22px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    color: var(--red);
    font-size: 23px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    height: 86px;
    border-radius: 12px;
}

.rank-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #dc2626, #f97316, #f59e0b);
}

.page-hero h1 {
    max-width: 900px;
    margin: 14px 0 12px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.1;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.56);
}

.list-toolbar,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
    border-radius: 22px;
    background: #ffffff;
    padding: 18px;
    box-shadow: var(--soft-shadow);
}

.list-toolbar label {
    display: grid;
    flex: 1;
    min-width: 220px;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.list-toolbar input,
.list-toolbar select,
.search-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #f8fafc;
    padding: 12px 14px;
}

.list-toolbar input:focus,
.list-toolbar select:focus,
.search-panel input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.search-panel input {
    flex: 1;
    min-width: 240px;
}

.search-panel button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--orange));
    padding: 12px 22px;
    font-weight: 800;
}

.empty-state {
    border-radius: 20px;
    background: #ffffff;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.detail-hero {
    padding: 58px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 12%, rgba(251, 146, 60, 0.35), transparent 26%),
        linear-gradient(135deg, #0f172a, #7f1d1d 48%, #c2410c);
}

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

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    border: 10px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.1;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #ffe4e6;
    font-size: 20px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}

.detail-meta-list div {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    backdrop-filter: blur(12px);
}

.detail-meta-list dt {
    color: #fecaca;
    font-size: 12px;
}

.detail-meta-list dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 850;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.24));
    transition: opacity 0.25s ease;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 45px rgba(220, 38, 38, 0.4);
    font-size: 38px;
    text-indent: 5px;
}

.play-layer strong {
    display: block;
    margin-top: 120px;
    font-size: 18px;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.article-content {
    max-width: 920px;
    padding: 64px 0 20px;
}

.article-content h2 {
    margin: 26px 0 12px;
    color: #1f2937;
    font-size: 28px;
}

.article-content p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.prev-next a {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    color: var(--red);
    padding: 15px 18px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: var(--soft-shadow);
}

.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 54px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 16px;
    font-size: 13px;
}

[hidden],
.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .nav-menu {
        gap: 12px;
    }

    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        background: #1e293b;
        padding: 16px;
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 8px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 70px 0;
    }

    .hero-poster {
        width: min(310px, 80vw);
        height: 420px;
        justify-self: center;
        transform: none;
    }

    .horizontal-grid,
    .rank-list-full,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 140px minmax(0, 1fr);
        min-height: 176px;
    }

    .horizontal-thumb {
        min-height: 176px;
    }

    .detail-cover {
        width: min(320px, 80vw);
        margin: 0 auto;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

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

    .brand-text small {
        display: none;
    }

    .hero-title {
        font-size: 38px;
    }

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

    .hero-actions,
    .detail-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-card-body p {
        display: none;
    }

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 1fr;
    }

    .horizontal-thumb {
        aspect-ratio: 3 / 4;
    }

    .detail-meta-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 36px 58px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-item img {
        height: 76px;
    }
}
