:root {
    color-scheme: dark;
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.78);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --line: rgba(148, 163, 184, 0.18);
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --pink: #ec4899;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.14), transparent 28rem),
        radial-gradient(circle at 88% 6%, rgba(59, 130, 246, 0.18), transparent 26rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(22px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: var(--text-soft);
    border-radius: 12px;
    transition: 0.25s ease;
}

.nav-link {
    padding: 9px 13px;
    font-weight: 600;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.78);
}

.header-search,
.mobile-search,
.quick-search {
    position: relative;
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: var(--text-main);
    padding: 12px 16px;
    transition: 0.25s ease;
}

.header-search input {
    width: 240px;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(520px, 88vw);
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 80;
}

.search-panel.visible {
    display: block;
}

.search-panel.wide {
    left: 0;
    right: auto;
    width: min(680px, 90vw);
}

.search-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.search-item:hover {
    background: rgba(30, 41, 59, 0.84);
}

.search-item img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.search-item strong,
.search-item small {
    display: block;
}

.search-item strong {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item small {
    color: var(--text-muted);
    font-size: 12px;
}

.search-empty {
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

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

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

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.72);
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    display: grid;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 56px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 82vh;
    max-width: none;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(2px) saturate(1.08);
    z-index: -2;
}

.hero-mask {
    position: fixed;
    inset: 0;
    height: 82vh;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.62)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 40%, rgba(2, 6, 23, 0.78) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 96px 0 120px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.13);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 5.5vw, 70px);
}

.hero h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4.8vw, 58px);
}

.hero p {
    max-width: 740px;
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: clamp(16px, 2.1vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-soft);
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.quick-search button,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: 0.28s ease;
}

.primary-btn,
.quick-search button {
    border: 0;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
}

.primary-btn:hover,
.quick-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 52px rgba(34, 211, 238, 0.34);
}

.ghost-btn,
.filter-panel button {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-main);
}

.ghost-btn:hover,
.filter-panel button:hover {
    border-color: rgba(34, 211, 238, 0.58);
    background: rgba(34, 211, 238, 0.12);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.hero-controls button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.74);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.quick-search-section {
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.88);
    padding: 28px;
    box-shadow: var(--shadow);
}

.quick-search-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 36px);
}

.quick-search-card p {
    margin: 0;
    color: var(--text-muted);
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.content-section {
    padding: 72px 0;
}

.soft-section {
    width: 100%;
    padding-right: max(16px, calc((100vw - var(--container)) / 2));
    padding-left: max(16px, calc((100vw - var(--container)) / 2));
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.34), rgba(30, 41, 59, 0.26));
}

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

.heading-bar {
    width: 5px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.48);
    box-shadow: 0 28px 70px rgba(8, 145, 178, 0.2);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.92));
}

.play-pill,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
}

.play-pill {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(34, 211, 238, 0.88);
    transform: translateY(8px);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-pill {
    transform: translateY(0);
    opacity: 1;
}

.rank-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--orange), #ef4444);
}

.card-body {
    padding: 16px;
}

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

.card-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.movie-card h3,
.feature-card h3 {
    margin: 12px 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card h3 a:hover,
.feature-card h3 a:hover,
.ranking-table a:hover,
.category-table a:hover {
    color: var(--cyan);
}

.movie-card p,
.feature-card p,
.category-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.scroll-row {
    display: grid;
    grid-auto-columns: minmax(220px, 280px);
    grid-auto-flow: column;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

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

.category-card {
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel-bg);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
    transition: 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.5);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    height: 150px;
    overflow: hidden;
}

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

.category-content {
    padding: 20px;
}

.category-content span {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.category-content h3 {
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: 24px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    padding: 14px;
    transition: 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.48);
    transform: translateY(-3px);
}

.feature-cover {
    overflow: hidden;
    border-radius: 16px;
}

.feature-cover img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.86);
    padding: 22px;
    box-shadow: var(--shadow);
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ranking-title h2 {
    margin: 0;
    color: #ffffff;
}

.ranking-title a {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: 0.22s ease;
}

.ranking-row:hover {
    background: rgba(30, 41, 59, 0.72);
}

.ranking-number {
    color: var(--cyan);
    font-weight: 900;
}

.ranking-row img {
    width: 58px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-copy strong,
.ranking-copy small {
    display: block;
}

.ranking-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
}

.ranking-copy small {
    color: var(--text-muted);
    font-size: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 80px 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
}

.page-hero-content {
    width: min(100%, var(--container));
    margin: 0 auto;
}

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

.page-hero p {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 18px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
    gap: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.76);
    padding: 16px;
}

.filter-panel select {
    appearance: none;
}

.filter-count {
    margin-bottom: 22px;
    color: var(--text-muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.75);
}

.category-table,
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.category-table th,
.category-table td,
.ranking-table th,
.ranking-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.category-table th,
.ranking-table th {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.65);
}

.category-table td,
.ranking-table td {
    color: var(--text-soft);
}

.detail-hero {
    min-height: 650px;
}

.detail-bg,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(2px) saturate(1.05);
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.74)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.1));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 64px 0 82px;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 72px);
}

.detail-line {
    max-width: 840px;
    margin: 22px 0;
    color: var(--text-soft);
    font-size: 20px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
    aspect-ratio: 16 / 9;
}

.video-player,
.player-cover,
.player-cover-bg,
.player-cover-mask {
    position: absolute;
    inset: 0;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: transparent;
    text-align: center;
}

.player-cover.hidden {
    display: none;
}

.player-cover-bg {
    background-size: cover;
    background-position: center;
    filter: blur(3px) saturate(1.08);
    transform: scale(1.04);
}

.player-cover-mask {
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 20rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.56));
}

.big-play {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.34);
    font-size: 34px;
    text-indent: 5px;
}

.player-cover strong,
.player-cover small {
    position: relative;
    z-index: 2;
    display: block;
}

.player-cover strong {
    font-size: clamp(24px, 4vw, 42px);
}

.player-cover small {
    color: var(--text-soft);
}

.detail-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 36px;
}

.detail-article article,
.detail-side {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.72);
    padding: 26px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: 16px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

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

.detail-side dd {
    margin: 0;
    color: var(--text-main);
}

.detail-side a {
    color: var(--cyan);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0 34px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--text-muted);
}

.footer-links h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.link-grid a {
    color: var(--text-muted);
}

.link-grid a:hover,
.footer-bottom a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 14px;
}

.compact .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .two-column-section,
    .detail-article {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 0 110px;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-content {
        padding: 28px 0 0;
    }

    .hero-poster {
        width: min(300px, 80vw);
        margin: 0 auto;
        transform: none;
    }

    .quick-search-card,
    .quick-search,
    .filter-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .player-shell {
        border-radius: 20px;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .mobile-panel,
    .quick-search-section,
    .content-section,
    .detail-inner {
        width: min(100% - 24px, var(--container));
    }

    .brand-text strong {
        font-size: 17px;
    }

    .movie-grid,
    .full-grid,
    .related-grid,
    .category-grid,
    .wide-category-grid {
        grid-template-columns: 1fr;
    }

    .quick-search-card {
        padding: 20px;
    }

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

    .feature-cover img {
        height: 210px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .detail-copy h1 {
        font-size: 34px;
    }
}
