:root {
    --color-ink: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-card: #ffffff;
    --color-line: #f3e8d7;
    --color-amber: #f59e0b;
    --color-orange: #f97316;
    --color-red: #ef4444;
    --color-blue: #0ea5e9;
    --color-purple: #a855f7;
    --color-green: #10b981;
    --shadow-soft: 0 14px 35px rgba(146, 64, 14, 0.13);
    --shadow-card: 0 10px 24px rgba(31, 41, 55, 0.1);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.85), #ffffff 42%, rgba(254, 243, 199, 0.65));
}

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

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

button, input, select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #b45309;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #ead9c1;
    outline: none;
    background: #ffffff;
    color: var(--color-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 11px 46px 11px 18px;
    border-radius: 999px;
}

.header-search button {
    position: absolute;
    right: 6px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    color: #92400e;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff7ed;
    color: #92400e;
    border-radius: 14px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}

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

.mobile-panel nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

.mobile-link {
    padding: 12px 14px;
    color: #374151;
    background: #ffffff;
    border-radius: 12px;
}

.mobile-link.is-active {
    color: #b45309;
    background: #fff7ed;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
}

.mobile-search button,
.wide-search button,
.primary-button,
.rank-watch {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.28);
    cursor: pointer;
}

.mobile-search button {
    padding: 0 18px;
    border-radius: 14px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: 620px;
    opacity: 0;
    visibility: hidden;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.85)), var(--hero-image);
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.32), transparent 34%), radial-gradient(circle at 85% 35%, rgba(239, 68, 68, 0.26), transparent 32%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 54px;
    align-items: center;
    padding: 82px 0 104px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    color: #ffedd5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-copy h1,
.inner-hero h1,
.detail-title-wrap h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(42px, 8vw, 86px);
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.hero-tags span,
.detail-tags span {
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button:hover,
.rank-watch:hover,
.wide-search button:hover,
.mobile-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.34);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    aspect-ratio: 3 / 4.15;
}

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

.hero-poster span,
.play-mark {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

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

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

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
}

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

.search-band {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 460px);
    gap: 26px;
    align-items: center;
    margin-top: -46px;
    padding: 28px;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-band h2,
.section-heading h2,
.side-card h2,
.article-block h2,
.overview-main h2 {
    margin: 0;
}

.search-band h2 {
    font-size: 28px;
}

.search-band p {
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.wide-search {
    display: flex;
    gap: 10px;
}

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
}

.wide-search button {
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
}

.content-section,
.split-section,
.detail-layout,
.rank-page-list,
.search-page-box,
.filter-panel {
    margin-top: 64px;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 850;
}

.section-heading a {
    color: #b45309;
    font-weight: 750;
}

.section-line {
    display: inline-block;
    width: 6px;
    height: 34px;
    background: linear-gradient(180deg, var(--color-amber), #facc15);
    border-radius: 999px;
}

.section-line.blue {
    background: linear-gradient(180deg, var(--color-blue), #67e8f9);
}

.section-line.red {
    background: linear-gradient(180deg, var(--color-red), var(--color-orange));
}

.section-line.purple {
    background: linear-gradient(180deg, var(--color-purple), #ec4899);
}

.section-line.green {
    background: linear-gradient(180deg, var(--color-green), #34d399);
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.movie-card.small .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

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

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

.play-mark {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.duration,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.duration {
    right: 12px;
    padding: 6px 9px;
    background: rgba(0, 0, 0, 0.55);
}

.rank-badge {
    left: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.card-body {
    padding: 16px;
}

.card-meta,
.rank-meta,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-muted);
    font-size: 12px;
}

.card-body h2 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h2 a:hover,
.rank-content h2 a:hover,
.overview-links a:hover {
    color: #b45309;
}

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

.tag-row span {
    color: #92400e;
    background: #fff7ed;
}

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

.latest-panel,
.ranking-panel,
.side-card,
.article-block,
.search-page-box,
.filter-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.latest-panel,
.ranking-panel,
.search-page-box {
    padding: 24px;
}

.compact-heading {
    margin-bottom: 18px;
}

.mini-list,
.rank-page-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 104px 48px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #fef3c7;
}

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

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    border-radius: 14px;
}

.rank-content h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 850;
}

.rank-content p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 40px;
    border-radius: 12px;
    font-weight: 800;
}

.home-rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-rank-list a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 14px;
}

