:root {
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f3f4f6;
    --color-line: #e5e7eb;
    --color-dark: #0f172a;
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-accent: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f9fafb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(100% - 32px, 1280px);
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-text);
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #10b981);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.24);
    font-size: 14px;
}

.logo-text {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.nav-link {
    color: #374151;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-primary);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--color-soft);
}

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

.mobile-nav {
    display: none;
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--color-line);
}

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

.mobile-link {
    color: #374151;
    font-weight: 700;
}

.mobile-link.is-active {
    color: var(--color-primary);
}

.hero-carousel {
    position: relative;
    height: min(72vh, 720px);
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.25), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.12) 55%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1280px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 0 92px;
    color: #ffffff;
}

.hero-badges,
.hero-meta,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges span,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 5px 12px;
}

.hero-badges strong {
    color: #fbbf24;
    font-size: 15px;
}

.hero-content h1 {
    max-width: 720px;
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2vw, 20px);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.hero-meta span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 12px;
    vertical-align: middle;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.primary-button,
.ghost-button,
.section-more,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.home-search button {
    min-height: 46px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 14px 32px rgba(5, 150, 105, 0.24);
}

.primary-button:hover,
.home-search button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.16);
}

.ghost-button.light {
    color: #ffffff;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--color-primary);
}

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

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.quick-search-card h2 {
    margin: 10px 0 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.home-search {
    display: flex;
    gap: 12px;
}

.home-search input {
    min-width: 0;
    flex: 1;
    height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
}

.home-search input:focus,
.search-box input:focus,
.filter-select:focus {
    border-color: rgba(5, 150, 105, 0.7);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

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

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

.section-heading h2,
.rank-panel-head h2,
.page-hero h1,
.detail-info h1,
.article-card h2,
.quick-search-card h2 {
    color: var(--color-text);
    font-weight: 850;
}

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.section-more {
    height: 42px;
    padding: 0 18px;
    color: var(--color-primary);
    border: 1px solid rgba(5, 150, 105, 0.24);
    background: #ecfdf5;
}

.section-more:hover {
    color: #ffffff;
    background: var(--color-primary);
}

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

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

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

.catalog-grid {
    align-items: start;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: var(--shadow-lg);
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e5e7eb;
}

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

.movie-card-compact .movie-poster {
    aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 52%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    top: 44px;
    background: var(--color-accent);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info h3 a:hover {
    color: var(--color-primary);
}

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

.movie-card-compact .movie-info {
    padding: 12px;
}

.movie-card-compact .movie-info h3 {
    font-size: 14px;
}

.movie-card-compact .movie-desc {
    display: none;
}

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

.movie-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-panel,
.article-card,
.catalog-controls,
.category-card,
.category-overview-card {
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.rank-panel {
    padding: 22px;
}

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

.rank-panel-head h2 {
    margin: 10px 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

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

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

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

.rank-row[hidden] {
    display: none;
}

.rank-number {
    color: var(--color-primary);
    font-weight: 900;
}

.rank-row img {
    width: 48px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.rank-title {
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--color-accent);
    font-weight: 900;
}

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

.category-card {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.category-thumbs img {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 850;
}

.category-card p,
.category-overview-card p {
    margin: 0 0 14px;
    color: var(--color-muted);
}

.category-card span,
.category-overview-meta a {
    color: var(--color-primary);
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.simple-hero {
    padding: 86px 0;
    background:
        radial-gradient(circle at 80% 12%, rgba(16, 185, 129, 0.28), transparent 30%),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #065f46 100%);
}

.page-hero h1 {
    max-width: 820px;
    margin: 14px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

.category-hero {
    padding: 78px 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.56)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
}

.page-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.category-overview-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: #f3f4f6;
}

.category-cover img {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    object-fit: cover;
}

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

.category-overview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-muted);
    font-weight: 700;
}

.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    gap: 10px;
}

.search-box span {
    color: #374151;
    font-weight: 800;
}

.search-box input,
.filter-select {
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    outline: none;
    background: #ffffff;
}

.search-box input {
    min-width: 0;
    flex: 1;
    padding: 0 14px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-select {
    padding: 0 34px 0 12px;
    color: #374151;
}

.filter-result {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 750;
}

.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.22), transparent 30%),
        linear-gradient(135deg, #020617 0%, #0f172a 60%, #064e3b 100%);
    padding: 34px 0 62px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: center;
}

.player-wrap {
    min-width: 0;
}

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

.player-start span {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    font-size: 30px;
}

.player-start strong {
    font-size: 18px;
}

.movie-player.is-playing .player-start {
    display: none;
}

.detail-info h1 {
    margin: 14px 0 14px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.detail-meta-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags a {
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 750;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

.article-card {
    padding: 26px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.article-card h2:not(:first-child) {
    margin-top: 28px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.info-table div {
    padding: 14px;
    border-radius: 14px;
    background: #f9fafb;
}

.info-table span {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
}

.info-table strong,
.info-table a {
    display: block;
    margin-top: 4px;
    color: var(--color-text);
    font-weight: 850;
}

.info-table a:hover {
    color: var(--color-primary);
}

.side-card {
    height: fit-content;
}

.side-related {
    display: grid;
    gap: 12px;
}

.site-footer {
    margin-top: 88px;
    color: #d1d5db;
    background: #0f172a;
}

.footer-inner {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 48px 0 24px;
}

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

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #9ca3af;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

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

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

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

    .sticky-panel {
        position: static;
    }

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

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

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

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

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

    .hero-arrow {
        display: none;
    }

    .quick-search-card {
        grid-template-columns: 1fr;
    }

    .home-search {
        flex-direction: column;
    }

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

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

    .category-thumbs img {
        height: 180px;
    }

    .page-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container,
    .site-header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .hero-carousel {
        min-height: 580px;
    }

    .hero-content p {
        -webkit-line-clamp: 4;
    }

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

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-desc {
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    .catalog-controls,
    .search-box,
    .filter-group {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        flex-basis: auto;
    }

    .filter-select {
        width: 100%;
    }

    .detail-hero {
        padding-top: 22px;
    }

    .movie-player {
        border-radius: 18px;
    }

    .detail-meta-grid,
    .info-table {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 20px;
    }

    .rank-row {
        grid-template-columns: 32px 42px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .rank-row img {
        width: 42px;
        height: 56px;
    }
}
