* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-925: #07111f;
    --slate-900: #0f172a;
    --slate-850: #111c31;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --border: rgba(148, 163, 184, 0.16);
    --panel: rgba(30, 41, 59, 0.52);
    --panel-strong: rgba(15, 23, 42, 0.86);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--slate-950), var(--slate-900) 42%, var(--slate-950));
    color: var(--slate-300);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.search-open,
body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.86);
}

button,
input {
    font: inherit;
}

.container {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 10px 34px rgba(245, 158, 11, 0.28);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    background-clip: text;
    -webkit-background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--slate-300);
    font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > a {
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
    color: var(--amber-400);
}

.nav-dropdown {
    position: relative;
    padding: 24px 0;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.mobile-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--slate-300);
    transition: 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-nav a:hover {
    color: var(--amber-400);
    background: rgba(51, 65, 85, 0.55);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--slate-200);
    background: rgba(30, 41, 59, 0.58);
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-button:hover {
    color: var(--amber-400);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(51, 65, 85, 0.78);
}

.mobile-toggle {
    display: none;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
}

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

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.28) 72%, rgba(2, 6, 23, 0.9) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0) 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    padding-top: 30px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-400);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    color: var(--slate-100);
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--slate-300);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.tag-list span {
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    color: var(--amber-400);
    background: rgba(245, 158, 11, 0.1);
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.primary-button {
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.22);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 64px rgba(245, 158, 11, 0.32);
}

.ghost-button,
.soft-button {
    color: var(--slate-200);
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.6);
}

.ghost-button:hover,
.soft-button:hover {
    color: var(--amber-400);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--slate-100);
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-arrow:hover {
    color: var(--amber-400);
    background: rgba(15, 23, 42, 0.9);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
}

.hero-thumbs {
    position: absolute;
    right: max(24px, calc((100vw - 1220px) / 2));
    bottom: 88px;
    z-index: 4;
    width: 300px;
    display: grid;
    gap: 10px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.hero-thumb img {
    width: 74px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    color: var(--amber-400);
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(15, 23, 42, 0.86);
}

.section-block,
.section-panel,
.split-section,
.category-overview-grid,
.ranking-list-section,
.detail-layout {
    padding: 72px 0;
}

.section-panel {
    margin-top: 24px;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.52), rgba(15, 23, 42, 0.42));
}

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

.compact-heading {
    align-items: center;
}

.section-heading h2,
.content-panel h2,
.aside-panel h2,
.site-footer h2 {
    margin: 0;
    color: var(--slate-100);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: var(--amber-400);
    font-weight: 900;
    transition: 0.2s ease;
}

.section-heading a:hover,
.text-link:hover {
    color: var(--amber-500);
}

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

.featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.movie-card {
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.2);
    transition: 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(30, 41, 59, 0.36);
    transform: translateY(-4px);
}

.card-cover,
.wide-cover,
.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.featured-grid .card-cover img {
    aspect-ratio: 5 / 3.6;
}

.movie-card:hover img,
.rank-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img,
.poster-card:hover img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--slate-100);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 14px 4px 0;
}

.movie-title {
    display: block;
    color: var(--slate-100);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.38;
    transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title,
.rank-card:hover .movie-title {
    color: var(--amber-400);
}

.card-body p,
.wide-body p,
.rank-content p,
.category-tile p,
.category-overview-card p,
.site-footer p,
.content-panel p,
.one-line {
    color: var(--slate-400);
    line-height: 1.72;
}

.card-body p,
.wide-body p,
.rank-content p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 13px;
}

.meta-row span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.45);
}

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

.category-tile {
    position: relative;
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transition: transform 0.5s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

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

.category-tile span {
    display: block;
    margin-top: 86px;
    color: var(--slate-100);
    font-size: 24px;
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 34px;
}

.wide-list,
.aside-card-list {
    display: grid;
    gap: 16px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border-color: var(--border);
    background: rgba(30, 41, 59, 0.34);
}

.wide-cover img {
    width: 210px;
    height: 128px;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.ranking-panel {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(30, 41, 59, 0.3);
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px 66px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    transition: 0.22s ease;
}

.ranking-row:hover {
    background: rgba(51, 65, 85, 0.42);
}

.rank-number,
.ranking-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-weight: 1000;
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.ranking-row img {
    width: 66px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    color: var(--slate-100);
    font-weight: 900;
}

.rank-meta {
    grid-column: 3;
    color: var(--slate-500);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    padding: 76px 0 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34%), linear-gradient(135deg, rgba(30, 41, 59, 0.54), rgba(2, 6, 23, 0.96));
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(40px, 6vw, 66px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--slate-500);
    font-size: 14px;
}

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

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
}

