:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-icon svg {
    width: 25px;
    height: 25px;
    fill: var(--white);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-weight: 800;
    font-size: 23px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
}

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

.nav-link,
.mobile-link {
    color: var(--gray-300);
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
    font-size: 15px;
}

.nav-link:hover,
.mobile-link:hover {
    color: var(--white);
    background: var(--slate-700);
}

.nav-link.active,
.mobile-link.active {
    color: var(--white);
    background: var(--amber-500);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

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

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: rgba(51, 65, 85, 0.62);
    border-radius: 12px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-search:focus-within,
.mobile-search:focus-within {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.55);
}

.top-search input,
.mobile-search input {
    width: 190px;
    height: 40px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: #9ca3af;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.65);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--white);
}

.mobile-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--slate-800);
    padding: 12px 20px 18px;
}

.mobile-search {
    margin-bottom: 10px;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav {
    display: grid;
    gap: 6px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--gray-950);
}

.hero-track,
.hero-slide,
.hero-media,
.hero-media img {
    width: 100%;
    height: 100%;
}

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

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

.hero-media img {
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 7s ease;
}

.hero-slide.active .hero-media img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.20)), linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
}

.hero-copy {
    position: absolute;
    left: max(28px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 76px;
    width: min(760px, calc(100% - 56px));
    color: var(--white);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.hero-tags span:first-child {
    background: var(--amber-500);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 0 26px;
    max-width: 680px;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.text-button,
.search-hero-form button,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-button,
.search-hero-form button,
.wide-search button {
    padding: 0 20px;
    color: var(--white);
    border: 0;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 28px rgba(245, 158, 11, 0.28);
}

.primary-button:hover,
.search-hero-form button:hover,
.wide-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.35);
}

.ghost-button {
    padding: 0 20px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-top: 2px solid var(--white);
    border-left: 2px solid var(--white);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

.hero-arrow.prev::before {
    transform: translateX(3px) rotate(-45deg);
}

.hero-arrow.next::before {
    transform: translateX(-3px) rotate(135deg);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.3s ease, background-color 0.3s ease;
}

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

.quick-panel {
    margin-top: -44px;
    position: relative;
    z-index: 4;
    padding: 0 24px;
}

.quick-panel-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px 28px;
    align-items: center;
}

.quick-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.quick-panel p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
}

.wide-search {
    display: flex;
    gap: 10px;
}

.wide-search input,
.search-hero-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0 16px;
    outline: 0;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wide-search input:focus,
.search-hero-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.page-wrap {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.home-layout {
    padding: 64px 0 80px;
    display: grid;
    gap: 70px;
}

.page-top {
    padding-top: 40px;
    padding-bottom: 78px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-mark {
    flex: 0 0 5px;
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
    margin-top: 4px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--gray-600);
    line-height: 1.7;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-800);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-float,
.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--amber-500);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.38);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-float.small {
    width: 40px;
    height: 40px;
}

.play-float::before,
.big-play::before,
.play-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--white);
}

.play-float.small::before {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
}

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

.year-badge,
.genre-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 12px;
    left: 12px;
}

.genre-badge {
    top: 12px;
    right: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.card-body {
    display: block;
    padding: 16px;
}

.meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.meta-row span {
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--amber-600);
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.movie-card:hover .card-title {
    color: var(--amber-600);
}

.card-desc {
    display: -webkit-box;
    min-height: 45px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.warm-section {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.08);
}

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

.category-tile {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    background: var(--slate-800);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tile-shade,
.top-rank-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.04));
}

