*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-deep: #4f46e5;
    --primary-soft: #dbeafe;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --surface: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1240px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
}

.site-logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
    transition: transform 0.25s ease;
}

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

.logo-copy {
    display: grid;
    line-height: 1.1;
}

.logo-copy strong,
.footer-brand strong {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep));
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 430px;
}

.header-search input,
.mobile-search input,
.page-search input,
.filter-input input {
    width: 100%;
    border: 2px solid #bfdbfe;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    padding: 12px 50px 12px 18px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.filter-input input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.header-search button,
.mobile-search button,
.page-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    padding: 8px 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover {
    background: var(--primary-deep);
    transform: translateY(-50%) scale(1.03);
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    min-width: 290px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    border-radius: 12px;
    color: #374151;
    padding: 9px 11px;
    font-size: 0.92rem;
}

.dropdown-panel a:hover {
    color: var(--primary);
    background: #eff6ff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--primary);
}

.mobile-menu {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    position: relative;
    margin: 8px 0 14px;
}

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

.mobile-links a,
.mobile-category-links a {
    border-radius: 12px;
    background: #f1f5f9;
    padding: 10px 12px;
    color: #374151;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: linear-gradient(120deg, #2563eb, #4f46e5 55%, #1d4ed8);
}

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(46px);
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-one {
    top: 62px;
    left: 9%;
}

.hero-glow-two {
    right: 9%;
    bottom: 54px;
    animation-delay: 1.2s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.62;
    }
    50% {
        transform: scale(1.16);
        opacity: 0.95;
    }
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.15);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.62), rgba(37, 99, 235, 0.36));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 78px 0 96px;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 780px;
    margin: 18px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

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

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 11px;
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
}

.hero-actions,
.page-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.panel-more,
.page-hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--primary);
    background: #fff;
    padding: 12px 22px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.primary-btn.full {
    width: 100%;
}

.primary-btn:hover,
.ghost-btn:hover,
.panel-more:hover,
.page-hero-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.ghost-btn,
.page-hero-links a {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    padding: 10px 18px;
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0) translateY(-8px);
}

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

.hero-poster span {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    color: #111827;
    background: #facc15;
    padding: 6px 12px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 1.6rem;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 26px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 46px;
    background: #fff;
}

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 22px;
}

.section-heading > span {
    width: 6px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}

.section-heading h2,
.rank-panel h2,
.related-aside h2,
.content-panel h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

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

.section-heading > a {
    margin-left: auto;
    border-radius: 999px;
    color: var(--primary);
    background: #eff6ff;
    padding: 10px 16px;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
    transition: opacity 0.25s ease;
}

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

.poster-year,
.poster-score,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.poster-year {
    top: 12px;
    right: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    padding: 5px 9px;
}

.poster-score {
    left: 12px;
    bottom: 12px;
    color: #111827;
    background: #facc15;
    padding: 5px 9px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3em;
    margin-bottom: 9px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--primary);
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin-bottom: 11px;
    color: #64748b;
    font-size: 0.82rem;
}

.card-tags span,
.chip-row span {
    border-radius: 999px;
    background: linear-gradient(90deg, #dbeafe, #e0e7ff);
    color: #1d4ed8;
    padding: 4px 8px;
    font-size: 0.76rem;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
}

.wide-panel,
.rank-panel,
.related-aside,
.content-panel,
.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.wide-panel {
    padding: 26px;
}

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

.category-tile a,
.category-main-link {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover,
.category-main-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}

.category-tile strong,
.category-main-link h2 {
    display: block;
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 1.18rem;
}

.category-tile p,
.category-main-link p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 0.92rem;
}

.category-tile div,
.category-sample-links {
    display: grid;
    gap: 6px;
}

.category-tile div a,
.category-sample-links a {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.rank-panel,
.related-aside {
    align-self: start;
    position: sticky;
    top: 104px;
    padding: 24px;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-link {
    display: grid;
    grid-template-columns: 28px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 15px;
    padding: 8px;
    transition: background 0.2s ease;
}

.mini-link:hover {
    background: #eff6ff;
}

.mini-link span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
    font-size: 0.82rem;
}

.mini-link img {
    width: 74px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-link strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.93rem;
}

.mini-link em {
    color: #f59e0b;
    font-style: normal;
    font-weight: 900;
}

.panel-more {
    width: 100%;
    margin-top: 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep));
    padding: 11px 16px;
}

.gradient-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(120deg, var(--primary), var(--primary-deep), #1d4ed8);
    padding: 42px;
    box-shadow: var(--shadow);
}

.gradient-section h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.gradient-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 28px;
    align-items: center;
    color: #fff;
    background: linear-gradient(120deg, #2563eb, #4f46e5 55%, #1d4ed8);
    padding: 78px max(16px, calc((100% - 1240px) / 2)) 74px;
}

.page-hero > div:first-child {
    width: min(760px, 100%);
}

.page-hero span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    font-weight: 900;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
}

.page-hero-links {
    margin-top: 24px;
}

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

.category-overview-card {
    overflow: hidden;
    padding: 0;
}

.category-main-link span {
    color: var(--primary);
    background: transparent;
    padding: 0;
}

.category-sample-links {
    padding: 18px 20px 20px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.filter-input {
    flex: 1;
}

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

.filter-selects select {
    min-width: 120px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 10px 12px;
    color: #334155;
    outline: 0;
}

.empty-state {
    border-radius: 18px;
    background: #fff;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.ranking-hero {
    grid-template-columns: minmax(0, 1fr) 420px;
}

.hero-rank-list {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
    backdrop-filter: blur(12px);
}

.hero-rank-list .mini-link {
    color: #fff;
}

.hero-rank-list .mini-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-rank-list .mini-link em {
    color: #fde68a;
}

.page-search {
    position: relative;
    max-width: 520px;
    margin-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 0;
    color: #64748b;
    font-size: 0.92rem;
}

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

.watch-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.78));
}

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

.play-button {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    background: #fff;
}

.play-button span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid var(--primary);
}

.cover-copy {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 24px;
    display: grid;
    gap: 6px;
    color: #fff;
}

.cover-copy strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.cover-copy em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.detail-side {
    align-self: start;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
}

.detail-side h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-side p {
    margin: 0 0 14px;
    color: var(--muted);
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.detail-facts span {
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

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

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

.content-panel {
    padding: 26px;
}

.content-panel p {
    margin: 16px 0 0;
    color: #334155;
    font-size: 1.02rem;
}

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

.meta-panel dl div {
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px;
}

.meta-panel dt {
    color: #64748b;
    font-size: 0.82rem;
}

.meta-panel dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 900;
}

.site-footer {
    margin-top: 40px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-brand p,
.site-footer p {
    margin: 8px 0 0;
    color: #cbd5e1;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    color: #94a3b8;
    text-align: center;
}

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

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

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

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

    .rank-panel,
    .related-aside {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 68px;
    }

    .logo-copy strong {
        font-size: 1.05rem;
    }

    .logo-copy em {
        display: none;
    }

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        gap: 28px;
        padding-top: 52px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.1rem, 12vw, 3.8rem);
    }

    .hero-actions,
    .page-hero-links,
    .filter-bar,
    .filter-selects,
    .gradient-section {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-controls {
        width: calc(100% - 32px);
        justify-content: center;
    }

    .section-wrap {
        padding: 48px 0;
    }

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

    .section-heading > a {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .meta-panel dl {
        grid-template-columns: 1fr;
    }

    .filter-selects select {
        width: 100%;
    }

    .page-hero {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .play-button {
        width: 72px;
        height: 72px;
    }

    .cover-copy {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}