.category-cover-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: hidden;
    border-radius: 20px;
}

.category-cover-pair img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--slate-100);
    font-size: 25px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-chip {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--slate-300);
    background: rgba(30, 41, 59, 0.5);
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--slate-950);
    border-color: transparent;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

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

.ranking-block {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: stretch;
}

.ranking-index {
    min-height: 130px;
    border-radius: 20px;
    font-size: 24px;
}

.rank-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.34);
    transition: 0.24s ease;
}

.rank-card:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.55);
}

.rank-cover img {
    width: 210px;
    height: 128px;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

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

.detail-main,
.detail-aside {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 26px;
    background: #000;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2), rgba(0, 0, 0, 0.7));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .player-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
    cursor: pointer;
    transition: 0.2s ease;
}

.player-play span {
    display: inline-block;
    margin-left: 5px;
    font-size: 38px;
}

.player-play:hover {
    transform: scale(1.06);
}

.player-title {
    color: var(--slate-100);
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.player-loading,
.player-error {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--slate-100);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 800;
}

.player-shell.is-ready .player-loading,
.player-error:empty {
    display: none;
}

.player-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.74);
}

.detail-article {
    margin-top: 28px;
}

.detail-article h1 {
    margin: 0 0 14px;
    color: var(--slate-100);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.one-line {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--amber-400);
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--slate-200);
    font-size: 17px;
}

.content-panel,
.aside-panel,
.poster-card {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
}

.content-panel h2,
.aside-panel h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.detail-aside {
    position: sticky;
    top: 94px;
    align-self: start;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

.aside-card-list .movie-card {
    border-color: transparent;
}

.aside-card-list .card-cover img {
    aspect-ratio: 16 / 9;
}

.site-footer {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
}

.footer-links a {
    color: var(--slate-400);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--slate-500);
    text-align: center;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

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

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
}

.search-box {
    position: relative;
    width: min(760px, calc(100% - 32px));
    max-height: min(720px, calc(100vh - 80px));
    margin: 40px auto;
    padding: 26px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.search-box h2 {
    margin: 0 0 18px;
    color: var(--slate-100);
    font-size: 30px;
}

.close-button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--slate-200);
    background: rgba(30, 41, 59, 0.7);
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-form input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: 0;
    color: var(--slate-100);
    background: rgba(2, 6, 23, 0.72);
}

.search-form input:focus {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.search-form button {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-weight: 900;
    cursor: pointer;
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.36);
}

.search-result-card img {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

.search-result-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--slate-100);
}

.search-result-card p {
    margin: 0;
    color: var(--slate-400);
    line-height: 1.55;
    font-size: 14px;
}

.empty-result {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--slate-400);
    background: rgba(30, 41, 59, 0.28);
}

.is-hidden {
    display: none !important;
}

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

    .mobile-toggle {
        display: inline-block;
    }

    .hero-thumbs {
        display: none;
    }

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

    .featured-grid,
    .category-overview-grid,
    .split-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .container,
    .header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1220px);
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-section {
        min-height: 620px;
        height: 76vh;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 42px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-block,
    .section-panel,
    .split-section,
    .category-overview-grid,
    .ranking-list-section,
    .detail-layout {
        padding: 46px 0;
    }

    .section-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .section-heading {
        display: block;
    }

    .section-heading a,
    .section-heading button {
        margin-top: 14px;
    }

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

    .movie-card-wide,
    .rank-card,
    .category-overview-card,
    .ranking-block {
        grid-template-columns: 1fr;
    }

    .wide-cover img,
    .rank-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ranking-index {
        min-height: 50px;
    }

    .category-cover-pair img {
        height: 140px;
    }

    .detail-article h1 {
        font-size: 34px;
    }

    .player-play {
        width: 70px;
        height: 70px;
    }

    .search-form,
    .search-result-card {
        grid-template-columns: 1fr;
    }

    .search-result-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .featured-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .primary-button,
    .ghost-button,
    .soft-button {
        width: 100%;
    }
}
