:root {
    --brand: #16a34a;
    --brand-dark: #15803d;
    --brand-light: #dcfce7;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: 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 {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.24);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.07) rotate(-2deg);
}

.brand-mark svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

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

.brand-copy strong {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--brand-dark);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: var(--ink);
}

.header-search button,
.hero-search-panel button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #f3f4f6;
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    font-weight: 800;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
}

.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 790px;
    overflow: hidden;
    padding: 122px 0 52px;
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 163, 74, 0.22), transparent 32%),
        radial-gradient(circle at 78% 12%, rgba(21, 128, 61, 0.18), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.68;
    pointer-events: none;
}

.hero-glow-one {
    width: 340px;
    height: 340px;
    right: -100px;
    top: 100px;
    background: rgba(34, 197, 94, 0.2);
}

.hero-glow-two {
    width: 280px;
    height: 280px;
    left: -120px;
    bottom: 70px;
    background: rgba(14, 165, 233, 0.14);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.15);
    opacity: 0.38;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76) 52%, rgba(15, 23, 42, 0.44)),
        radial-gradient(circle at 70% 45%, rgba(22, 163, 74, 0.28), transparent 36%);
}

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

.eyebrow,
.section-heading span,
.page-hero span,
.rank-panel-head span,
.category-overview-copy span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 12px;
    color: var(--brand-dark);
    background: var(--brand-light);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    color: #fff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.movie-tags span {
    background: #ecfdf5;
    color: var(--brand-dark);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 32px rgba(22, 163, 74, 0.26);
}

.button-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #111827;
}

.hero-controls {
    position: absolute;
    left: 52px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 28px;
    background: #fff;
}

.hero-search-panel {
    position: relative;
    z-index: 5;
    width: min(980px, calc(100% - 44px));
    margin: -38px auto 0;
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(229, 231, 235, 0.88);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.hero-search-panel > span {
    color: var(--brand-dark);
    font-weight: 900;
}

.hero-search-panel form {
    display: flex;
    min-width: 0;
    gap: 10px;
}

.hero-search-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
    background: #fff;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-category-links a {
    padding: 8px 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.hero-rail-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-rail-card.is-active,
.hero-rail-card:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 163, 74, 0.42);
}

.hero-rail-card img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.hero-rail-card span {
    min-width: 0;
    font-size: 13px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main {
    padding-top: 76px;
}

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

.soft-bg {
    background: #fff;
}

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

.section-heading h2,
.page-hero h1,
.rank-panel-head h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p,
.page-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.section-heading > a,
.text-link,
.rank-panel-head a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.all-movie-grid {
    margin-top: 26px;
}

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 163, 74, 0.34);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img {
    transform: scale(1.045);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(22, 163, 74, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: #cbd5e1;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card-compact p {
    -webkit-line-clamp: 2;
    min-height: 44px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.28));
}

.category-card:hover img {
    transform: scale(1.06);
}

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

.category-card span {
    font-size: 24px;
    font-weight: 950;
}

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

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.rank-panel,
.side-card {
    position: sticky;
    top: 100px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.rank-panel-head {
    margin-bottom: 18px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f9fafb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #ecfdf5;
}

.rank-number {
    color: var(--brand-dark);
    font-weight: 950;
}

.rank-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    position: relative;
    padding: 92px 0 78px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.34), transparent 28%),
        linear-gradient(135deg, #0f172a, #14532d);
}

.compact-page-hero {
    padding: 86px 0 66px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.page-hero span {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.2);
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-search {
    display: grid;
    gap: 8px;
}

.filter-search input,
.filter-selects select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    outline: 0;
}

.filter-panel span {
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

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

.filter-selects label {
    display: grid;
    gap: 8px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
}

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

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.82);
}

.category-cover img {
    width: 220px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    background: #111827;
}

.category-overview-copy h2 {
    margin: 12px 0 8px;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.category-overview-copy p {
    color: var(--muted);
}

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

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

.category-teaser-grid .movie-tags,
.category-teaser-grid .movie-card p {
    display: none;
}

.ranking-hero {
    padding-bottom: 110px;
}

.ranking-spot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.ranking-spot-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    border-radius: 22px;
    background: #111827;
}

.ranking-spot-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.ranking-spot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent);
}

.ranking-spot-card span,
.ranking-spot-card strong {
    position: relative;
    z-index: 2;
}

.ranking-spot-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--brand);
    font-weight: 950;
}

.ranking-spot-card strong {
    font-size: 15px;
    line-height: 1.35;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.ranking-poster span {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-card h2 {
    margin: 4px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.ranking-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.detail-main {
    padding-top: 76px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 56px;
    color: #fff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: -44px;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.1);
    opacity: 0.36;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.58)),
        radial-gradient(circle at 75% 40%, rgba(22, 163, 74, 0.28), transparent 34%);
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-copy h1 {
    max-width: 860px;
    margin: 18px 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 13px;
}

.detail-cover-card {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

.detail-cover-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #111827;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.36)),
        rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 38px rgba(22, 163, 74, 0.32);
    font-size: 30px;
}

.player-overlay strong {
    max-width: 72%;
    text-align: center;
    font-size: 22px;
}

.detail-text-card,
.side-card {
    margin-top: 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-text-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.detail-text-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 22px;
}

.detail-side .side-card {
    position: static;
    margin-top: 0;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 900;
}

.side-card dd {
    min-width: 0;
    margin: 0;
}

.site-footer {
    padding: 48px 0 28px;
    color: rgba(255, 255, 255, 0.78);
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 36px;
}

.footer-brand {
    display: inline-block;
    color: #fff;
    font-size: 26px;
    font-weight: 950;
    margin-bottom: 10px;
}

.footer-inner p {
    max-width: 560px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
        padding: 42px;
    }

    .hero-rail,
    .ranking-spot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-split,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .category-cover img {
        width: 100%;
        max-height: 320px;
        aspect-ratio: 16 / 9;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 68px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .hero {
        padding-top: 96px;
        min-height: auto;
    }

    .hero-slider {
        min-height: 680px;
        border-radius: 28px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 30px;
    }

    .hero-poster {
        max-width: 220px;
        transform: none;
    }

    .hero-controls {
        left: 26px;
        bottom: 24px;
    }

    .hero-search-panel {
        grid-template-columns: 1fr;
        margin-top: 18px;
        width: 100%;
    }

    .hero-search-panel form {
        flex-direction: column;
    }

    .hero-rail {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading {
        display: grid;
    }

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

    .category-teaser-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-cover-card {
        max-width: 230px;
        transform: none;
    }

    .footer-inner {
        display: grid;
    }

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

@media (max-width: 560px) {
    .container,
    .hero-inner,
    .header-inner,
    .mobile-nav,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-rail,
    .filter-selects,
    .ranking-spot-grid,
    .category-teaser-grid {
        grid-template-columns: 1fr;
    }

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

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

    .movie-card p,
    .movie-tags {
        display: none;
    }

    .ranking-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ranking-card h2 {
        font-size: 18px;
    }

    .ranking-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .side-card dl {
        grid-template-columns: 1fr;
    }
}
