:root {
    color-scheme: light;
    --color-primary: #dc2626;
    --color-primary-dark: #991b1b;
    --color-secondary: #f97316;
    --color-accent: #f59e0b;
    --color-blue: #2563eb;
    --color-teal: #0f766e;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f3f4f6;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f9fafb;
    color: var(--color-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    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: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 10px 14px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.hero-slider {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(127, 29, 29, 0.94), rgba(17, 24, 39, 0.72) 52%, rgba(17, 24, 39, 0.36)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.1));
}

.hero-content {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
}

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

.hero-kicker,
.subpage-hero span,
.detail-category {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 22px 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    color: #fcd34d;
}

.hero-copy p {
    max-width: 680px;
    color: #fef3c7;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.7;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ed;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    background: #f3f4f6;
    color: #4b5563;
}

.detail-tags span {
    background: #fee2e2;
    color: #991b1b;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: 0.2s ease;
}

.button-primary {
    background: #ffffff;
    color: #991b1b;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.22);
}

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

.button-ghost {
    border: 2px solid rgba(255, 255, 255, 0.78);
    color: #ffffff;
}

.button-ghost:hover {
    background: #ffffff;
    color: #991b1b;
}

.button-outline {
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-primary);
}

.hero-control-row {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transform: translateX(-50%);
}

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

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

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

.hero-search {
    display: flex;
    width: min(500px, 52vw);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    outline: 0;
}

.hero-search button {
    border: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    padding: 0 20px;
    font-weight: 800;
}

.stats-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -42px;
}

.stats-panel div {
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.stats-panel strong {
    display: block;
    color: var(--color-primary);
    font-size: 30px;
    line-height: 1;
}

.stats-panel span {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
    font-weight: 700;
}

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

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
}

.section-link {
    flex-shrink: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 16px;
    font-weight: 800;
}

.home-band {
    background: #ffffff;
    padding: 10px 0;
}

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

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

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

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

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: 0.22s ease;
}

.movie-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.movie-poster {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111827;
}

.movie-card-compact .movie-poster {
    aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), transparent);
}

.poster-type,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-type {
    left: 12px;
    top: 12px;
    background: rgba(220, 38, 38, 0.95);
    padding: 6px 10px;
}

.poster-year {
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.82);
    padding: 6px 10px;
}

.rank-badge {
    right: 12px;
    top: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

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

.category-tile a {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.42s ease;
}

.category-tile a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.90), rgba(127, 29, 29, 0.32));
}

.category-tile div {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 2;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.category-tile p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #fef3c7;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-tile span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.category-tile a:hover img {
    transform: scale(1.07);
}

.ranking-band {
    background: linear-gradient(135deg, #134e4a, #164e63);
    color: #ffffff;
    padding: 72px 0;
}

.ranking-band .section-heading p {
    color: #ccfbf1;
}

.ranking-band .section-link {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ranking-band-light {
    background: #ffffff;
    color: var(--color-text);
}

.ranking-band-light .section-heading p {
    color: var(--color-muted);
}

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

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

.horizontal-movie a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    border: 1px solid rgba(229, 231, 235, 0.75);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    padding: 14px;
    transition: 0.2s ease;
}

.ranking-band-light .horizontal-movie a,
.side-card .horizontal-movie a,
.home-category-block .horizontal-movie a {
    background: #ffffff;
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.horizontal-movie a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.horizontal-movie img {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
}

.horizontal-movie h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.horizontal-movie p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: currentColor;
    opacity: 0.78;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.horizontal-movie span {
    color: currentColor;
    opacity: 0.70;
    font-size: 12px;
    font-weight: 700;
}

.mini-rank {
    display: grid;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 12px;
    background: var(--color-teal);
    color: #ffffff !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

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

.home-category-block {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.block-title-row,
.category-overview-head,
.detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.block-title-row h2,
.category-overview-head h2 {
    margin: 0;
    font-size: 26px;
}

.block-title-row a {
    color: var(--color-primary);
    font-weight: 800;
}

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

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 58px 0;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.8;
}

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

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

.subpage-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(135deg, #7f1d1d, #111827 62%, #0f172a);
    color: #ffffff;
    padding: 88px 0;
}

.subpage-hero h1 {
    max-width: 820px;
    margin: 20px 0 16px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.subpage-hero p {
    max-width: 760px;
    margin: 0;
    color: #fde68a;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-block {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 20px;
    background: #ffffff;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.tool-panel-large {
    grid-template-columns: minmax(240px, 1fr) 200px 200px;
}

.filter-search,
.filter-select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #f9fafb;
    padding: 13px 14px;
    color: var(--color-text);
    outline: 0;
}

.filter-search:focus,
.filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.filter-item.is-hidden {
    display: none;
}

.breadcrumb-bar {
    border-bottom: 1px solid var(--color-border);
    background: #ffffff;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs strong {
    color: #111827;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.82fr);
    gap: 28px;
    padding: 34px 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.30);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.18));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer span:last-child {
    margin-top: 84px;
    font-size: 16px;
    font-weight: 800;
}

.play-icon {
    position: absolute;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.34);
}

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

.detail-card,
.side-card,
.content-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    align-items: flex-start;
}

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.detail-meta-grid div {
    border-radius: 16px;
    background: #f9fafb;
    padding: 16px;
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-grid strong {
    color: #111827;
    font-size: 15px;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-card {
    padding: 20px;
}

.poster-card img {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    object-fit: cover;
}

.poster-card h2,
.side-card h2 {
    margin: 16px 0 10px;
    font-size: 22px;
}

.poster-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

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

.side-list .horizontal-movie a {
    min-height: 96px;
    padding: 10px;
}

.side-list .horizontal-movie img {
    width: 72px;
    height: 72px;
}

.content-stack {
    display: grid;
    gap: 22px;
}

.content-card {
    padding: 26px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.8;
}

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

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

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

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

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

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

    .mobile-menu-button {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 16px;
    }

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

    .nav-link {
        justify-content: center;
    }

    .hero-slider {
        height: 720px;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 88px;
    }

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

    .hero-search {
        width: 100%;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -28px;
    }

    .section-heading,
    .block-title-row,
    .category-overview-head,
    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-featured,
    .movie-grid-latest,
    .ranking-list,
    .category-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tool-panel,
    .tool-panel-large {
        grid-template-columns: 1fr;
    }

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

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

    .brand-text strong {
        font-size: 18px;
    }

    .hero-slider {
        height: 760px;
    }

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

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

    .stats-panel,
    .movie-grid,
    .movie-grid-featured,
    .movie-grid-latest,
    .ranking-list,
    .category-preview-grid,
    .category-grid,
    .detail-sidebar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-tile a {
        min-height: 190px;
    }

    .horizontal-movie a {
        align-items: flex-start;
    }

    .horizontal-movie img {
        width: 74px;
        height: 74px;
    }

    .detail-card,
    .side-card,
    .content-card,
    .category-overview-block,
    .home-category-block {
        border-radius: 18px;
        padding: 18px;
    }

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