:root {
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #f43f5e;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #16a34a;
    --purple: #7c3aed;
    --indigo: #4f46e5;
    --slate: #334155;
    --red: #dc2626;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fffbeb;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.95));
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(1240px, 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;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.34);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #92400e, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: #78716c;
    font-size: 0.76rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 650;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    content: "";
    background: var(--amber);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #d97706;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #374151;
    background: rgba(245, 158, 11, 0.12);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.mobile-nav-link {
    display: block;
    padding: 11px 14px;
    color: #374151;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 14px;
}

.page-shell {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

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

.hero-bg,
.page-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    filter: brightness(0.72);
}

.hero-overlay,
.page-hero-overlay,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.35), transparent 35%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 0 0 96px;
}

.hero-copy {
    width: min(760px, 100%);
    animation: fade-up 0.75s ease both;
}

.hero-kicker,
.detail-meta,
.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker span,
.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-kicker span:first-child {
    background: linear-gradient(90deg, var(--amber), var(--orange));
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 900px;
    margin: 24px 0 18px;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.46);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    line-height: 1.9;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.24);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.section-link {
    color: #d97706;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(249, 115, 22, 0.28);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1240px) / 2));
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.hero-arrow,
.hero-dot {
    color: #ffffff;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-arrow:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, 0.86);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.search-panel {
    position: relative;
    z-index: 3;
    width: min(1240px, calc(100% - 32px));
    margin: -48px auto 0;
}

.search-panel-inner,
.category-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #d97706;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.search-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-box {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.search-box input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.wide-search {
    margin-bottom: 22px;
}

.content-section {
    padding: 72px 0;
}

.section-inner,
.footer-inner,
.detail-inner,
.ranking-page-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #d97706;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 247, 237, 0.72));
}

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

.category-card,
.category-overview-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::after,
.category-overview-card::after {
    position: absolute;
    right: -42px;
    bottom: -56px;
    width: 130px;
    height: 130px;
    content: "";
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(249, 115, 22, 0.05));
    border-radius: 999px;
}

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

.category-card span,
.category-icon {
    display: inline-flex;
    min-height: 32px;
    padding: 5px 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
}