.tile-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.tile-copy strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.tile-copy em {
    display: -webkit-box;
    font-style: normal;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-preview {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

.rank-copy {
    position: sticky;
    top: 100px;
    padding: 32px;
    border-radius: var(--radius-2xl);
    background: var(--slate-900);
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.rank-copy .section-heading h2,
.rank-copy .section-heading p {
    color: var(--white);
}

.rank-copy p {
    color: var(--gray-300);
    line-height: 1.8;
}

.text-button {
    margin-top: 12px;
    color: var(--amber-400);
}

.text-button:hover {
    color: var(--orange-500);
}

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

.horizontal-card {
    display: flex;
    gap: 14px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.horizontal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: var(--shadow-soft);
}

.horizontal-poster {
    position: relative;
    width: 158px;
    min-height: 104px;
    flex: 0 0 158px;
    overflow: hidden;
    background: var(--slate-800);
}

.horizontal-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.horizontal-info {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.list-rank {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.horizontal-title {
    display: -webkit-box;
    color: var(--gray-900);
    font-weight: 800;
    line-height: 1.4;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-meta {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 5px;
}

.horizontal-desc {
    display: -webkit-box;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.page-title-block {
    margin-bottom: 30px;
    padding: 32px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.page-title-block .eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.page-title-block h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.18;
}

.page-title-block p {
    margin: 0;
    max-width: 820px;
    color: #d1d5db;
    line-height: 1.8;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.overview-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 118px;
    overflow: hidden;
    background: var(--slate-800);
}

.overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overview-body {
    display: block;
    padding: 20px;
}

.overview-body strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.overview-body em {
    display: block;
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.empty-state {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-500);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.top-rank-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

.top-rank-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--slate-800);
    box-shadow: var(--shadow-card);
}

.top-rank-card:first-child {
    min-height: 360px;
}

.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.top-rank-number {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.top-rank-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: var(--white);
}

.top-rank-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.top-rank-copy em {
    color: #e5e7eb;
    font-style: normal;
    line-height: 1.6;
}

.search-hero-form {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    margin-bottom: 36px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-result-area {
    margin-bottom: 56px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-shell,
.detail-card,
.related-panel {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.player-shell {
    overflow: hidden;
    background: #000;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay .big-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.control-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.control-button:hover {
    transform: scale(1.08);
    background: var(--amber-500);
}

.play-toggle {
    background: var(--amber-500);
}

.play-toggle.is-playing::before {
    width: 14px;
    height: 18px;
    border: 0;
    border-left: 5px solid var(--white);
    border-right: 5px solid var(--white);
    transform: translate(-50%, -50%);
}

.mute-toggle::before,
.fullscreen-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--white);
    border-radius: 4px;
}

.mute-toggle::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 15px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

.mute-toggle.is-muted::after {
    right: 12px;
    top: 11px;
    width: 18px;
    border-right: 0;
    transform: rotate(45deg);
}

.fullscreen-toggle {
    margin-left: auto;
}

.fullscreen-toggle::before {
    border-radius: 0;
    background: transparent;
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 9px;
    color: var(--amber-600);
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
    font-weight: 700;
    font-size: 14px;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.detail-section p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.lead-text {
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tag-list span:hover {
    color: var(--amber-600);
    background: var(--amber-100);
}

.review-box {
    padding: 22px;
    border-left: 5px solid var(--amber-500);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.related-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.related-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.related-panel .horizontal-card {
    box-shadow: none;
}

.related-panel .horizontal-poster {
    width: 124px;
    flex-basis: 124px;
    min-height: 84px;
}

.related-panel .horizontal-desc {
    display: none;
}

.site-footer {
    background: var(--gray-950);
    color: var(--gray-300);
}

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    gap: 24px;
}

.footer-logo {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 720px;
    margin: 0;
    line-height: 1.8;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

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

.copyright {
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
    color: #6b7280;
}

@media (max-width: 1120px) {
    .movie-grid,
    .category-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .related-panel,
    .rank-copy {
        position: static;
    }
}

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

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

    .header-inner {
        height: 68px;
    }

    .hero {
        height: 520px;
    }

    .hero-copy {
        bottom: 68px;
    }

    .quick-panel-inner {
        grid-template-columns: 1fr;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .brand-title {
        font-size: 19px;
    }

    .brand-subtitle {
        display: none;
    }

    .header-inner {
        padding: 0 16px;
    }

    .hero {
        height: 500px;
    }

    .hero-copy {
        left: 20px;
        right: 20px;
        bottom: 72px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .quick-panel {
        margin-top: 0;
        padding: 0;
    }

    .quick-panel-inner {
        border-radius: 0;
        padding: 24px;
    }

    .wide-search,
    .search-hero-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .wide-search button,
    .search-hero-form button {
        width: 100%;
    }

    .page-wrap,
    .footer-inner {
        width: min(100% - 32px, 1280px);
    }

    .home-layout {
        padding-top: 46px;
        gap: 48px;
    }

    .warm-section,
    .page-title-block,
    .detail-card,
    .related-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .featured-grid,
    .movie-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-poster {
        width: 120px;
        flex-basis: 120px;
    }

    .horizontal-desc {
        -webkit-line-clamp: 1;
    }

    .player-controls {
        padding: 12px;
    }
}
