:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --yellow: #fbbf24;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --dark: #111827;
    --dark-soft: #1f2937;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #f7f7fb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-text {
    font-size: 26px;
    background: linear-gradient(120deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--orange);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
    fill: rgba(249, 115, 22, 0.14);
    stroke: currentColor;
    stroke-width: 3;
    stroke-linejoin: round;
}

.logo-mark svg path:nth-child(2) {
    fill: currentColor;
    stroke: none;
}

.desktop-nav,
.header-search {
    display: flex;
    align-items: center;
}

.desktop-nav {
    gap: 28px;
    color: #374151;
    font-weight: 650;
}

.desktop-nav > a,
.nav-dropdown-trigger {
    position: relative;
    padding: 22px 0;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: -18px;
    width: 190px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

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

.nav-dropdown-panel a {
    display: block;
    padding: 9px 12px;
    color: #4b5563;
    border-radius: 10px;
    font-size: 14px;
}

.nav-dropdown-panel a:hover {
    color: var(--orange);
    background: #fff7ed;
}

.header-search {
    position: relative;
    flex: 0 0 250px;
}

.header-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 44px 10px 16px;
    outline: none;
    color: #111827;
    background: #ffffff;
    transition: 0.2s ease;
}

.header-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--orange);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 14px 24px 22px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 650;
}

.home-main,
.page-main,
.detail-main {
    padding-top: 68px;
}

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #111827;
}

.hero-slides {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 720px;
    padding: 120px 24px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 52px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(249, 115, 22, 0.25)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto -20% -36% -20%;
    height: 55%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.42), transparent 68%);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 1180px;
    width: 100%;
    margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.hero-kicker,
.section-kicker {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-summary {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.card-tags,
.detail-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-tags span,
.tag-cloud span {
    color: var(--orange-dark);
    background: #fff7ed;
}

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

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

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

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

.ghost-button.dark {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.14);
    background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    width: min(380px, 31vw);
    aspect-ratio: 2 / 3;
    margin-right: max(24px, calc((100vw - 1180px) / 2));
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    justify-self: end;
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.42);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(16px);
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    color: #ffffff;
    background: transparent;
}

.hero-controls > button {
    width: 34px;
    height: 34px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dots button {
    width: 32px;
    height: 8px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.hero-dots button[aria-current="true"] {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 24px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.section-heading p:last-child {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    color: var(--orange);
    font-weight: 800;
}

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

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    background: linear-gradient(145deg, #fff7ed, #fee2e2);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.movie-year,
.movie-type {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    left: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.movie-type {
    right: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.movie-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 0.22s ease;
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.35);
}

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

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

.card-tags {
    margin-bottom: 10px;
}

.card-tags span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
}

.movie-card h3 {
    margin: 0;
    min-height: 52px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

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

.movie-card p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.popular-section {
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.26), transparent 32%), linear-gradient(135deg, #111827, #1f2937 52%, #0f172a);
}

.popular-section .section-heading h2,
.popular-section .section-heading p,
.popular-section .section-kicker {
    color: #ffffff;
}

.popular-section .section-link {
    color: #fed7aa;
}

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

.popular-row {
    display: grid;
    grid-template-columns: 42px 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: 0.22s ease;
}

.popular-row:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.popular-rank {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    font-weight: 900;
}

.popular-row img {
    width: 132px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.popular-row h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.popular-row p {
    margin: 5px 0 6px;
    color: rgba(255, 255, 255, 0.66);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-row span {
    color: #fed7aa;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

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

.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.1);
}

.category-tile-overlay,
.category-overview-card span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1));
}

.category-tile strong,
.category-tile em,
.category-overview-card div {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-tile strong {
    bottom: 52px;
    font-size: 22px;
    font-style: normal;
}

.category-tile em {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.ranking-mini-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ranking-mini-list a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: 0.2s ease;
}

.ranking-mini-list a:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.42);
}

.ranking-mini-list span {
    color: var(--orange);
    font-weight: 900;
}

.ranking-mini-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-mini-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.search-panel,
.callout-strip,
.detail-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.search-panel {
    padding: 34px;
    position: sticky;
    top: 92px;
}

.search-panel h2,
.callout-strip h2,
.detail-panel h2 {
    margin: 0 0 12px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.search-panel p,
.callout-strip p,
.detail-panel p {
    color: var(--muted);
}

.large-search-form,
.search-tool {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.large-search-form input,
.search-tool input,
.search-tool select,
.inline-filter-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 13px 16px;
    background: #ffffff;
    outline: none;
}

.search-tool select {
    flex: 0 0 160px;
}

.large-search-form button,
.search-tool button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.page-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 92px 24px 46px;
}

