:root {
    --color-primary: #1a4d6d;
    --color-primary-light: #2d6b8f;
    --color-primary-dark: #0f3347;
    --color-secondary: #d4a574;
    --color-secondary-light: #e6c9a0;
    --color-secondary-dark: #b8864d;
    --color-accent: #4a90a4;
    --color-accent-light: #6db3c7;
    --color-accent-dark: #2f6d7f;
    --color-bg-primary: #0a1929;
    --color-bg-secondary: #132f4c;
    --color-bg-tertiary: #1e3a52;
    --color-text-primary: #e7edf3;
    --color-text-secondary: #b2bac2;
    --color-text-muted: #7a8189;
    --color-border: #2d3e50;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --spacing-unit: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.search-lock {
    overflow: hidden;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.container-custom {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

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

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

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

.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(10, 25, 41, 0.95), rgba(10, 25, 41, 0.12), transparent);
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 41, 0.88);
    border-bottom: 1px solid rgba(45, 62, 80, 0.75);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: #06111f;
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-size: 1.18rem;
}

.desktop-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-accent-light);
}

.search-open,
.menu-toggle,
.search-close {
    border: 0;
    color: var(--color-text-primary);
    background: transparent;
}

.search-open {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(30, 58, 82, 0.72);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.search-open:hover {
    color: white;
    background: var(--color-accent);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text-primary);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-border);
    background: rgba(10, 25, 41, 0.98);
}

.mobile-nav a,
.mobile-nav button {
    display: block;
    width: 100%;
    padding: 14px 0;
    border: 0;
    color: var(--color-text-secondary);
    text-align: left;
    background: transparent;
}

.hero-section {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(to top, var(--color-bg-primary), rgba(10, 25, 41, 0.78) 42%, rgba(10, 25, 41, 0.08));
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 96px 0 64px;
}

.hero-main {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    align-items: end;
}

.hero-copy {
    display: none;
    max-width: 700px;
    animation: slideUp 0.6s ease both;
}

.hero-copy.is-active {
    display: block;
}

.hero-badge,
.eyebrow,
.movie-category {
    color: var(--color-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 24px;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    border: 1px solid rgba(109, 179, 199, 0.2);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--color-text-secondary);
    background: rgba(30, 58, 82, 0.72);
    font-size: 0.82rem;
}

.hero-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 18px;
}

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-button {
    padding: 0 26px;
    color: white;
    background: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.primary-button:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.ghost-button {
    padding: 0 22px;
    border: 1px solid rgba(231, 237, 243, 0.2);
    color: var(--color-text-primary);
    background: rgba(19, 47, 76, 0.72);
}

.ghost-button:hover {
    border-color: var(--color-accent-light);
    color: white;
}

.text-button {
    color: var(--color-accent-light);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--color-text-secondary);
    font-size: 0.96rem;
}

.hero-panel {
    padding: 20px;
    border: 1px solid rgba(231, 237, 243, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(19, 47, 76, 0.68);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-panel h2 {
    margin: 0 0 14px;
    font-size: 1.12rem;
}

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

.hero-thumb {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 8px;
    color: var(--color-text-secondary);
    text-align: left;
    background: rgba(10, 25, 41, 0.52);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hero-thumb img {
    width: 62px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    border-color: rgba(109, 179, 199, 0.6);
    color: white;
    background: rgba(74, 144, 164, 0.24);
}

.section {
    padding: 72px 0;
}

.section-tinted {
    background: var(--color-bg-secondary);
}

.section-gradient {
    background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
}

.section-head,
.section-title-block {
    margin-bottom: 28px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-head h2,
.section-title-block h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head a,
.category-preview a {
    color: var(--color-accent-light);
    font-weight: 700;
}

.section-title-block p,
.page-hero p,
.category-overview p,
.footer-inner p {
    margin: 8px 0 0;
    color: var(--color-text-secondary);
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-md);
}

.movie-card.large .movie-cover {
    aspect-ratio: 16 / 10;
}

.movie-card.small .movie-cover,
.movie-card.compact .movie-cover,
.movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-card.compact {
    min-width: 260px;
}

.movie-card:hover h3 {
    color: var(--color-accent-light);
}

.movie-cover {
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.movie-cover img,
.wide-cover img,
.category-cover img,
.detail-poster img {
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.wide-card:hover .wide-cover img,
.category-overview:hover .category-cover img,
.detail-poster:hover img {
    transform: scale(1.08);
}

.cover-meta {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.cover-meta span {
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    color: white;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
}

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

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.6em;
    margin: 6px 0 8px;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 1.08rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    border: 0;
    padding: 4px 8px;
    font-size: 0.74rem;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-bg-tertiary);
}

.wide-cover {
    height: 140px;
    overflow: hidden;
}

.wide-body {
    padding: 18px;
}

.wide-body p,
.wide-body span,
.rank-copy em {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    font-style: normal;
}

.wide-body h3 {
    margin: 8px 0;
    font-size: 1.2rem;
}

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

.category-tile {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
    opacity: 0.48;
}

.category-tile span {
    position: absolute;
    inset: auto 14px 14px;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-spaced {
    margin-top: 36px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--color-bg-secondary);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
    background: var(--color-bg-tertiary);
    transform: translateX(4px);
}

.rank-item.compact {
    grid-template-columns: 46px 58px minmax(0, 1fr);
    padding: 9px;
}

.rank-number {
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 82px;
    height: 62px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.rank-item.compact img {
    width: 58px;
    height: 44px;
}

.rank-copy strong {
    display: block;
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 2px 0 18px;
}

.page-shell {
    padding: 56px 0 84px;
}

.page-hero {
    padding: 48px 0 40px;
}

.page-hero h1 {
    max-width: 880px;
    margin: 8px 0 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
}

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

.category-overview {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-xl);
    padding: 16px;
    background: var(--color-bg-secondary);
}

.category-cover {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
}

.category-overview h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-preview a {
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--color-bg-tertiary);
    font-size: 0.88rem;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.crumbs a {
    color: var(--color-accent-light);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
}

.filter-bar label,
.search-field {
    display: grid;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
}

.filter-bar input,
.filter-bar select,
.search-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0 14px;
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-field input:focus {
    border-color: var(--color-accent-light);
}

.empty-state {
    padding: 32px;
    border-radius: var(--radius-xl);
    color: var(--color-text-secondary);
    text-align: center;
    background: var(--color-bg-secondary);
}

.detail-page {
    padding-bottom: 90px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}

.detail-bg,
.detail-bg div {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    filter: blur(2px);
    opacity: 0.38;
    transform: scale(1.03);
}

.detail-bg div {
    background: linear-gradient(to top, var(--color-bg-primary), rgba(10, 25, 41, 0.86), rgba(10, 25, 41, 0.5));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    margin-top: 46px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.12);
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-xl);
}

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

.detail-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: var(--color-text-secondary);
    font-size: 1.15rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--color-text-secondary);
}