.home-rank-list span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    border-radius: 9px;
}

.home-rank-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-rank-list em {
    color: #b45309;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

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

.category-tile,
.overview-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-tile span,
.overview-main span {
    display: block;
    margin-bottom: 12px;
    font-size: 34px;
}

.category-tile strong,
.overview-main h2 {
    display: block;
    font-size: 20px;
    font-weight: 850;
}

.category-tile em,
.overview-main p {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
    font-style: normal;
    line-height: 1.6;
}

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

.overview-card {
    background: #ffffff;
}

.overview-main {
    display: block;
}

.overview-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(245, 158, 11, 0.12);
}

.overview-links a {
    overflow: hidden;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inner-hero {
    padding: 72px 0 58px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.36), transparent 32%), linear-gradient(135deg, #7c2d12, #111827 62%, #431407);
}

.inner-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 6vw, 66px);
}

.inner-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 12px;
    padding: 18px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
}

.rank-page-list {
    padding-bottom: 36px;
}

.search-page-box {
    min-height: 420px;
}

.page-search {
    max-width: 760px;
}

.search-result-title {
    margin: 28px 0 22px;
    font-size: 24px;
    font-weight: 850;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 62px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)), var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.24), transparent 36%);
}

.detail-head {
    position: relative;
}

.detail-title-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-title-wrap > img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-title-wrap h1 {
    max-width: 920px;
    font-size: clamp(36px, 5vw, 66px);
}

.detail-title-wrap p {
    max-width: 840px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

.detail-tags {
    margin-top: 20px;
}

.detail-stats {
    gap: 12px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
}

.detail-stats span {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

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

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

.player-section {
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-layer span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    background: rgba(245, 158, 11, 0.96);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.player-layer.is-error span {
    width: auto;
    height: auto;
    padding: 12px 18px;
    font-size: 15px;
    background: rgba(239, 68, 68, 0.94);
    border-radius: 14px;
}

.article-block {
    padding: 28px;
}

.article-block h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 850;
}

.article-block p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 98px;
}

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--color-muted);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.side-link {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    color: #92400e;
    background: #fff7ed;
    border-radius: 12px;
    font-weight: 800;
}

.related-section {
    margin-bottom: 44px;
}

.site-footer {
    margin-top: 82px;
    padding: 50px 0 28px;
    background: linear-gradient(135deg, #f9fafb, #ffffff, #fff7ed);
    border-top: 1px solid rgba(245, 158, 11, 0.12);
}

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

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
    color: #b45309;
}

.site-footer p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.footer-links a {
    color: #4b5563;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 22px;
    color: var(--color-muted);
    font-size: 14px;
    border-top: 1px solid rgba(245, 158, 11, 0.12);
}

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

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

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

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

    .detail-side {
        position: static;
    }

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

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

    .menu-button {
        display: grid;
        place-items: center;
    }

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

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 58px 0 92px;
    }

    .hero-poster {
        max-width: 300px;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

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

    .detail-title-wrap > img {
        max-width: 220px;
    }

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

    .rank-item {
        grid-template-columns: 88px 38px 1fr;
    }

    .rank-watch {
        grid-column: 3;
        justify-self: start;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

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

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

    .card-body {
        padding: 13px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .hero-copy p,
    .inner-hero p,
    .detail-title-wrap p {
        font-size: 16px;
    }

    .search-band,
    .latest-panel,
    .ranking-panel,
    .search-page-box,
    .article-block,
    .side-card {
        padding: 18px;
    }

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

    .rank-item {
        grid-template-columns: 76px 34px 1fr;
        gap: 10px;
    }

    .rank-cover {
        aspect-ratio: 3 / 4;
    }

    .rank-content p {
        -webkit-line-clamp: 1;
    }

    .hero-poster span,
    .player-layer span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
