:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-500: #06b6d4;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(20, 184, 166, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.34);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    color: var(--slate-700);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-700);
    background: var(--teal-50);
}

.category-nav {
    color: var(--slate-600);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--teal-50);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 4px;
    background: var(--teal-700);
    border-radius: 2px;
}

.hero {
    position: relative;
    height: min(760px, 78vh);
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 25%, rgba(20, 184, 166, 0.38), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.15) 45%, rgba(15, 23, 42, 0.34) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1240px) / 2 + 24px));
    bottom: 150px;
    max-width: 720px;
    color: white;
}

.hero-kicker,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-kicker span,
.detail-meta span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(20, 184, 166, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.search-panel button,
.side-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-panel button,
.side-cta a {
    color: white;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    box-shadow: 0 14px 32px rgba(20, 184, 166, 0.28);
}

.ghost-button {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.search-panel button:hover,
.side-cta a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 34px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: white;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
}

.hero-search label {
    display: block;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-weight: 700;
}

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

.hero-search input,
.inline-search input,
.search-panel input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    outline: none;
    color: var(--slate-800);
    background: white;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input {
    height: 48px;
    padding: 0 16px;
}

.hero-search input:focus,
.inline-search input:focus,
.search-panel input:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.hero-search button {
    min-width: 110px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--teal-500);
    font-weight: 800;
    cursor: pointer;
}

.hero-search nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.hero-search nav a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 24px;
}

.home-shell {
    display: grid;
    gap: 64px;
}

.section-block {
    margin-bottom: 48px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: var(--slate-900);
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.03em;
}

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

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-200);
}

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

.card-cover img,
.mini-card img,
.rank-item img,
.related-card img,
.topic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .card-cover img,
.mini-card:hover img,
.rank-item:hover img,
.related-card:hover img,
.topic-main:hover img {
    transform: scale(1.06);
}

.card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
    font-size: 34px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-body {
    padding: 16px;
}

.card-meta {
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--teal-700);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span:last-child {
    color: var(--slate-500);
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rail-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.rail-list::-webkit-scrollbar {
    height: 8px;
}

.rail-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--teal-100);
}

.mini-card {
    position: relative;
    flex: 0 0 285px;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    color: white;
    background: var(--slate-900);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
}

.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 65%);
}

.mini-card span,
.mini-card strong {
    position: absolute;
    left: 14px;
    z-index: 1;
}

.mini-card span {
    bottom: 48px;
    color: var(--teal-400);
    font-size: 12px;
    font-weight: 800;
}

.mini-card strong {
    right: 14px;
    bottom: 16px;
    line-height: 1.35;
}

.topic-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.topic-main a {
    position: relative;
    display: block;
    min-height: 430px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-lg);
}

.topic-main a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 70%);
}

.topic-main div {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 1;
}

.topic-main span {
    color: var(--teal-400);
    font-weight: 800;
}

.topic-main h2 {
    margin: 10px 0;
    font-size: 32px;
}

.topic-main p {
    margin: 0;
    color: var(--slate-200);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tinted-block,
.side-cta {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--teal-50), #ecfeff);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.editor-list {
    display: grid;
    gap: 20px;
}

.wide-card .card-link {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
}

.wide-card .card-cover,
.wide-card.poster-card .card-cover {
    aspect-ratio: auto;
    min-height: 210px;
}

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

.category-entry,
.category-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-entry:hover,
.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-entry strong,
.category-panel h2 {
    display: block;
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 22px;
}

.category-entry span,
.category-panel p {
    color: var(--slate-600);
    line-height: 1.65;
}

.page-hero {
    position: relative;
    margin-bottom: 32px;
    padding: 46px;
    border-radius: 30px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.38), transparent 34%),
        linear-gradient(135deg, var(--slate-900), #134e4a 58%, #155e75);
    box-shadow: var(--shadow-lg);
}

.page-hero span {
    color: var(--teal-400);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    margin: 12px 0;
    color: white;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--slate-200);
    line-height: 1.75;
    font-size: 17px;
}

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

.category-panel-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-panel-links a {
    color: var(--slate-700);
    line-height: 1.5;
}

.category-panel-links a:hover {
    color: var(--teal-700);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.category-tabs a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    background: white;
    box-shadow: var(--shadow-sm);
    font-weight: 800;
}

.category-tabs a.active,
.category-tabs a:hover {
    color: white;
    background: var(--teal-600);
}