.detail-meta span {
    border-radius: var(--radius-md);
    padding: 6px 10px;
    background: rgba(19, 47, 76, 0.8);
}

.detail-tags {
    margin-bottom: 26px;
}

.watch-section {
    margin-top: -76px;
    position: relative;
    z-index: 3;
}

.detail-section-head {
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.12);
    border-radius: var(--radius-xl);
    background: #02070e;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #02070e;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(74, 144, 164, 0.2), rgba(2, 7, 14, 0.38));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    padding-left: 6px;
    color: #06111f;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent-light));
    box-shadow: var(--shadow-xl);
    font-size: 2rem;
    transition: transform 0.25s ease;
}

.play-circle:hover {
    transform: scale(1.08);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.story-card {
    border: 1px solid rgba(231, 237, 243, 0.08);
    border-radius: var(--radius-xl);
    padding: 28px;
    background: var(--color-bg-secondary);
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.9;
}

.related-section {
    margin-top: 64px;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 88px 16px 24px;
}

.search-modal.is-open {
    display: block;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 14, 0.84);
    backdrop-filter: blur(8px);
}

.search-box {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 120px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 243, 0.1);
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-xl);
}

.search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
}

.search-head h2 {
    margin: 0;
}

.search-close {
    font-size: 2rem;
    line-height: 1;
}

.search-field {
    padding: 18px 20px;
}

.search-results {
    display: grid;
    max-height: 55vh;
    overflow-y: auto;
    padding: 0 20px 20px;
    gap: 12px;
}

.search-result {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 8px;
    background: var(--color-bg-tertiary);
}

.search-result img {
    width: 70px;
    height: 54px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.search-result strong,
.search-result span {
    display: block;
}

.search-result span {
    color: var(--color-text-secondary);
    font-size: 0.86rem;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-inner a:hover {
    color: var(--color-accent-light);
}

[hidden] {
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hero-main,
    .split-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 100%;
    }

    .hero-thumb-list {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
        overflow-x: auto;
    }

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

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

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

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

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

    .hero-content-wrap {
        padding: 80px 0 42px;
    }

    .hero-main,
    .detail-layout,
    .category-overview,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.025em;
    }

    .hero-panel {
        padding: 14px;
    }

    .hero-thumb-list {
        grid-template-columns: repeat(5, 180px);
    }

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

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

    .wide-cover {
        height: 150px;
    }

    .detail-hero {
        min-height: auto;
        padding-bottom: 120px;
    }

    .detail-layout {
        gap: 26px;
        margin-top: 28px;
    }

    .detail-poster {
        width: min(280px, 76vw);
    }

    .watch-section {
        margin-top: -92px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container-custom {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .search-open {
        display: none;
    }

    .hero-section,
    .hero-content-wrap {
        min-height: 78vh;
    }

    .hero-actions-row {
        display: grid;
    }

    .hero-thumb-list {
        grid-template-columns: repeat(5, 150px);
    }

    .section {
        padding: 54px 0;
    }

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

    .grid-three,
    .grid-four,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .wide-cover {
        height: 190px;
    }

    .movie-card.compact {
        min-width: 220px;
    }

    .rank-item,
    .rank-item.compact {
        grid-template-columns: 42px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-item img,
    .rank-item.compact img {
        width: 62px;
        height: 48px;
    }

    .story-card {
        padding: 22px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 1.65rem;
    }
}
