/*
 * Static movie site stylesheet
 * Visual direction: amber / orange gradient navigation, large cinematic Hero,
 * rounded cards, hover lift effects, dark footer, and responsive layouts.
 */

:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-400: #f59e0b;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --blue-500: #0ea5e9;
    --purple-500: #a855f7;
    --pink-500: #ec4899;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.24);
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 38%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.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;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 237, 213, 0.94), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.10);
    backdrop-filter: blur(18px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

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

.brand-text strong {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #92400e, var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--slate-600);
    font-size: 0.76rem;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--slate-700);
    font-weight: 700;
    border-radius: 999px;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-600);
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    padding: 8px 4px 8px 12px;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search button,
.wide-search button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
}

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 10px;
    background: var(--slate-700);
}

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    pointer-events: none;
    background-image: var(--hero-image), linear-gradient(135deg, #111827, #451a03);
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: opacity 600ms ease, transform 800ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.25)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: end;
    gap: 44px;
    padding-top: 92px;
    padding-bottom: 86px;
    min-height: 76vh;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
    animation: fade-up 700ms ease both;
}

.hero-badges,
.hero-tags,
.inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-badges span,
.hero-tags span,
.inline-meta span,
.inline-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    backdrop-filter: blur(10px);
}

.hero-badges span:first-child {
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2.2vw, 1.32rem);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.32);
}

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

.hero-poster,
.detail-cover {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(249, 115, 22, 0.86));
    box-shadow: var(--shadow-strong);
}

.hero-poster img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.hero-poster:hover img,
.detail-cover:hover img {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: background 180ms ease, transform 180ms ease;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.hero-arrow:hover,
.hero-dot:hover {
    transform: translateY(-1px);
    background: rgba(249, 115, 22, 0.74);
}

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

.soft-section {
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.92), rgba(255, 247, 237, 0.86));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--amber-600);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.quick-search-card h2,
.ranking-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.section-link,
.text-link {
    color: var(--amber-600);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fb923c 60%, #111827);
}

.poster img,
.horizontal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

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

.poster::after,
.horizontal-cover::after,
.detail-cover::after,
.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent 46%);
    opacity: 0.88;
    pointer-events: none;
}

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.poster-type {
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.70);
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.86);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 200ms ease, transform 200ms ease;
}

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

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

.movie-card-meta,
.movie-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: 1.02rem;
    line-height: 1.34;
}

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

.movie-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 0.92rem;
}

.movie-card-footer a,
.info-list a,
.large-meta a {
    color: var(--amber-600);
    font-weight: 900;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.quick-search-section {
    position: relative;
    z-index: 8;
    margin-top: -38px;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.wide-search {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--slate-100);
    border-radius: 999px;
}

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

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

.category-tile {
    display: grid;
    min-height: 164px;
    padding: 22px;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 80% 14%, rgba(249, 115, 22, 0.24), transparent 34%),
        #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-count {
    justify-self: start;
    padding: 4px 10px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.category-tile strong {
    align-self: end;
    font-size: 1.26rem;
}

.category-tile small {
    color: var(--slate-600);
}

.ranking-strip {
    padding: 74px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 48%, #431407);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 36px;
    align-items: center;
}

.ranking-copy h2 {
    color: #ffffff;
}

.ranking-copy p {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.76);
}

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

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

.horizontal-card {
    display: grid;
    grid-template-columns: 54px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    color: var(--slate-800);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.ranking-strip .horizontal-card {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.horizontal-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 900;
}

.horizontal-cover {
    position: relative;
    display: block;
    overflow: hidden;
    width: 88px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: linear-gradient(135deg, #fde68a, #fb923c);
}

.horizontal-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
}

.horizontal-card p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-strip .horizontal-card p {
    color: rgba(255, 255, 255, 0.68);
}

.inline-meta {
    gap: 6px;
    color: var(--slate-500);
    font-size: 0.78rem;
}

.inline-meta span,
.inline-meta a {
    background: rgba(148, 163, 184, 0.12);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.36), transparent 30%),
        linear-gradient(135deg, #111827, #431407);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 76px 0 70px;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(360px, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.filter-search,
.filter-selects label {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-weight: 800;
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    outline: 0;
}

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

.filter-result {
    min-width: 130px;
    padding: 12px 14px;
    color: #ffffff;
    text-align: center;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    min-height: 100%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.20));
}

.category-cover-stack img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-body {
    padding: 22px;
}

.category-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-line h2 {
    margin: 0;
    color: var(--slate-900);
}

.category-line span {
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 900;
}

.category-overview-body p {
    color: var(--slate-600);
}

.category-overview-body ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-overview-body li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

.category-overview-body li a:hover {
    color: var(--amber-600);
}

.detail-hero {
    min-height: 620px;
    background-image: var(--detail-image), linear-gradient(135deg, #111827, #431407);
    background-position: center;
    background-size: cover;
}

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

.detail-intro {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-cover {
    min-height: 480px;
}

.detail-copy {
    max-width: 820px;
    color: #ffffff;
}

.detail-copy h1 {
    margin: 18px 0;
    color: #ffffff;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
}

.large-meta {
    margin: 20px 0;
    color: #ffffff;
}

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

.tag-list span {
    padding: 6px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 58px 0;
}

.detail-main,
.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%);
    transition: transform 200ms ease, opacity 200ms ease;
}

.player-start span {
    margin-left: 4px;
    font-size: 2rem;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-caption,
.article-card,
.side-card {
    padding: 22px;
}

.player-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--slate-600);
}

.player-caption strong {
    color: var(--slate-900);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.38rem;
}

.article-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 1.05rem;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.info-list dt {
    color: var(--slate-500);
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: var(--slate-800);
}

.side-related .horizontal-card {
    grid-template-columns: 42px 70px minmax(0, 1fr);
    padding: 10px;
}

.side-related .horizontal-cover {
    width: 70px;
}

.side-related .horizontal-card p,
.side-related .inline-meta {
    display: none;
}

.nav-neighbor {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.nav-neighbor a {
    color: var(--amber-600);
    font-weight: 900;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, #0f172a, #1f2937 54%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p {
    margin: 0 0 12px;
}

.site-footer li + li {
    margin-top: 7px;
}

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

.footer-feature {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.footer-feature strong,
.footer-note {
    color: var(--amber-400);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.poster-fallback {
    position: relative;
}

.poster-fallback::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1180px) {
    .nav-panel {
        gap: 12px;
    }

    .nav-search {
        min-width: 220px;
    }

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

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

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

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

@media (max-width: 920px) {
    .site-nav {
        min-height: 68px;
        flex-wrap: wrap;
    }

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

    .nav-panel {
        display: none;
        width: 100%;
        flex-basis: 100%;
        padding: 0 0 18px;
    }

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

    .nav-links {
        justify-content: flex-start;
    }

    .nav-search {
        width: 100%;
    }

    .hero-content,
    .detail-intro,
    .split-layout,
    .quick-search-card,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 74vh;
    }

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

    .filter-selects,
    .footer-grid,
    .category-overview-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

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

    .hero-copy h1 {
        font-size: clamp(2.4rem, 15vw, 4.2rem);
    }

    .hero-actions,
    .player-caption,
    .nav-neighbor,
    .section-heading,
    .footer-bottom .container {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .movie-card h3 {
        font-size: 0.95rem;
    }

    .movie-card p {
        font-size: 0.84rem;
    }

    .wide-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .wide-search button {
        width: 100%;
        min-height: 46px;
    }

    .horizontal-card {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

    .horizontal-cover {
        width: 72px;
    }

    .detail-cover {
        min-height: 420px;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }
}
