
:root {
    color-scheme: dark;
    --bg: #070714;
    --bg-soft: #111126;
    --bg-card: rgba(21, 18, 44, 0.78);
    --bg-card-strong: rgba(36, 26, 72, 0.88);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f7f2ff;
    --muted: #b9aecf;
    --subtle: #897da3;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --amber: #facc15;
    --blue: #38bdf8;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.28), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.24), transparent 34%),
        linear-gradient(180deg, #070714 0%, #0d0b1c 42%, #080814 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 76%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    width: min(100%, 1480px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(37, 31, 89, 0.95), rgba(88, 28, 135, 0.94), rgba(131, 24, 67, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.26);
}

.header-inner {
    width: min(100% - 32px, var(--container));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a102c;
    background: linear-gradient(135deg, var(--amber), #fff4a8, var(--pink));
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.44);
}

.logo-text {
    font-size: 1.42rem;
    background: linear-gradient(90deg, #fff5bf, #ffd6ef, #d7c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    width: 300px;
    flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 11px 15px;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(236, 72, 153, 0.8);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: #1a102c;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hero-shell {
    width: min(100% - 32px, 1380px);
    min-height: 640px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
    gap: 22px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0b18;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 580ms ease, visibility 580ms ease, transform 900ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 20, 0.92) 0%, rgba(12, 8, 28, 0.72) 42%, rgba(12, 8, 28, 0.28) 100%),
        linear-gradient(0deg, rgba(7, 7, 20, 0.92) 0%, rgba(7, 7, 20, 0.1) 52%);
}

.hero-content {
    position: relative;
    max-width: 720px;
    padding: 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffe58d;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-content p,
.page-hero p,
.detail-copy .lead-text {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.8;
}

.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: 5px 10px;
    border-radius: 999px;
    color: #f3e8ff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tag-row.large span {
    min-height: 34px;
    padding-inline: 13px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    color: #1a102c;
    background: linear-gradient(135deg, var(--amber), #f9a8d4 55%, #c4b5fd);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.26);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-dots {
    position: absolute;
    left: 52px;
    bottom: 28px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dots button {
    width: 30px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
    width: 52px;
    background: linear-gradient(90deg, var(--amber), var(--pink));
}

.hero-side {
    display: grid;
    gap: 18px;
}

.glass-panel,
.ranking-panel,
.player-card,
.watch-info,
.detail-article,
.empty-state {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.glass-panel {
    padding: 28px;
}

.glass-panel h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.08;
}

.glass-panel p {
    color: var(--muted);
    line-height: 1.7;
}

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

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.category-chip-row a {
    padding: 8px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(139, 92, 246, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-list {
    display: grid;
    gap: 10px;
}

.hero-side-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 180ms ease, background 180ms ease;
}

.hero-side-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.13);
}

.hero-side-item span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 900;
    color: #1a102c;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
}

.hero-side-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-side-item em,
.card-meta,
.ranking-copy em {
    color: var(--subtle);
    font-style: normal;
}

.content-section {
    width: min(100% - 32px, var(--container));
    margin: 48px auto 0;
}

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

.section-head.small {
    margin-bottom: 14px;
}

.section-head h2,
.watch-info h2,
.detail-article h2,
.empty-state h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
}

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

.section-head a,
.text-link {
    color: #ffe58d;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: #17132c;
    box-shadow: 0 15px 44px rgba(0, 0, 0, 0.24);
    transform: translateZ(0);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 320ms ease, opacity 320ms ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.74;
}

.category-card span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 12%, rgba(7, 7, 20, 0.92));
}

.category-card strong,
.category-card p {
    position: relative;
}

.category-card strong {
    font-size: 1.22rem;
}

.category-card p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.55;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.42);
    background: var(--bg-card-strong);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111126;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(7, 7, 20, 0.82));
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    color: #1a102c;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
    transition: opacity 220ms ease, transform 220ms ease;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    background: rgba(236, 72, 153, 0.76);
    backdrop-filter: blur(10px);
}

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

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.82rem;
}

