:root {
    --bg: #f7faf9;
    --paper: #ffffff;
    --ink: #101827;
    --muted: #667085;
    --soft: #e6f7f2;
    --line: #e5e7eb;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --teal: #0f766e;
    --orange: #f97316;
    --radius: 24px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 16px 32px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #f0fdfa 100%);
    color: var(--ink);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
    transition: transform 0.25s ease;
}

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

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 19px;
    letter-spacing: 0.02em;
}

.brand-copy small,
.footer-brand small {
    color: currentColor;
    opacity: 0.7;
    font-size: 12px;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: currentColor;
    opacity: 0.88;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.16);
}

.nav-search {
    display: flex;
    align-items: center;
    width: 300px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .nav-search {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.nav-search input,
.mobile-panel input,
.wide-search input,
.filter-search input,
.search-page-form input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
}

.nav-search input {
    flex: 1;
    padding: 9px 12px;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder {
    color: currentColor;
    opacity: 0.58;
}

.nav-search button,
.mobile-panel button,
.wide-search button,
.filter-search button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    padding: 9px 16px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.wide-search button:hover,
.filter-search button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: currentColor;
    cursor: pointer;
    padding: 10px;
}

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

.mobile-panel {
    display: none;
    padding: 16px 24px 24px;
    background: #ffffff;
    color: var(--ink);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 650;
}

.mobile-panel a:hover {
    background: #f3f4f6;
}

.mobile-panel form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 999px;
}

.mobile-panel input {
    flex: 1;
    padding: 10px 12px;
}

.hero {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    background: #020617;
    color: #ffffff;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 4s ease;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.1) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.1) 54%, rgba(2, 6, 23, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 120px 24px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.06em;
}

.eyebrow.dark {
    background: #d1fae5;
    color: #047857;
}

.hero h1,
.page-hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.detail-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 760;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.detail-actions button:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    padding: 14px 26px;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.28);
}

.ghost-btn,
.detail-actions button:last-child {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 14px 24px;
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.detail-actions button:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: transparent;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 74px;
    background: var(--emerald);
}

.section-block,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section-block.tight {
    padding-top: 34px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading.center {
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2 {
    margin: 14px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.8;
    margin: 16px 0 0;
}

.section-heading.light {
    color: #ffffff;
}

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

.section-link {
    color: var(--emerald-dark);
    background: #ecfdf5;
    padding: 11px 18px;
}

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

.wide-search {
    max-width: 800px;
    margin: 28px auto 0;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
}

.wide-search input {
    flex: 1;
    padding: 14px 18px;
    color: var(--ink);
}

.wide-search button {
    padding-left: 24px;
    padding-right: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.movie-card:not(.compact) .poster-link {
    aspect-ratio: 16 / 10;
}

.poster-link img,
.rank-cover img,
.side-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img,
.rank-row:hover .rank-cover img,
.side-poster:hover img {
    transform: scale(1.1);
}

.poster-link::after,
.rank-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 55%);
    opacity: 0.86;
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--emerald-dark);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 14px;
    top: 14px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), #dc2626);
}

.card-body {
    padding: 20px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.card-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #047857;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 650;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a {
    transition: color 0.25s ease;
}

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

.movie-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
}

.ranking-strip,
.dark-panel {
    margin: 40px 0;
    padding: 70px 24px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.34), transparent 32%), linear-gradient(135deg, #111827, #0f172a 55%, #042f2e);
}

.ranking-strip .section-heading,
.dark-panel .section-heading,
.ranking-strip .rank-list,
.dark-panel .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.rank-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-cover {
    position: relative;
    width: 138px;
    min-height: 96px;
    flex: 0 0 138px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.hot-index {
    position: absolute;
    z-index: 3;
    left: 8px;
    top: 8px;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), #dc2626);
}

.rank-info {
    min-width: 0;
    padding: 4px 4px 4px 0;
}

.rank-title {
    display: block;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

.rank-row:hover .rank-title {
    color: var(--emerald-dark);
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card {
    border-radius: var(--radius);
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.tile-covers img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.category-tile span {
    display: block;
    font-weight: 850;
    font-size: 20px;
    margin-bottom: 8px;
}

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

.page-main {
    padding-top: 32px;
}

.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    margin: -32px -24px 50px;
    padding: 110px 24px 70px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.34), transparent 35%), linear-gradient(135deg, #0f172a, #111827 56%, #064e3b);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.page-hero.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.36;
    filter: saturate(1.08);
}

.page-hero.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.44));
}

.category-overview-card {
    margin-bottom: 28px;
}

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

.category-overview-head h2 {
    max-width: 780px;
    margin: 12px 0 0;
    line-height: 1.45;
    font-size: 24px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.filter-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.filter-search input {
    flex: 1;
    padding: 12px 14px;
    color: var(--ink);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    color: #374151;
    background: #f3f4f6;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    transform: translateY(-1px);
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 30px;
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.empty-state.show {
    display: block;
}

.detail-main {
    padding-top: 34px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--emerald-dark);
}

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

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.side-box,
.side-poster {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-card {
    background: #020617;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.45));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--emerald-dark);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

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

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.detail-line {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: #64748b;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.detail-actions button:last-child {
    color: #334155;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.prose-card h2,
.side-box h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.prose-card p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.95;
    font-size: 17px;
}

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 98px;
}

.side-poster {
    aspect-ratio: 3 / 4;
}

.side-box {
    padding: 22px;
}

.side-list .rank-row {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.side-list .rank-cover {
    width: 108px;
    flex-basis: 108px;
}

.side-list .rank-meta {
    display: none;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #020617);
    padding: 56px 24px 24px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 34px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 34px auto 0;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

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

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

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

    .nav-wrap {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .hero {
        min-height: 74vh;
    }

    .hero-content {
        padding: 96px 18px 82px;
    }

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

    .section-block,
    .page-main,
    .detail-main {
        padding: 46px 18px;
    }

    .section-heading.split,
    .category-overview-head {
        display: grid;
        align-items: start;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .rank-list.two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-cover {
        width: 112px;
        flex-basis: 112px;
    }

    .wide-search,
    .filter-search {
        border-radius: 22px;
        flex-direction: column;
    }

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

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

@media (max-width: 560px) {
    .brand-copy small {
        display: none;
    }

    .hero-meta span:nth-child(n + 3) {
        display: none;
    }

    .hero-actions,
    .detail-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn,
    .detail-actions button {
        flex: 1;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-dots button {
        width: 28px;
    }

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

    .rank-list.two-column,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-cover {
        width: 96px;
        flex-basis: 96px;
    }

    .page-hero {
        margin-left: -18px;
        margin-right: -18px;
        padding-top: 92px;
    }

    .detail-card,
    .side-box {
        padding: 20px;
    }

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