:root {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-soft: #111827;
    --panel: rgba(31, 41, 55, 0.72);
    --panel-solid: #1f2937;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --amber-light: #fcd34d;
    --red: #7f1d1d;
    --orange: #9a3412;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 30%), linear-gradient(180deg, #111827 0%, #0b1020 52%, #030712 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(127, 29, 29, 0.96), rgba(154, 52, 18, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.55);
}

.logo-text {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fde68a, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--amber-light);
}

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

.nav-search input,
.filter-input,
.filter-select {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    outline: none;
}

.nav-search input {
    width: 190px;
    padding: 9px 14px;
    transition: width 0.25s ease, border-color 0.25s ease;
}

.nav-search input:focus {
    width: 250px;
    border-color: var(--amber-light);
}

.nav-search button,
.filter-submit {
    border: 0;
    cursor: pointer;
}

.nav-search button {
    padding: 9px 15px;
    color: #111827;
    background: var(--amber-light);
    border-radius: 999px;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
}

.home-main,
.page-main,
.detail-main {
    min-height: 100vh;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.18) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.72), transparent 62%);
}

.hero-content {
    position: absolute;
    left: max(28px, calc((100vw - 1240px) / 2));
    right: max(28px, calc((100vw - 1240px) / 2));
    bottom: 86px;
    max-width: 760px;
}

.hero-tags,
.tag-row,
.detail-meta,
.hero-actions,
.footer-links,
.hero-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #fff;
    background: rgba(245, 158, 11, 0.82);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -2px;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.44);
}

.hero-meta {
    margin: 0 0 16px;
    color: #fff7ed;
    font-size: 18px;
    font-weight: 700;
}

.hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 28px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-btn {
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover {
    transform: translateY(-5px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

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

.hero-quick-links {
    position: absolute;
    right: max(24px, calc((100vw - 1240px) / 2));
    bottom: 34px;
    max-width: 540px;
    justify-content: flex-end;
}

.hero-quick-links a {
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

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

.section-head.align-start {
    align-items: start;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--amber-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 850;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.text-panel h2,
.info-panel h2,
.detail-aside h2 {
    margin: 0;
    color: #fff;
    font-weight: 950;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
    color: var(--amber-light);
    font-weight: 800;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(245, 158, 11, 0.18);
}

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    color: #111827;
    background: var(--amber-light);
}

.poster-play {
    left: 50%;
    bottom: 14px;
    padding: 8px 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.movie-meta {
    margin: 0 0 10px;
    color: var(--soft);
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row span {
    min-height: 24px;
    padding: 4px 9px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
    font-size: 12px;
}

.horizontal-strip {
    display: grid;
    grid-auto-columns: minmax(210px, 230px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-strip .movie-card {
    scroll-snap-align: start;
}

.glass-panel {
    width: min(1240px, calc(100% - 32px));
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(12px);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 34px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(31, 41, 55, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.rank-number {
    color: var(--amber-light);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    display: block;
    width: 82px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
}

.rank-info p,
.rank-score span {
    margin: 0;
    color: var(--soft);
    font-size: 13px;
}

.rank-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px !important;
    color: var(--muted) !important;
}

.rank-score {
    min-width: 76px;
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--amber-light);
    font-size: 22px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 18px;
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 132px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(127, 29, 29, 0.22));
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.46);
}

.category-card span,
.category-title-link {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.category-card p,
.category-overview-card p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.page-hero {
    position: relative;
    min-height: 330px;
    display: grid;
    align-items: end;
    padding: 76px max(28px, calc((100vw - 1240px) / 2)) 54px;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 35%), linear-gradient(135deg, #1f2937, #111827 46%, #450a0a);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -42% 52%;
    height: 270px;
    background: rgba(245, 158, 11, 0.18);
    filter: blur(80px);
    transform: rotate(-12deg);
}

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

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -1px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.filter-input {
    flex: 1 1 300px;
    padding: 13px 16px;
}

.filter-select {
    min-width: 150px;
    padding: 13px 16px;
}

.filter-select option {
    color: #111827;
}

.search-page-form .primary-btn {
    min-height: auto;
    border: 0;
}

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

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

.sample-links a {
    color: var(--amber-light);
    font-size: 14px;
}

.full-rank .rank-item {
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
}

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

.detail-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 16, 32, 1), rgba(11, 16, 32, 0.82) 42%, rgba(11, 16, 32, 0.42)), linear-gradient(90deg, rgba(2, 6, 23, 0.72), transparent 66%);
}

.detail-layout {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 56px 0;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--soft);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-light);
}

.detail-info h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.large-tags {
    margin-bottom: 28px;
}

.detail-content {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding: 58px 0 24px;
}

.player-section,
.text-panel,
.info-panel,
.detail-aside {
    background: rgba(31, 41, 55, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.player-section,
.text-panel,
.info-panel {
    padding: 24px;
    margin-bottom: 22px;
}

.player-section h2,
.text-panel h2,
.info-panel h2,
.detail-aside h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
    border: 0;
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.48);
}

.movie-player.playing .play-overlay {
    display: none;
}

.text-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-panel dl div {
    padding: 14px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px;
}

.info-panel dt {
    color: var(--soft);
    font-size: 13px;
}

.info-panel dd {
    margin: 6px 0 0;
    color: #fff;
    font-weight: 800;
}

.detail-aside {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 20px;
}

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

.side-related {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
}

.side-related img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.side-related span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-section {
    padding-top: 26px;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), #020617);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 42px;
    padding: 44px 0;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--amber-light);
    font-size: 26px;
    font-weight: 950;
}

.footer-inner p {
    max-width: 460px;
    margin: 0;
    color: var(--soft);
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    padding: 20px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 70;
    width: 46px;
    height: 46px;
    color: #111827;
    background: var(--amber-light);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .nav-links {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: rgba(69, 10, 10, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-search {
        display: none;
    }

    .hero-quick-links {
        display: none;
    }

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

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

    .detail-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-bar {
        width: min(100% - 24px, 1240px);
    }

    .logo-text {
        font-size: 22px;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 94px;
    }

    .hero-arrow {
        display: none;
    }

    .section-wrap,
    .glass-panel {
        width: min(100% - 24px, 1240px);
        padding: 38px 0;
    }

    .glass-panel {
        padding: 22px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .grid-three,
    .grid-four,
    .grid-five,
    .grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-line {
        font-size: 13px;
    }

    .rank-item,
    .full-rank .rank-item {
        grid-template-columns: 38px 64px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: auto;
        padding: 40px 0;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

    .detail-content {
        width: min(100% - 24px, 1240px);
        padding-top: 34px;
    }

    .info-panel dl {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        width: min(100% - 24px, 1240px);
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 480px) {
    .grid-three,
    .grid-four,
    .grid-five,
    .grid-six {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .hero-content h2,
    .detail-info h1 {
        letter-spacing: -1px;
    }

    .filter-bar {
        padding: 12px;
    }

    .filter-select,
    .filter-input {
        width: 100%;
    }
}
