:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --teal: #0f766e;
    --dark: #020617;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
    color: var(--text);
    min-height: 100vh;
}

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: 100;
    color: #ffffff;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0));
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled::before {
    opacity: 0;
}

.header-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 21px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

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

.brand-copy strong {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.78;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: currentColor;
    opacity: 0.9;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    opacity: 1;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.active {
    color: var(--emerald-dark);
    background: rgba(16, 185, 129, 0.12);
}

.header-search {
    position: relative;
    width: 255px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 4px;
}

.site-header.is-scrolled .header-search {
    background: #f8fafc;
    border-color: var(--line);
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
}

.header-search input {
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.wide-search input::placeholder,
.filter-bar input::placeholder {
    color: currentColor;
    opacity: 0.58;
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: 420px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
}

.search-results.is-open {
    display: grid;
    gap: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #ecfdf5;
}

.search-result-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #064e3b, #0f766e);
}

.search-result-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-item small {
    color: var(--muted);
    line-height: 1.4;
}

.mobile-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: currentColor;
    cursor: pointer;
}

.mobile-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle span:nth-child(1) {
    top: 13px;
}

.mobile-toggle span:nth-child(2) {
    top: 20px;
}

.mobile-toggle span:nth-child(3) {
    top: 27px;
}

.mobile-panel {
    display: none;
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: var(--shadow);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-search {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--dark);
}

.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-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5.8s ease;
    background: linear-gradient(135deg, #064e3b, #0f172a);
}

.hero-slide.is-active > img {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(16, 185, 129, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.1) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: center;
    gap: 48px;
    padding-top: 90px;
    color: #ffffff;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow,
.section-kicker,
.tile-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-info-card .eyebrow {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(167, 243, 208, 0.2);
}

.hero h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-info-card p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: #047857;
    background: #ecfdf5;
}

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

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.28);
}

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

.btn.ghost.light {
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
}

.btn.full {
    width: 100%;
    margin-top: 22px;
}

.hero-panel {
    align-self: end;
    margin-bottom: 80px;
    padding: 26px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-panel span {
    display: block;
    color: #a7f3d0;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-panel strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 62px;
    background: #34d399;
}

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

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-card h2,
.section-heading h2,
.taxonomy-card h2,
.metadata-card h2,
.detail-article h2 {
    margin: 8px 0 0;
    color: var(--text);
    letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-heading h2 {
    font-size: clamp(27px, 4vw, 42px);
}

.quick-search-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 10px 0 0;
}

.wide-search {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.wide-search input {
    min-height: 46px;
    padding: 0 12px;
    color: var(--text);
}

.section {
    padding: 74px 0;
}

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

.section-more,
.compact-heading a {
    color: var(--emerald-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #020617);
}

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

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.92);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
    color: var(--emerald-dark);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.compact-card h3 {
    font-size: 17px;
}

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

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

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #064e3b, #0f766e 52%, #0f172a);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile .tile-kicker {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.15);
}

.category-tile strong {
    display: block;
    margin-top: 20px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.category-tile p {
    max-width: 92%;
    margin: 10px 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.tile-sample {
    display: inline-flex;
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 900;
}

.ranking-panel,
.taxonomy-card,
.metadata-card,
.detail-article,
.player-card,
.detail-info-card {
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--soft-shadow);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.compact-heading {
    align-items: center;
    margin-bottom: 18px;
}

.compact-heading h2 {
    font-size: 28px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 62px 1fr 18px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.22);
    transform: translateX(4px);
}

.rank-number {
    color: var(--emerald-dark);
    font-size: 22px;
    font-weight: 950;
}

.rank-item img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #064e3b, #020617);
}

.rank-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.rank-copy small {
    color: var(--muted);
    line-height: 1.5;
}

.rank-arrow {
    color: var(--emerald-dark);
    font-size: 26px;
}

.page-main {
    min-height: 100vh;
}

.page-hero {
    position: relative;
    padding: 145px 0 80px;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.26), transparent 28%),
        linear-gradient(135deg, #020617, #064e3b 52%, #0f766e);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
}

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

.taxonomy-card {
    padding: 24px;
}

.taxonomy-card h2 {
    font-size: 26px;
}

.taxonomy-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.taxonomy-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #065f46;
    background: #ecfdf5;
    font-weight: 800;
    font-size: 13px;
}

.filter-bar {
    position: sticky;
    top: 92px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--text);
    border: 1px solid var(--line);
}

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

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 800;
}

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

.detail-main {
    background: linear-gradient(135deg, #f8fafc, #ffffff 48%, #eef2ff);
}

.detail-hero {
    padding: 110px 0 44px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(16, 185, 129, 0.28), transparent 30%),
        linear-gradient(135deg, #020617, #064e3b 58%, #0f172a);
}

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

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

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 360px;
    gap: 24px;
    align-items: stretch;
}

.player-card {
    overflow: hidden;
    background: #020617;
    border-color: rgba(255, 255, 255, 0.1);
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.36);
    font-size: 34px;
    font-weight: 900;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.play-layer:hover .play-circle {
    transform: scale(1.08);
}

.detail-info-card {
    overflow: hidden;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.detail-info-card img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    background: linear-gradient(135deg, #064e3b, #020617);
}

.detail-info-card > div {
    padding: 22px;
}

.detail-info-card h1 {
    margin: 14px 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.detail-info-card p {
    font-size: 15px;
    line-height: 1.7;
}

.detail-tags {
    margin-top: 16px;
}

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

.detail-article,
.metadata-card {
    padding: 28px;
}

.detail-article h2,
.metadata-card h2 {
    font-size: 28px;
}

.detail-article p {
    color: #334155;
    font-size: 17px;
    line-height: 1.92;
}

.metadata-card {
    position: sticky;
    top: 96px;
}

.metadata-card dl {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.metadata-card div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

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

.metadata-card dd {
    margin: 0;
    line-height: 1.55;
    font-weight: 700;
}

.metadata-card a {
    color: var(--emerald-dark);
}

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

.site-footer {
    margin-top: 40px;
    background: #020617;
    color: #cbd5e1;
}

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

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-brand p {
    margin: 5px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

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

.copyright {
    margin: 22px 0 0;
    color: #64748b;
    font-size: 13px;
}

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

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

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-panel {
        align-self: auto;
        margin: 0 0 68px;
    }

    .quick-search-card,
    .split-layout,
    .taxonomy-section,
    .detail-grid,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .metadata-card {
        position: relative;
        top: auto;
    }

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

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

@media (max-width: 680px) {
    .container,
    .header-shell,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-copy small {
        display: none;
    }

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

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .hero-desc,
    .page-hero p {
        font-size: 16px;
    }

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

    .quick-search-card {
        padding: 20px;
    }

    .section {
        padding: 48px 0;
    }

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

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-grid.large,
    .category-movie-grid,
    .rank-page-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        position: relative;
        top: auto;
        grid-template-columns: 1fr;
    }

    .detail-info-card img {
        height: 220px;
    }

    .detail-info-card h1 {
        font-size: 28px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .metadata-card div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
