:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #f97316;
    --blue: #2563eb;
    --green: #16a34a;
    --purple: #7c3aed;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.brand-name {
    font-size: 1.25rem;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--amber);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled .header-search,
.site-header.menu-open .header-search {
    border-color: var(--gray-200);
    background: var(--gray-100);
}

.search-mark {
    font-weight: 800;
}

.header-search input {
    width: 120px;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.header-search input::placeholder {
    color: currentColor;
    opacity: 0.75;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
    background: var(--gray-100);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input,
.page-search input,
.page-filter input,
.hero-search input {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 13px 18px;
    outline: 0;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-search input:focus,
.page-search input:focus,
.page-filter input:focus,
.hero-search input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.mobile-search button,
.page-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 800;
    white-space: nowrap;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-700);
    font-weight: 700;
}

.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: var(--gray-950);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.10));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 92px;
}

.hero-text {
    max-width: 760px;
    color: var(--white);
}

.hero-pills,
.detail-pills,
.card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-pills a,
.hero-pills span,
.detail-pills a,
.detail-pills span,
.card-pills a,
.card-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-pills a,
.detail-pills a,
.card-pills a {
    background: var(--amber);
}

.hero-text h1,
.hero-text .hero-movie-title {
    margin: 16px 0 12px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero-text .hero-movie-title {
    margin-top: 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    color: #fed7aa;
}

.hero-text p {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.hero-actions,
.detail-heading .btn {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.32);
}

.btn-glass {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 36px;
    background: var(--white);
}

.intro-strip {
    margin-top: -42px;
    position: relative;
    z-index: 10;
}

.intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.intro-inner h2 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.intro-inner p {
    margin: 0;
    color: var(--gray-600);
}

.hero-search,
.page-search {
    display: flex;
    gap: 10px;
}

.section {
    padding: 70px 0;
}

.white-section {
    background: var(--white);
}

.gray-section {
    background: var(--gray-50);
}

.section-head,
.category-line-head,
.search-result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.26);
    font-weight: 900;
}

.section-head h2,
.category-line-head h3,
.search-result-head h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.section-head p,
.category-line-head p,
.search-result-head p {
    margin: 5px 0 0;
    color: var(--gray-600);
}

.section-more,
.category-line-head a,
.text-link {
    color: var(--amber);
    font-weight: 900;
}

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

.category-tile {
    display: flex;
    flex-direction: column;
    min-height: 154px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.30), transparent 38%), linear-gradient(145deg, #fff7ed, #ffffff);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    color: var(--gray-900);
    font-size: 1.28rem;
    font-weight: 900;
}

.category-tile em {
    margin-top: 10px;
    color: var(--gray-600);
    font-style: normal;
    font-size: 0.95rem;
}

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

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

.poster-card {
    min-width: 0;
}

.poster-link {
    display: block;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow);
}

.poster-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-200);
}

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

.poster-link:hover .poster-image img,
.wide-card:hover img,
.mini-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70), transparent 55%);
    transition: opacity 0.3s ease;
}

.poster-link:hover .poster-shade {
    opacity: 1;
}

.poster-meta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.poster-link:hover .poster-meta {
    opacity: 1;
    transform: translateY(0);
}

.poster-meta span {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    font-size: 0.75rem;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.34);
    font-size: 0.92rem;
}

.poster-info {
    display: block;
    padding: 14px;
}

.poster-info strong {
    display: -webkit-box;
    min-height: 48px;
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.poster-link:hover strong,
.wide-card:hover h3,
.mini-card:hover h3 {
    color: var(--amber);
}

.poster-info em {
    display: -webkit-box;
    height: 43px;
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 0.86rem;
    font-weight: 800;
}

.poster-foot span:last-child {
    color: var(--amber);
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 999px;
}

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

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

.wide-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.wide-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 15px;
    background: var(--gray-200);
}

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

.wide-body {
    min-width: 0;
    padding: 4px 4px 4px 0;
}

.card-pills a,
.card-pills span {
    min-height: 26px;
    padding: 3px 10px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 0.78rem;
}

.card-pills a {
    color: #92400e;
    background: #fef3c7;
}

.wide-body h3 {
    margin: 14px 0 8px;
    color: var(--gray-900);
    font-size: 1.24rem;
    line-height: 1.32;
}

.wide-body p {
    display: -webkit-box;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 0.94rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags,
.detail-tags,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.detail-tags a,
.footer-tags a {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 0.8rem;
    font-weight: 800;
}

.home-category-list {
    display: grid;
    gap: 54px;
}

.home-category-block:not(:last-child) {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--gray-200);
}

