:root {
    --page-bg: #f8faf9;
    --text: #1f2937;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.12);
    --primary: #059669;
    --primary-dark: #047857;
    --primary-soft: #d1fae5;
    --cyan: #0891b2;
    --surface: #ffffff;
    --surface-strong: #f0fdfa;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.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: 60;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.96), rgba(8, 145, 178, 0.94));
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(4, 120, 87, 0.25);
    backdrop-filter: blur(14px);
}

.header-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.site-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

.desktop-nav a {
    position: relative;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: #ffffff;
}

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

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

.nav-search {
    display: flex;
    align-items: center;
    width: 270px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 6px 11px 16px;
    background: transparent;
    color: #ffffff;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.nav-search button {
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0 14px;
    cursor: pointer;
    font-size: 20px;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
}

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

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

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.section-heading h2 span {
    display: inline-block;
    width: 8px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--cyan));
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-weight: 800;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

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

.hero-image-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.75), transparent 38%),
                linear-gradient(135deg, #064e3b, #0f172a 62%, #083344);
}

.hero-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.22)),
                linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0) 42%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 88px 24px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

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

.hero-kicker {
    margin: 0 0 16px;
    color: #a7f3d0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.compact-hero h1,
.detail-title-row h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-one-line {
    margin: 24px 0 0;
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.45;
    color: #ecfeff;
    font-weight: 800;
}

.hero-summary {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.hero-pills,
.movie-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.tag-pill {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

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

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

.primary-button {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.34);
}

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

.ghost-button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #0e7490);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.45);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.75);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.poster-frame {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.85), transparent 38%),
                linear-gradient(135deg, #064e3b, #0f172a 58%, #083344);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #ffffff;
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.poster-frame.is-missing .poster-fallback {
    display: flex;
}

.poster-frame.is-missing img {
    display: none;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
    align-items: center;
    gap: 28px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    box-shadow: var(--soft-shadow);
    border: 1px solid #d1fae5;
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

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

.search-panel input {
    width: 100%;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    background: #ffffff;
    padding: 15px 20px;
    outline: 0;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.search-panel input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.horizontal-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    scroll-snap-align: start;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-card .poster-frame {
    aspect-ratio: 16 / 10;
}

.movie-card-compact .poster-frame {
    aspect-ratio: 16 / 9;
}

.quality-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(234, 88, 12, 0.94);
}

.play-hover {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 26px;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-tags {
    margin-top: 14px;
}

.movie-tags span {
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 210px;
    border-radius: var(--radius-lg);
    padding: 22px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    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 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile em,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
    font-style: normal;
    font-weight: 950;
}

.category-tile em {
    margin-top: 6px;
    color: #a7f3d0;
    font-style: normal;
    font-weight: 900;
}

.category-tile small {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-panel,
.info-card,
.player-card,
.category-overview-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ranking-panel {
    padding: 22px;
}

.ranking-panel-head,
.category-overview-head,
.player-heading,
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ranking-panel-head {
    align-items: center;
    margin-bottom: 14px;
}

.ranking-panel h2,
.info-card h2,
.player-card h2,
.category-overview-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.ranking-panel-head a,
.category-overview-head a {
    color: var(--primary-dark);
    font-weight: 900;
}

.ranking-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.ranking-number {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #ecfdf5;
    color: var(--primary-dark);
    font-weight: 950;
}

.ranking-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-weight: 900;
}

.ranking-info {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 0 24px;
}

.compact-hero > div {
    min-height: 280px;
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 64px);
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.48), transparent 34%),
                linear-gradient(135deg, #064e3b, #0f766e 48%, #0f172a);
    box-shadow: var(--shadow);
}

.compact-hero p:not(.hero-kicker) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    margin-bottom: 18px;
}

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.filter-chips {
    margin: 20px 0;
}

.filter-chips button {
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    background: var(--primary);
    color: #ffffff;
}

.result-count {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 900;
}

[data-movie-card].is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    color: #ffffff;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(1px) saturate(1.08);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58)),
                linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 45%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 70px;
}

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

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

.detail-title-row p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.7;
}

.detail-pills {
    margin-top: 28px;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 22px;
}

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

.player-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.player-heading span {
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--primary-dark);
    padding: 7px 12px;
    font-weight: 900;
}

.video-shell {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000000;
}

.hls-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.video-overlay-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.video-overlay-play span {
    margin-left: 5px;
    font-size: 34px;
}

.video-overlay-play.is-hidden {
    display: none;
}

.video-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    color: #ffffff;
    padding: 8px 13px;
    font-size: 13px;
}

.info-card {
    padding: 24px;
}

.info-card p {
    color: #374151;
    line-height: 1.9;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.detail-meta-list div {
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px;
}

.detail-meta-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-meta-list dd {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 900;
}

.detail-side {
    position: sticky;
    top: 96px;
}

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

.related-list .movie-card {
    box-shadow: none;
    border: 1px solid var(--line);
}

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

.wide-card {
    grid-column: 1 / -1;
}

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

.stats-grid div {
    border-radius: 18px;
    background: #ecfdf5;
    padding: 20px;
}

.stats-grid strong {
    display: block;
    color: var(--primary-dark);
    font-size: 34px;
    font-weight: 950;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 800;
}

.feature-list {
    margin: 0;
    padding-left: 22px;
    color: #374151;
    line-height: 2;
}

.site-footer {
    margin-top: 60px;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    color: #cbd5e1;
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 36px;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.site-footer p {
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 4px 0;
}

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

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

    .header-shell {
        justify-content: space-between;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .detail-side,
    .sticky-panel {
        position: static;
    }

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

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

    .site-logo {
        font-size: 20px;
    }

    .mobile-nav {
        padding: 0 16px 18px;
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 74px 18px 76px;
    }

    .hero-copy h1,
    .compact-hero h1,
    .detail-title-row h1 {
        font-size: 42px;
    }

    .hero-one-line,
    .detail-title-row p {
        font-size: 18px;
    }

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

    .hero-arrow {
        display: none;
    }

    .content-section,
    .page-hero,
    .detail-hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-panel,
    .ranking-panel-head,
    .category-overview-head,
    .player-heading,
    .detail-title-row,
    .section-heading {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .search-panel {
        display: grid;
    }

    .horizontal-scroller {
        grid-auto-columns: 82%;
    }

    .movie-grid,
    .movie-grid-latest,
    .mini-card-row,
    .category-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-meta-list,
    .stats-grid {
        grid-template-columns: 1fr;
    }

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