.inline-search {
    width: min(320px, 100%);
}

.inline-search input,
.search-panel input {
    height: 44px;
    padding: 0 14px;
}

.search-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
}

.search-panel button {
    min-width: 96px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: 18px;
    color: var(--slate-600);
    text-align: center;
    background: white;
    box-shadow: var(--shadow-sm);
}

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

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

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

.rank-item {
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
}

.rank-item a {
    display: grid;
    grid-template-columns: 56px 150px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 128px;
    padding: 14px;
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    font-weight: 900;
}

.rank-item img {
    width: 150px;
    height: 96px;
    border-radius: 14px;
}

.rank-item h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 19px;
}

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

.rank-meta {
    color: var(--teal-700);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--slate-600);
    font-weight: 700;
}

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

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

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

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-lg);
}

.player-box video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-box video {
    z-index: 1;
    background: #020617;
}

.player-cover {
    z-index: 2;
    border: 0;
    cursor: pointer;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.2), transparent 35%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    box-shadow: 0 20px 45px rgba(20, 184, 166, 0.42);
    transform: translate(-50%, -50%);
    font-size: 34px;
    cursor: pointer;
}

.player-box.is-playing .player-cover {
    display: none;
}

.detail-card,
.side-panel {
    padding: 26px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
}

.detail-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 0 0 20px;
    color: var(--slate-600);
    font-size: 18px;
    line-height: 1.75;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 13px;
    font-weight: 700;
}

.article-body h2,
.side-panel h2,
.side-cta h2,
.footer-column h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 22px;
}

.article-body p {
    margin: 0 0 22px;
    color: var(--slate-700);
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 92px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: var(--slate-50);
}

.related-card img {
    width: 118px;
    height: 76px;
    border-radius: 12px;
}

.related-card span {
    color: var(--teal-700);
    font-size: 12px;
    font-weight: 800;
}

.related-card strong {
    display: block;
    margin-top: 6px;
    color: var(--slate-900);
    line-height: 1.45;
}

.side-cta p {
    color: var(--slate-700);
    line-height: 1.7;
}

.side-cta a {
    margin-top: 8px;
}

.site-footer {
    margin-top: 56px;
    color: var(--slate-200);
    background: linear-gradient(135deg, var(--slate-900), #134e4a 62%, #155e75);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
    gap: 34px;
}

.footer-logo {
    color: white;
    font-size: 20px;
}

.footer-brand p {
    max-width: 560px;
    color: var(--slate-300);
    line-height: 1.8;
}

.footer-column h2 {
    color: white;
    font-size: 18px;
}

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

.footer-column a {
    color: var(--slate-300);
}

.footer-column a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--slate-300);
    text-align: center;
}

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

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

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

    .detail-side {
        position: static;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        padding: 10px 0 6px;
        border-top: 1px solid var(--teal-100);
    }

    .nav-menu.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        height: 720px;
        min-height: 720px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 250px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        width: calc(100% - 32px);
    }

    .hero-search div,
    .search-panel,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button {
        height: 46px;
    }

    .feature-grid,
    .poster-grid,
    .large-grid,
    .category-grid,
    .category-panels,
    .compact-rank {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-item a {
        grid-template-columns: 44px 112px 1fr;
        gap: 12px;
    }

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

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

@media (max-width: 540px) {
    .brand-text {
        font-size: 18px;
    }

    .page-shell {
        padding: 28px 16px;
    }

    .hero {
        height: 760px;
        min-height: 760px;
    }

    .hero h1,
    .hero h2 {
        font-size: 40px;
    }

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

    .hero-content {
        bottom: 305px;
    }

    .hero-search nav {
        max-height: 78px;
        overflow: hidden;
    }

    .feature-grid,
    .poster-grid,
    .large-grid,
    .category-grid,
    .category-panels {
        grid-template-columns: 1fr;
    }

    .compact-rank {
        grid-template-columns: 1fr;
    }

    .rank-item a {
        grid-template-columns: 42px 96px 1fr;
    }

    .rank-item img {
        width: 96px;
        height: 66px;
    }

    .page-hero,
    .detail-card,
    .side-panel,
    .side-cta,
    .tinted-block {
        padding: 22px;
        border-radius: 20px;
    }

    .related-card {
        grid-template-columns: 100px 1fr;
    }

    .related-card img {
        width: 100px;
        height: 66px;
    }
}
