* {
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --amber: #f59e0b;
    --amber-2: #fbbf24;
    --slate: #111827;
    --slate-2: #1e293b;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

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(--ink);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 34rem), var(--bg);
    line-height: 1.6;
}

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;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(18px);
    color: #ffffff;
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
    font-size: 14px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
    background: var(--amber-2);
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.large-search input,
.filter-toolbar input {
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 999px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 170px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-toolbar input:focus {
    border-color: var(--amber-2);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.20);
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-toolbar button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-btn {
    padding: 10px 18px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.26);
    font-weight: 700;
}

.primary-btn.small {
    padding: 9px 15px;
    font-size: 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.filter-toolbar button:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    padding: 10px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 22px 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

main {
    min-height: 64vh;
}

.hero {
    position: relative;
    min-height: 740px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    padding: 118px max(28px, calc((100vw - 1240px) / 2)) 190px;
}

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

.hero-backdrop,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.06);
}

.hero-backdrop::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 24%, rgba(245, 158, 11, 0.28), transparent 32rem), linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.94));
}

.hero-copy,
.hero-poster,
.hero-controls,
.hero-search-panel,
.hero-strip {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.overview-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #78350f;
    background: rgba(251, 191, 36, 0.92);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 18px;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags,
.detail-tags {
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-size: 12px;
    font-weight: 700;
}

.hero .tag {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.hero-poster span {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-2);
    font-size: 13px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 124px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.32) !important;
}

.hero-dot.active {
    width: 34px !important;
    background: var(--amber-2) !important;
}

.hero-search-panel {
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: min(1100px, calc(100% - 44px));
    transform: translateX(-50%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.hero-search-panel form,
.large-search {
    display: flex;
    gap: 10px;
}

.hero-search-panel input,
.large-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: #ffffff;
    outline: none;
    background: rgba(255, 255, 255, 0.14);
}

.hero-search-panel input::placeholder,
.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.hero-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hero-category-row a {
    padding: 7px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.10);
}

.hero-strip {
    position: absolute;
    right: max(28px, calc((100vw - 1240px) / 2));
    bottom: 116px;
    display: grid;
    gap: 10px;
    width: 240px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(12px);
}

.hero-thumb.active {
    color: #111827;
    background: var(--amber-2);
}

.hero-thumb img {
    width: 46px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 76px 22px;
}

.content-section + .content-section {
    padding-top: 30px;
}

.dark-section {
    max-width: none;
    padding-left: max(22px, calc((100vw - 1240px) / 2));
    padding-right: max(22px, calc((100vw - 1240px) / 2));
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.70);
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-toolbar input {
    min-width: min(320px, 100%);
    padding: 11px 16px;
    background: #ffffff;
}

.filter-toolbar button {
    padding: 9px 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--line);
}

.filter-toolbar button.active {
    color: #111827;
    background: var(--amber-2);
    border-color: transparent;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #111827;
    background: var(--amber-2);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

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

.movie-card p {
    margin: 0 0 12px;
    min-height: 46px;
    color: var(--muted);
    font-size: 14px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.text-link {
    color: #b45309;
    font-weight: 800;
}

.score {
    padding: 4px 8px;
    border-radius: 999px;
    color: #78350f;
    background: rgba(245, 158, 11, 0.14);
    font-size: 12px;
    font-weight: 900;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-item span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #111827;
    background: var(--amber-2);
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item strong {
    line-height: 1.25;
}

.rank-item em {
    color: rgba(255, 255, 255, 0.58);
    font-style: normal;
    font-size: 13px;
}

.dark-section .movie-card {
    color: var(--ink);
}

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

.category-card,
.overview-card,
.story-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.category-card {
    min-height: 230px;
    padding: 22px;
}

.category-card span,
.category-card strong,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    color: #b45309;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.category-card p {
    max-width: 320px;
    color: var(--muted);
}

.category-covers {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: end;
}

.category-covers img {
    width: 64px;
    height: 88px;
    margin-left: -18px;
    border: 3px solid #ffffff;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 110px max(22px, calc((100vw - 1240px) / 2)) 76px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b 60%, #78350f);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 18%, rgba(245, 158, 11, 0.34), transparent 26rem), radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.16), transparent 22rem);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.page-hero h1 {
    margin-top: 18px;
}

.page-hero p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.74);
}

.large-search {
    margin-top: 28px;
    max-width: 680px;
}

.overview-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.overview-card h2 {
    margin: 12px 0 8px;
    font-size: 26px;
}

.overview-card p {
    margin: 0;
    color: var(--muted);
}

.overview-links {
    display: grid;
    gap: 8px;
}

.overview-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.overview-links span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.34)), var(--detail-image);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 96px 22px 72px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    padding: 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
}

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

.detail-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.10);
}

.player-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 22px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-cover.hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-2);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
    font-size: 25px;
}

.play-cover strong {
    max-width: min(680px, 86%);
    text-align: center;
    font-size: clamp(22px, 4vw, 42px);
    line-height: 1.15;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.site-footer {
    margin-top: 56px;
    color: rgba(255, 255, 255, 0.74);
    background: #0f172a;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 22px 34px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    max-width: 460px;
}

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

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--amber-2);
}

.copyright {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 22px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search,
    .hero-strip {
        display: none;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding-bottom: 220px;
    }

    .hero-poster {
        justify-self: start;
        width: 230px;
        transform: none;
    }

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

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

    .rank-feature {
        max-width: 420px;
    }
}

@media (max-width: 820px) {
    .hero {
        min-height: 780px;
    }

    .hero-slide {
        padding-top: 96px;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 58px);
    }

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

    .hero-controls {
        bottom: 150px;
    }

    .hero-search-panel form,
    .large-search {
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 34px 52px 1fr;
    }

    .rank-item em {
        display: none;
    }

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

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

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

@media (max-width: 560px) {
    .nav-shell {
        padding: 0 16px;
    }

    .logo,
    .footer-logo {
        font-size: 18px;
    }

    .hero {
        min-height: 830px;
    }

    .hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .primary-btn,
    .ghost-btn {
        text-align: center;
    }

    .hero-search-panel {
        width: calc(100% - 28px);
        border-radius: 22px;
    }

    .content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .player-section,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }
}
