:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --slate: #0f172a;
    --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 18px 45px rgba(15, 23, 42, 0.13);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 42%, var(--gray-50) 100%);
    font-family: Inter, 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%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1200px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    transform: translateZ(0);
    transition: transform 0.22s ease;
}

.brand-icon.small {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.brand:hover .brand-icon {
    transform: scale(1.06);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

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

.nav-link,
.desktop-nav > a {
    color: var(--gray-700);
    font-weight: 650;
    padding: 22px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.desktop-nav > a:hover {
    color: var(--blue);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 58px;
    left: 50%;
    width: 270px;
    transform: translateX(-50%) translateY(10px);
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 9px 10px;
    color: var(--gray-700);
    border-radius: 10px;
    font-size: 14px;
    transition: 0.18s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: var(--gray-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 12px 22px 18px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

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

.mobile-nav a {
    padding: 10px 12px;
    color: var(--gray-700);
    border-radius: 12px;
    font-weight: 650;
}

.mobile-nav a:hover {
    color: var(--blue);
    background: var(--gray-50);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 48%, #14b8a6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 54% 82%, rgba(8, 145, 178, 0.32), transparent 34%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.hero-slides {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 22px 120px;
}

.hero-slide {
    position: absolute;
    inset: 72px 22px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: -130px -90px;
    z-index: -1;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.08);
    transform: scale(1.04);
}

.hero-copy {
    color: var(--white);
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    color: #cffafe;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #ecfeff;
    font-size: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-tags span {
    padding: 7px 12px;
    color: #f0fdfa;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.btn.primary.full {
    width: 100%;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.btn.ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn.ghost.dark {
    color: var(--gray-900);
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.hero-card {
    position: relative;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.38);
    transform: translateZ(0);
    transition: 0.28s ease;
}

.hero-card:hover {
    transform: scale(1.03);
}

.hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-card-shade {
    position: absolute;
    inset: auto 0 0;
    padding: 48px 28px 28px;
    display: grid;
    gap: 6px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.hero-card-shade strong {
    font-size: 26px;
    line-height: 1.15;
}

.hero-card-shade em {
    color: #a5f3fc;
    font-style: normal;
}

.hero-card-play,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    box-shadow: var(--soft-shadow);
}

.hero-card-play {
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
    transform: translate(-50%, -50%);
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    width: min(1200px, calc(100% - 44px));
    transform: translateX(-50%);
    display: grid;
    gap: 14px;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    outline: 0;
    border-radius: 14px;
    background: var(--white);
    color: var(--gray-900);
}

.hero-search input {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
}

.hero-search button {
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.hero-category-strip,
.hero-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-category-strip::-webkit-scrollbar,
.hero-thumbs::-webkit-scrollbar {
    display: none;
}

.hero-category-strip a {
    flex: 0 0 auto;
    padding: 8px 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-thumb {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.24);
    cursor: pointer;
    opacity: 0.72;
    transition: 0.2s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 750;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 62px 22px;
}

.soft-bg {
    max-width: none;
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.soft-bg > .section-heading,
.soft-bg > .movie-grid,
.soft-bg > .showcase-grid,
.soft-bg > .rank-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading > div {
    min-width: 0;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card.compact .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-badge,
.rank-badge,
.poster-year {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 850;
    border-radius: 999px;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: var(--red);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.poster-year {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.68);
}

.poster-play {
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: 0.22s ease;
}

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

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    color: var(--gray-900);
    line-height: 1.35;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: var(--blue);
}

.card-body em {
    color: var(--gray-600);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:last-child {
    color: var(--blue);
    background: #dbeafe;
    padding: 3px 7px;
    border-radius: 999px;
    font-weight: 750;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-line span {
    padding: 3px 7px;
    color: var(--gray-600);
    background: var(--gray-100);
    font-size: 12px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.category-showcase {
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.category-showcase-head h3 {
    margin: 0;
    font-size: 22px;
}

.category-showcase-head a {
    color: var(--blue);
    font-weight: 800;
}

.rank-section {
    padding-top: 32px;
}

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

.rank-list.wide {
    grid-template-columns: 1fr;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 12px;
    font-weight: 900;
}

.rank-item.top .rank-number {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-item img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-info strong,
.rank-info em,
.rank-info span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info strong {
    font-size: 16px;
}

.rank-info em {
    color: var(--gray-600);
    font-size: 13px;
    font-style: normal;
}

.rank-info span {
    color: var(--gray-500);
    font-size: 12px;
}

.rank-play {
    color: var(--blue);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 22px;
    color: var(--white);
    background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.2), transparent 24%),
        radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.16), transparent 26%);
}

.page-hero > div {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #ecfeff;
    font-size: 18px;
}

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

.category-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: 0.22s ease;
}

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

.category-panel-top {
    display: grid;
    gap: 8px;
}

.category-panel-top strong {
    font-size: 24px;
    line-height: 1.2;
}

.category-panel-top em {
    color: var(--gray-600);
    font-style: normal;
}

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

.category-preview span {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.category-preview img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 12px;
}

.category-preview em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--gray-600);
    font-size: 12px;
    font-style: normal;
}

.category-enter {
    color: var(--blue);
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.search-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.search-panel input,
.search-panel select {
    min-height: 46px;
    padding: 0 13px;
}

.empty-state {
    margin: 40px 0 0;
    padding: 28px;
    text-align: center;
    color: var(--gray-600);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 22px 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--gray-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 750;
}

.breadcrumb strong {
    color: var(--gray-800);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 26px;
    align-items: start;
}

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player-card {
    overflow: hidden;
    background: #000;
}

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

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
}

.player-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-loading.hide {
    opacity: 0;
    visibility: hidden;
}

.player-loading span {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.36);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.player-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 35%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.player-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.18s ease;
}

.player-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.player-title {
    min-width: 0;
    flex: 1;
    color: var(--white);
    font-weight: 850;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 11px;
    color: var(--blue);
    background: #dbeafe;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

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

.detail-tags span {
    padding: 7px 11px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
}

.prose-card h2,
.side-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.prose-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 18px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: 0.18s ease;
}

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

.related-card img {
    width: 104px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

.related-card span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.related-card strong,
.related-card em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-card strong {
    color: var(--gray-900);
    font-size: 14px;
}

.related-card em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
    gap: 32px;
}

.footer-brand p,
.footer-group p,
.footer-group a,
.footer-bottom {
    color: #cbd5e1;
}

.footer-brand p,
.footer-group p {
    margin: 14px 0 0;
}

.footer-group h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-group ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.footer-group a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

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

    .detail-sidebar {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 720px;
    }

    .hero-slides {
        min-height: 560px;
        padding-top: 54px;
    }

    .hero-slide {
        inset: 54px 22px 150px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 17px;
    }

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

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

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

    .rank-list,
    .category-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        left: 16px;
        right: 16px;
    }

    .hero-bottom {
        width: calc(100% - 32px);
    }

    .content-section,
    .detail-wrap,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .rank-item {
        grid-template-columns: auto 78px minmax(0, 1fr);
    }

    .rank-play {
        display: none;
    }

    .rank-item img {
        width: 78px;
        height: 56px;
    }

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

    .player-controls {
        gap: 8px;
        padding: 12px;
    }

    .player-button {
        width: 38px;
        height: 38px;
    }
}