.card-meta a {
    color: #f0abfc;
}

.movie-card h2 {
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card p {
    min-height: 43px;
    margin: 8px 0 12px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card .tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.74rem;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
}

.ranking-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 900;
    color: #1a102c;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
}

.ranking-item strong,
.ranking-item p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-item strong {
    -webkit-line-clamp: 1;
}

.ranking-item p {
    margin: 5px 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
    width: min(100% - 32px, var(--container));
    margin: 28px auto 0;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(236, 72, 153, 0.20)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-hero {
    min-height: 320px;
    display: grid;
    align-items: end;
    padding: 42px;
}

.compact-page-hero {
    min-height: 260px;
}

.category-page-hero {
    min-height: 300px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 220px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.filter-bar select {
    appearance: none;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

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

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #1a102c;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
}

.ranking-poster img {
    width: 92px;
    height: 124px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-copy h2 {
    margin: 7px 0;
    font-size: 1.22rem;
}

.ranking-copy p {
    min-height: 0;
    margin: 0 0 8px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    padding: 34px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
}

.breadcrumb a {
    color: #f0abfc;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.player-card {
    padding: 14px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(7, 7, 20, 0.20), rgba(7, 7, 20, 0.78));
    transition: opacity 220ms ease, visibility 220ms ease;
}

.play-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a102c;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--amber), #f9a8d4);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.35);
}

.play-overlay strong {
    font-size: 1.15rem;
}

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

.watch-info {
    padding: 22px;
}

.watch-info dl {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.watch-info dl div {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.watch-info dt {
    color: var(--subtle);
}

.watch-info dd {
    margin: 0;
    color: #fff;
}

.detail-text-section {
    display: grid;
    gap: 18px;
}

.detail-article {
    padding: 28px;
}

.detail-article h2 + p {
    margin-top: 12px;
}

.detail-article p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 1.03rem;
}

.detail-article p + h2 {
    margin-top: 26px;
}

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

.next-prev a {
    padding: 16px 18px;
    border-radius: 18px;
    color: #f3e8ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-section {
    max-width: 920px;
}

.search-page-form {
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.search-results {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.search-result-card img {
    width: 92px;
    height: 124px;
    border-radius: 16px;
    object-fit: cover;
}

.search-result-card h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

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

.empty-state {
    padding: 32px;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.site-footer {
    margin-top: 70px;
    padding: 38px 0;
    background: rgba(3, 3, 10, 0.74);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 28px;
}

.footer-brand p,
.footer-links a {
    color: var(--muted);
}

.footer-brand p {
    max-width: 460px;
    line-height: 1.7;
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

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

.is-hidden {
    display: none !important;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-shell,
    .hero-slider {
        min-height: 560px;
    }

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 860px) {
    .header-inner {
        gap: 10px;
    }

    .header-search {
        display: none;
    }

    .hero-content {
        padding: 34px 24px 62px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.1rem, 12vw, 4rem);
    }

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

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

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

    .ranking-row,
    .search-result-card {
        grid-template-columns: 70px 1fr;
    }

    .ranking-row .text-link,
    .search-result-card .text-link {
        grid-column: 1 / -1;
    }

    .ranking-poster {
        display: none;
    }

    .next-prev,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, var(--container));
        height: 64px;
    }

    .logo-text {
        font-size: 1.18rem;
    }

    .hero-shell,
    .content-section,
    .page-hero,
    .detail-hero {
        width: min(100% - 20px, var(--container));
    }

    .hero-shell,
    .hero-slider {
        min-height: 520px;
    }

    .hero-side {
        display: none;
    }

    .hero-dots {
        left: 24px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        gap: 12px;
    }

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

    .movie-card p {
        display: none;
    }

    .page-hero,
    .detail-hero,
    .detail-article {
        padding: 24px;
    }

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

    .watch-info dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
