:root {
    color-scheme: light;
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --dark: #020617;
    --slate: #0f172a;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --orange: #f97316;
    --rose: #fb7185;
    --red: #ef4444;
    --card: #ffffff;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    color: #fff;
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-search {
    width: 290px;
    display: flex;
    align-items: center;
    background: rgba(51, 65, 85, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 5px;
}

.nav-search input,
.mobile-panel input,
.inline-filter input,
.local-search,
.local-tools select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
}

.nav-search input {
    color: #fff;
    padding: 8px 12px;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.nav-search button,
.inline-filter button,
.hero-search-card button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--red), var(--orange));
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-panel form {
    margin-bottom: 12px;
    background: rgba(51, 65, 85, 0.95);
    border-radius: 18px;
    padding: 12px 14px;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.home-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.32), transparent 34%), linear-gradient(135deg, #020617, #0f172a 45%, #0e7490);
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78), rgba(8, 145, 178, 0.36)), var(--poster-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.08) 54%, rgba(2, 6, 23, 0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin-left: max(24px, calc((100% - 1280px) / 2));
    padding-top: 110px;
}

.hero-kicker,
.page-hero span,
.section-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 14px 0 16px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #a5f3fc, #dbeafe, #fff7ed);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-content p {
    margin: 0;
    max-width: 700px;
    font-size: clamp(17px, 2vw, 23px);
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags {
    margin: 22px 0 0;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.btn-primary,
.btn-ghost,
.btn-plain,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-plain {
    color: #67e8f9;
}

.btn-primary:hover,
.btn-ghost:hover,
.section-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

.hero-panel {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100% - 1280px) / 2));
    top: 106px;
    width: 360px;
    display: grid;
    gap: 18px;
}

.hero-search-card,
.hero-rail,
.player-card,
.story-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(20px);
}

.hero-search-card {
    padding: 20px;
}

.hero-search-card strong {
    display: block;
    margin-bottom: 14px;
    font-size: 20px;
}

.hero-search-card form,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px;
}

.hero-search-card input,
.inline-filter input {
    padding: 9px 12px;
}

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

.hero-chip-row a {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

.hero-rail {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.hero-rail-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-rail-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.hero-rail-card span,
.poster-thumb {
    width: 72px;
    height: 48px;
    border-radius: 14px;
    background-image: linear-gradient(135deg, rgba(2, 6, 23, 0.15), rgba(6, 182, 212, 0.25)), var(--poster-image);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-rail-card strong {
    display: block;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-rail-card em {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: max(24px, calc((100% - 1280px) / 2));
    bottom: 46px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: #67e8f9;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.soft-section {
    width: 100%;
    padding-inline: max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.rank-section {
    padding-top: 58px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-head p,
.category-card p,
.story-card p {
    margin: 9px 0 0;
    color: var(--muted);
}

.section-action {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-surface {
    position: relative;
    display: block;
    min-height: 170px;
    background-image: linear-gradient(160deg, rgba(15, 23, 42, 0.25), rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.55)), var(--poster-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.movie-card .poster-surface::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.6), transparent 55%);
    opacity: 0.82;
}

.year-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
    backdrop-filter: blur(8px);
}

.year-badge {
    right: 12px;
    background: rgba(2, 6, 23, 0.62);
}

.rank-mark {
    left: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.82);
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.play-dot.large {
    width: 70px;
    height: 70px;
    font-size: 22px;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card-body strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body em {
    min-height: 46px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.meta-line span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    background: #f1f5f9;
    padding: 4px 8px;
}

.tag-row span {
    color: #0e7490;
    background: #ecfeff;
    padding: 5px 8px;
}

.compact-card .poster-surface {
    min-height: 140px;
}

.compact-card .movie-card-body strong {
    font-size: 16px;
}

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

.category-card {
    min-height: 170px;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 40%), linear-gradient(135deg, #0f172a, #155e75 55%, #0891b2);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 40%), linear-gradient(135deg, #7f1d1d, #ea580c 55%, #f97316);
}

.category-card:nth-child(3n) {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 40%), linear-gradient(135deg, #312e81, #7c3aed 55%, #c026d3);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.category-card span {
    display: block;
    font-size: 23px;
    font-weight: 950;
    margin-bottom: 10px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.78);
}

.category-card b {
    display: inline-flex;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 12px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 38%), linear-gradient(135deg, #020617, #0f172a 52%, #0e7490);
}

.page-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.slim-hero > div {
    padding: 70px 0;
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

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

.category-hero,
.rank-hero,
.search-hero {
    background: radial-gradient(circle at top right, rgba(251, 113, 133, 0.26), transparent 35%), linear-gradient(135deg, #0f172a, #155e75 48%, #0e7490);
}

.inline-filter {
    max-width: 540px;
    margin-top: 24px;
}

.local-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.local-search,
.local-tools select {
    min-height: 46px;
    padding: 0 16px;
    color: var(--ink);
    background: #f8fafc;
}

.local-tools select {
    max-width: 170px;
    cursor: pointer;
}

.empty-state {
    display: none;
    text-align: center;
    margin: 36px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 48px 84px 1fr auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.ranking-copy {
    min-width: 0;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy strong {
    font-size: 17px;
    font-weight: 900;
}

.ranking-copy em,
.ranking-copy span {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.ranking-heat {
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    padding: 6px 10px;
    font-weight: 950;
}

.detail-hero {
    min-height: 590px;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.92)), var(--poster-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.22), transparent 36%), linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 60%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin-bottom: 34px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    min-height: 460px;
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.55);
}

.detail-info h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
}

.detail-info p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

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

.player-card,
.story-card {
    grid-column: 1;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    padding: 22px;
    box-shadow: var(--shadow);
}

.story-card {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.compact-head {
    margin-bottom: 18px;
}

.compact-head h2 {
    font-size: 26px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    text-align: center;
    cursor: pointer;
    color: #fff;
    background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.32)), var(--poster-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 3;
}

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

.play-cover button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    cursor: pointer;
}

.play-cover strong {
    max-width: 80%;
    font-size: 22px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.story-card h2 {
    font-size: 25px;
    margin-top: 0;
}

.story-card h2 + p {
    margin-bottom: 28px;
}

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

.detail-nav a {
    border-radius: 18px;
    background: #fff;
    color: #0e7490;
    padding: 16px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: rgba(255, 255, 255, 0.76);
}

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 28px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
}

.footer-brand {
    color: #fff;
}

.footer-shell p {
    max-width: 460px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    font-weight: 800;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.52);
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-panel {
        position: relative;
        right: auto;
        top: auto;
        width: min(720px, calc(100% - 32px));
        margin: 36px auto 56px;
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 18px;
    }

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

    .hero-content {
        width: min(900px, calc(100% - 32px));
        margin: 0 auto;
    }

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

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

    .story-card {
        grid-column: auto;
        grid-row: auto;
    }

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

@media (max-width: 760px) {
    .nav-shell,
    .content-section,
    .page-hero > div,
    .detail-shell,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 18px;
    }

    .home-hero {
        min-height: auto;
    }

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

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

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

    .hero-dots {
        bottom: 18px;
    }

    .section-head,
    .local-tools,
    .detail-nav,
    .ranking-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .local-tools select {
        max-width: none;
    }

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

    .ranking-item {
        grid-template-columns: 44px 72px 1fr;
    }

    .ranking-heat {
        justify-self: start;
        grid-column: 3;
    }

    .detail-layout {
        gap: 26px;
    }

    .detail-poster {
        min-height: 360px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