.sub-hero {
    padding: 124px 0 54px;
    color: var(--white);
    background: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.30), transparent 26%), linear-gradient(145deg, #111827, #030712);
}

.sub-hero h1 {
    max-width: 780px;
    margin: 16px 0 12px;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    font-weight: 800;
}

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

.breadcrumb a::after {
    content: "/";
    margin-left: 10px;
    opacity: 0.55;
}

.page-filter,
.page-search {
    max-width: 680px;
    margin-top: 26px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-mosaic img {
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.category-overview-body h2 {
    margin: 6px 0 10px;
    font-size: 1.5rem;
}

.category-overview-body p {
    color: var(--gray-600);
    margin: 0 0 16px;
}

.movie-detail-hero {
    position: relative;
    min-height: 560px;
    padding: 110px 0 54px;
    color: var(--white);
    overflow: hidden;
    background: var(--gray-950);
}

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-bg-mask {
    background: linear-gradient(to top, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.74), rgba(3, 7, 18, 0.42));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.detail-heading {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    margin-top: 30px;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.detail-heading h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.detail-heading p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.detail-section {
    padding-top: 46px;
}

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

.detail-main-card,
.related-panel {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player {
    position: relative;
    overflow: hidden;
    background: var(--gray-950);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 2.1rem;
    box-shadow: 0 20px 46px rgba(217, 119, 6, 0.36);
}

.play-title {
    max-width: min(90%, 620px);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.36);
}

.detail-content {
    padding: 28px;
}

.light-pills a,
.light-pills span {
    color: var(--gray-700);
    background: var(--gray-100);
}

.light-pills a {
    color: #92400e;
    background: #fef3c7;
}

.detail-content h2,
.related-panel h2 {
    margin: 26px 0 12px;
    color: var(--gray-900);
    font-size: 1.38rem;
}

.detail-content h2:first-of-type {
    margin-top: 24px;
}

.detail-content p {
    margin: 0;
    color: var(--gray-700);
    white-space: pre-line;
}

.detail-tags a:hover {
    color: var(--white);
    background: var(--amber);
}

.review-box {
    padding: 22px;
    border-radius: 18px;
    background: #fffbeb;
    border-left: 5px solid var(--amber);
}

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

.related-panel h2 {
    margin-top: 0;
}

.related-list {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 9px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.mini-card:hover {
    background: var(--gray-50);
}

.mini-cover {
    position: relative;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-200);
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mini-body {
    min-width: 0;
}

.mini-body h3 {
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 0.94rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-body p {
    display: -webkit-box;
    margin: 0 0 5px;
    color: var(--gray-600);
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-meta {
    display: flex;
    gap: 7px;
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 54px 20px;
    color: var(--gray-500);
    text-align: center;
    font-size: 1.1rem;
}

.empty-state.show {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(to bottom, var(--gray-900), #000000);
    padding: 60px 0 24px;
}

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

.footer-brand {
    color: var(--white);
    font-size: 1.28rem;
}

.footer-about p,
.site-footer li,
.site-footer a {
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1.08rem;
}

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

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

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

.footer-tags a {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #6b7280;
    text-align: center;
    font-size: 0.9rem;
}

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

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

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

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

    .related-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-block;
    }

    .site-header.menu-open .mobile-panel {
        display: block;
    }

    .hero {
        height: 620px;
    }

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

    .intro-inner {
        grid-template-columns: 1fr;
    }

    .rank-grid,
    .large-rank {
        grid-template-columns: 1fr;
    }

    .detail-heading {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px;
        align-items: center;
    }

    .detail-poster {
        width: 170px;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .hero {
        height: 560px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .intro-strip {
        margin-top: -24px;
    }

    .intro-inner {
        padding: 20px;
    }

    .hero-search,
    .page-search {
        flex-direction: column;
    }

    .hero-search button,
    .page-search button {
        min-height: 46px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head,
    .category-line-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-tiles,
    .poster-grid,
    .all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .poster-info {
        padding: 12px;
    }

    .wide-card {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .wide-body h3 {
        font-size: 1rem;
        margin-top: 9px;
    }

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

    .sub-hero {
        padding-top: 96px;
    }

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

    .category-mosaic img {
        height: 132px;
    }

    .movie-detail-hero {
        padding-top: 92px;
    }

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

    .detail-poster {
        width: min(210px, 70vw);
    }

    .detail-content,
    .related-panel {
        padding: 18px;
    }

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

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

@media (max-width: 430px) {
    .poster-grid,
    .all-grid {
        grid-template-columns: 1fr 1fr;
    }

    .poster-info em {
        display: none;
    }

    .poster-info strong {
        min-height: 42px;
        font-size: 0.92rem;
    }

    .poster-foot {
        font-size: 0.78rem;
    }
}