.category-card h3,
.category-overview-card h2 {
    position: relative;
    z-index: 1;
    margin: 18px 0 12px;
    font-size: 1.4rem;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.category-blue .category-icon,
.category-blue span,
.category-blue::after { --amber: #2563eb; --orange: #06b6d4; }
.category-rose .category-icon,
.category-rose span,
.category-rose::after { --amber: #f43f5e; --orange: #fb7185; }
.category-red .category-icon,
.category-red span,
.category-red::after { --amber: #dc2626; --orange: #f97316; }
.category-purple .category-icon,
.category-purple span,
.category-purple::after { --amber: #7c3aed; --orange: #d946ef; }
.category-green .category-icon,
.category-green span,
.category-green::after { --amber: #16a34a; --orange: #22c55e; }
.category-slate .category-icon,
.category-slate span,
.category-slate::after { --amber: #334155; --orange: #64748b; }
.category-cyan .category-icon,
.category-cyan span,
.category-cyan::after { --amber: #0891b2; --orange: #22d3ee; }
.category-indigo .category-icon,
.category-indigo span,
.category-indigo::after { --amber: #4f46e5; --orange: #818cf8; }
.category-orange .category-icon,
.category-orange span,
.category-orange::after { --amber: #ea580c; --orange: #fb923c; }

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 16px;
    color: #92400e;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

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

.movie-card {
    position: relative;
    display: grid;
    min-width: 0;
    color: var(--text);
    transition: transform 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.poster-wrap img,
.horizontal-poster img,
.ranking-cover img,
.detail-poster img,
.thumb-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.horizontal-card:hover .horizontal-poster img,
.ranking-item:hover .ranking-cover img {
    transform: scale(1.08);
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    opacity: 0;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 10px;
    top: 10px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.movie-card-body {
    display: grid;
    gap: 7px;
    padding: 12px 4px 0;
}

.movie-card-body strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body em,
.horizontal-card em,
.ranking-content em {
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #78716c;
    font-size: 0.78rem;
}

.movie-meta-line span {
    padding: 3px 8px;
    background: #fff7ed;
    border-radius: 999px;
}

.latest-section {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(244, 63, 94, 0.08));
}

.horizontal-scroll {
    display: flex;
    gap: 18px;
    margin: 0 -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.horizontal-card {
    display: grid;
    flex: 0 0 260px;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    scroll-snap-align: start;
}

.horizontal-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 15px;
}

.horizontal-poster span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.horizontal-card strong {
    font-size: 1rem;
    font-weight: 900;
}

.ranking-section {
    background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.ranking-number {
    color: #d97706;
    font-size: 1.15rem;
    font-weight: 950;
    text-align: center;
}

.ranking-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.ranking-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.ranking-content strong {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-content span {
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.masonry-grid {
    columns: 6 160px;
    column-gap: 18px;
}

.movie-card-compact {
    break-inside: avoid;
    margin-bottom: 18px;
}

.movie-card-compact .poster-wrap {
    aspect-ratio: 3 / 4;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.compact-hero {
    min-height: 380px;
}

.page-hero-content {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 70px;
}

.page-hero-content h1 {
    max-width: 880px;
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero-content p {
    max-width: 780px;
    margin: 0;
    color: #e5e7eb;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.category-overview-card {
    min-height: 260px;
}

.thumb-strip {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.thumb-strip img {
    width: 54px;
    height: 76px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.category-toolbar {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
}

.category-toolbar .filter-row,
.category-toolbar .wide-search {
    margin-bottom: 0;
}

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

.text-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.text-link-grid a {
    padding: 10px 16px;
    color: #92400e;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ranking-page-wrap {
    display: grid;
    gap: 48px;
    padding: 72px 0;
}

.ranking-block {
    padding: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.inline-heading {
    margin-bottom: 22px;
}

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

.detail-hero {
    min-height: 650px;
}

.detail-bg {
    filter: blur(3px) brightness(0.5);
    transform: scale(1.08);
}

.detail-inner {
    position: relative;
    padding: 34px 0 76px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 26px;
}

.tag-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 11px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.player-section {
    padding-top: 48px;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18));
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 5px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.36);
    font-size: 1.7rem;
}

.detail-article,
.detail-side {
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-article p {
    margin: 0 0 24px;
    color: #374151;
    line-height: 2;
}

.detail-article p:last-child {
    margin-bottom: 0;
}

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

.side-card-list .movie-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    background: #fff7ed;
    border-radius: 16px;
}

.side-card-list .poster-wrap {
    width: 92px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.side-card-list .movie-card-body {
    padding: 0;
}

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

.filter-empty {
    display: none;
    margin: 28px 0 0;
    padding: 18px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 18px;
    font-weight: 800;
    text-align: center;
}

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

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(480px, 0.9fr);
    gap: 42px;
    padding: 56px 0 36px;
}

.brand-footer .brand-text strong {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

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

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

.footer-columns div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-columns h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
}

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

.footer-columns a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 0.92rem;
    }

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

    .ranking-layout,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .large-ranking-list {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-carousel {
        height: 76vh;
        min-height: 560px;
    }

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

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

    .detail-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: center;
    }

    .detail-hero {
        min-height: 560px;
    }
}

@media (max-width: 680px) {
    .site-header-inner,
    .section-inner,
    .footer-inner,
    .detail-inner,
    .ranking-page-wrap,
    .page-hero-content,
    .hero-content,
    .footer-bottom {
        width: min(100% - 24px, 1240px);
    }

    .brand-text strong {
        font-size: 1.08rem;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.25rem, 13vw, 3.8rem);
    }

    .hero-content {
        padding-bottom: 90px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 28px;
    }

    .search-panel {
        width: min(100% - 24px, 1240px);
    }

    .search-panel-inner,
    .category-toolbar,
    .ranking-block,
    .detail-article,
    .detail-side {
        padding: 20px;
        border-radius: 20px;
    }

    .content-section {
        padding: 50px 0;
    }

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

    .ranking-item {
        grid-template-columns: 36px 82px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-cover {
        aspect-ratio: 1 / 1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-poster {
        width: min(220px, 70vw);
    }

    .detail-copy h1 {
        font-size: clamp(2.2rem, 13vw, 4rem);
    }

    .side-card-list .movie-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .side-card-list .poster-wrap {
        width: 78px;
    }

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

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

    .movie-card-body em {
        display: none;
    }

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

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