.compact-page-hero,
.category-page-hero {
    position: relative;
    margin-top: 28px;
    border-radius: 32px;
    overflow: hidden;
}

.compact-page-hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 34%), #ffffff;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.09);
}

.category-page-hero {
    color: #ffffff;
    background: #111827;
}

.category-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.56), rgba(249, 115, 22, 0.34)), var(--page-hero-image);
    background-size: cover;
    background-position: center;
}

.category-page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.page-hero p:not(.section-kicker) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.category-page-hero p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.82);
}

.inline-filter-form {
    max-width: 720px;
}

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

.category-overview-card div {
    bottom: 20px;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 26px;
}

.category-overview-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.callout-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
}

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

.ranking-row a {
    display: grid;
    grid-template-columns: 70px 116px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
}

.ranking-row a:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.42);
}

.ranking-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    font-weight: 900;
}

.ranking-row img {
    width: 116px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-info h2 {
    margin: 0;
    font-size: 22px;
}

.ranking-info p {
    margin: 6px 0 8px;
    color: var(--muted);
}

.ranking-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-info span {
    padding: 4px 8px;
    color: var(--orange-dark);
    background: #fff7ed;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.search-tool {
    max-width: 960px;
    flex-wrap: wrap;
}

.search-status {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 700;
}

.pagination {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #374151;
    font-weight: 800;
}

.pagination a.is-current,
.pagination a:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.detail-hero {
    position: relative;
    max-width: 1180px;
    margin: 96px auto 0;
    padding: 44px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.76)), var(--detail-hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-poster,
.detail-copy {
    position: relative;
    z-index: 1;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-one-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.player-section {
    max-width: 1180px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.58));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.42);
}

.play-overlay strong {
    font-size: 18px;
}

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

.detail-content-grid {
    max-width: 1180px;
    margin: 34px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 22px;
}

.detail-panel {
    padding: 28px;
}

.detail-info-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-info-list span {
    color: var(--muted);
}

.detail-info-list strong {
    text-align: right;
}

.movie-card-compact h3 {
    min-height: 48px;
    font-size: 16px;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 28%), linear-gradient(135deg, #111827, #1f2937 56%, #0f172a);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 46px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p {
    max-width: 440px;
    color: #9ca3af;
}

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

.footer-links h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.footer-links a {
    display: block;
    padding: 5px 0;
    color: #9ca3af;
}

.footer-links a:hover {
    color: #fed7aa;
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 760px;
    }

    .hero-copy {
        margin: 0 auto;
        max-width: 900px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .search-panel {
        position: static;
    }

    .detail-hero {
        grid-template-columns: 230px minmax(0, 1fr);
        margin-left: 24px;
        margin-right: 24px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 21px;
    }

    .home-main,
    .page-main,
    .detail-main {
        padding-top: 64px;
    }

    .hero-slider,
    .hero-slides,
    .hero-slide {
        min-height: 660px;
    }

    .hero-slide {
        padding: 92px 18px 86px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-summary {
        font-size: 17px;
    }

    .hero-actions,
    .detail-actions,
    .large-search-form,
    .search-tool {
        flex-direction: column;
    }

    .large-search-form button,
    .search-tool button {
        min-height: 46px;
    }

    .content-section {
        padding: 52px 16px;
    }

    .section-heading,
    .callout-strip {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card h3 {
        min-height: 44px;
        font-size: 15px;
    }

    .movie-card p,
    .card-meta,
    .card-tags span {
        font-size: 12px;
    }

    .popular-row,
    .ranking-row a {
        grid-template-columns: 38px 88px minmax(0, 1fr);
        gap: 12px;
    }

    .popular-row img,
    .ranking-row img {
        width: 88px;
        height: 66px;
    }

    .popular-row h3,
    .ranking-info h2 {
        font-size: 16px;
    }

    .page-hero {
        margin-top: 16px;
        padding: 58px 18px 32px;
        border-radius: 24px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        margin: 76px 16px 0;
        border-radius: 24px;
    }

    .detail-poster {
        max-width: 240px;
    }

    .player-section,
    .detail-content-grid {
        padding: 0 16px;
    }

    .player-shell {
        border-radius: 22px;
    }

    .ranking-mini-list a {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .ranking-mini-list em {
        display: none;
    }
}

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

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-controls {
        max-width: calc(100vw - 28px);
    }

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