:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-strong: #ffffff;
    --text: #451a03;
    --muted: #92400e;
    --line: rgba(217, 119, 6, 0.18);
    --brand: #d97706;
    --brand-strong: #b45309;
    --accent: #f97316;
    --dark: #1c1207;
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

img.is-missing {
    opacity: 0;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.34);
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    color: #78350f;
}

.brand-text em {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--brand-strong);
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    font-size: 15px;
    color: #78350f;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent);
    transform: translateY(-1px);
}

.sub-link {
    color: #a16207;
    font-size: 14px;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.toolbar input {
    border: 1px solid rgba(217, 119, 6, 0.28);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
    width: 180px;
}

.top-search input:focus,
.mobile-search input:focus,
.toolbar input:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.rank-action,
.filter-tabs button,
.section-more,
.text-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-btn,
.rank-action {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.top-search button,
.mobile-search button {
    padding: 10px 16px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
}

.ghost-btn {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 119, 6, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover,
.top-search button:hover,
.mobile-search button:hover,
.filter-tabs button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.18);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #78350f;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 20px 20px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    padding: 11px 12px;
    border-radius: 14px;
    color: #78350f;
    font-weight: 800;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: #fef3c7;
    color: var(--accent);
}

main {
    min-height: 62vh;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #1c1207;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 18, 7, 0.92), rgba(28, 18, 7, 0.58), rgba(28, 18, 7, 0.2)),
        linear-gradient(180deg, rgba(28, 18, 7, 0.2), rgba(28, 18, 7, 0.88)),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-bg::after,
.ranking-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.33), transparent 18rem),
        radial-gradient(circle at 78% 72%, rgba(249, 115, 22, 0.24), transparent 22rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    min-height: 680px;
    margin: 0 auto;
    padding: 110px 20px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 360px;
    gap: 54px;
    align-items: center;
}

.hero-copy {
    color: #fff7ed;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    font-size: 18px;
    color: rgba(255, 247, 237, 0.84);
}

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

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
    border: 1px solid rgba(217, 119, 6, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.hero-copy .pill {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    z-index: 2;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.hero-controls button {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: transparent;
}

.hero-controls > button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-controls > button:hover {
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.is-active {
    width: 24px;
    background: #f59e0b !important;
}

.page-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 20px 0;
}

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

.section-head h2 {
    margin: 0;
    color: #78350f;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 10px 0 0;
    max-width: 650px;
    color: var(--muted);
}

.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-strong);
    font-weight: 900;
}

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 10rem),
        rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: #78350f;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(249, 115, 22, 0.18)),
        #fde68a;
}

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 34%, rgba(0, 0, 0, 0.15));
    opacity: 0.75;
}

.movie-card:hover .poster-frame img,
.category-preview:hover img {
    transform: scale(1.06);
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta span:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.42);
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #451a03;
    font-size: 18px;
    line-height: 1.25;
}

.movie-info h3 a:hover,
.rank-main h3 a:hover,
.category-card-large h2 a:hover {
    color: var(--accent);
}

.movie-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: auto;
    margin-bottom: 12px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 360px;
    gap: 28px;
}

.glow-panel,
.side-card,
.detail-block,
.category-card-large {
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.25), transparent 14rem),
        rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.glow-panel {
    align-self: start;
    padding: 28px;
    position: sticky;
    top: 96px;
}

.glow-panel h2 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
}

.glow-panel p {
    color: var(--muted);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.rank-cover {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #fde68a;
}

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

.rank-main h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.rank-main p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.rank-action {
    padding: 10px 16px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.toolbar input {
    width: min(420px, 100%);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-tabs button {
    padding: 9px 13px;
    color: #92400e;
    background: #fef3c7;
}

.filter-tabs button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.sub-hero,
.detail-hero {
    position: relative;
    max-width: var(--container);
    margin: 38px auto 0;
    padding: 64px 20px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 18rem),
        linear-gradient(135deg, #78350f, #1c1207);
    color: #fff7ed;
    box-shadow: var(--shadow);
}

.sub-hero {
    padding-left: clamp(24px, 6vw, 72px);
    padding-right: clamp(24px, 6vw, 72px);
}

.ranking-hero {
    background:
        linear-gradient(90deg, rgba(28, 18, 7, 0.92), rgba(28, 18, 7, 0.62)),
        var(--hero-image) center / cover no-repeat;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    min-height: 220px;
}

.category-preview img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
    border-radius: 16px;
    background: #fde68a;
    transition: transform 0.35s ease;
}

.category-card-large h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.1;
}

.category-card-large p {
    color: var(--muted);
}

.breadcrumb {
    max-width: var(--container);
    margin: 28px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.detail-copy p {
    color: rgba(255, 247, 237, 0.82);
}

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

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #fbbf24;
    font-size: 12px;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #fff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.26), transparent 16rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.38);
    font-size: 30px;
    padding-left: 5px;
}

.player-overlay strong {
    font-size: 20px;
}

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

.detail-block {
    padding: 28px;
    margin-bottom: 22px;
}

.detail-block h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.15;
}

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

.side-card {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 96px;
}

.side-card dl {
    margin: 0;
}

.side-card dt {
    margin-top: 14px;
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
}

.side-card dd {
    margin: 4px 0 0;
    color: #451a03;
    font-weight: 800;
}

.side-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.88), rgba(254, 243, 199, 0.88));
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 28px;
    color: var(--muted);
}

.footer-inner p {
    max-width: 420px;
}

.footer-links,
.footer-cats {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a,
.footer-cats a {
    color: #78350f;
    font-weight: 800;
}

.footer-links a:hover,
.footer-cats a:hover {
    color: var(--accent);
}

[data-hidden="true"] {
    display: none !important;
}

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

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

@media (max-width: 980px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 96px 20px 116px;
    }

    .hero-poster {
        max-width: 280px;
        transform: rotate(0deg);
    }

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

    .split-section,
    .detail-layout,
    .detail-hero,
    .category-overview,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .glow-panel,
    .side-card {
        position: static;
    }

    .category-card-large {
        grid-template-columns: 160px minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        min-height: 64px;
        padding: 0 14px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero-copy h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

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

    .hero-content {
        padding-top: 76px;
    }

    .hero-controls {
        bottom: 22px;
    }

    .page-section {
        padding-top: 52px;
    }

    .section-head,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: flex-start;
    }

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

    .rank-row {
        grid-template-columns: 38px 72px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / -1;
        justify-content: center;
        text-align: center;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .category-preview {
        min-height: 180px;
    }

    .detail-hero,
    .sub-hero {
        margin-top: 20px;
        border-radius: 24px;
        padding: 36px 18px;
    }

    .detail-poster {
        max-width: 230px;
    }

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

    .player-shell {
        border-radius: 20px;
    }
}
