:root {
    --amber-50: #fff8eb;
    --amber-100: #ffefc2;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-400: #facc15;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --line: rgba(255, 255, 255, 0.18);
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(146, 64, 14, 0.18);
    --soft-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink-900);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 146, 60, 0.18), transparent 26%),
        radial-gradient(circle at 92% 18%, rgba(250, 204, 21, 0.22), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(217, 119, 6, 0.12), transparent 30%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--yellow-400));
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.22);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
    font-size: 15px;
}

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

.nav-link {
    position: relative;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #ffffff;
    transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 230px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    color: var(--ink-800);
    display: grid;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink-700);
    font-weight: 700;
}

.nav-dropdown-panel a:hover {
    color: var(--orange-600);
    background: var(--amber-50);
}

.top-search {
    width: 250px;
    position: relative;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: var(--ink-900);
    background: #ffffff;
}

.top-search input {
    height: 40px;
    padding: 0 46px 0 18px;
}

.top-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--amber-100);
    transform: translateY(-50%);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 9px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 0 20px 20px;
    background: rgba(146, 64, 14, 0.28);
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    padding: 12px 16px;
}

.mobile-search button,
.search-page-form button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--ink-900);
    padding: 0 18px;
    cursor: pointer;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.mobile-category-links {
    margin-top: 10px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #20120a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.46;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(120, 53, 15, 0.92) 0%, rgba(194, 65, 12, 0.74) 48%, rgba(251, 191, 36, 0.5) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 58px;
    padding: 64px 0 88px;
}

.hero-copy {
    max-width: 740px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy h2 {
    margin: 16px 0 18px;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.08;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: var(--orange-600);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-poster {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--orange-600);
    font-size: 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.7;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
    opacity: 1;
}

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

.search-strip {
    position: relative;
    z-index: 10;
    margin-top: -46px;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-strip-inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    gap: 24px;
    align-items: center;
}

.search-strip h2,
.section-heading h2,
.detail-article h2,
.detail-side-card h2,
.watch-info h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.search-strip p,
.section-heading p {
    margin: 8px 0 0;
    color: var(--ink-600);
    line-height: 1.7;
}

.search-strip form,
.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 7px;
    border-radius: 999px;
    background: var(--amber-50);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.1);
}

.search-strip input,
.search-page-form input {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: transparent;
}

.search-strip button,
.search-page-form button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
    font-weight: 900;
    cursor: pointer;
}

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill-cloud a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--orange-600);
    background: #fff7ed;
    font-weight: 800;
}

.content-section {
    margin-top: 62px;
}

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

.section-more,
.text-link {
    color: var(--orange-600);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.section-more {
    min-height: 42px;
    padding: 0 18px;
}

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

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

.latest-grid,
.rank-grid,
.related-grid,
.category-movie-grid,
.rank-page-grid,
.search-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.featured-grid .poster-wrap,
.category-movie-grid .poster-wrap,
.rank-page-grid .poster-wrap,
.search-results .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.7));
    opacity: 0.8;
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.type-badge {
    right: 12px;
    min-height: 30px;
    padding: 0 10px;
    background: rgba(245, 158, 11, 0.92);
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    background: var(--orange-500);
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--ink-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange-600);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 800;
}

.movie-meta-row span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-card .tag-row {
    margin-top: 12px;
}

.movie-card .tag-row span {
    color: var(--orange-600);
    background: #ffedd5;
}

.category-grid,
.category-overview-grid,
.top-rank-grid {
    display: grid;
    gap: 22px;
}

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

.category-tile,
.category-overview-card,
.top-rank-card,
.detail-side-card,
.detail-article,
.watch-shell {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.category-tile {
    padding: 22px;
}

.category-tile > a {
    display: grid;
    gap: 8px;
}

.category-tile span {
    color: var(--orange-600);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.6;
}

.category-tile div,
.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-tile div a,
.mini-link-list a {
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--ink-700);
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--yellow-400));
}

.compact-hero {
    padding: 78px 0 86px;
}

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

.compact-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.compact-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 800;
}

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

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

.category-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.category-overview-card:hover .category-cover img {
    transform: scale(1.08);
}

.category-cover span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    font-weight: 900;
}

.category-overview-body {
    padding: 20px;
}

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

.category-overview-body p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.7;
}

.text-link {
    min-height: 40px;
    margin-top: 18px;
    padding: 0 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 16px;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.14);
}

.movie-card.is-hidden {
    display: none;
}

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

.top-rank-card {
    overflow: hidden;
    padding-bottom: 22px;
}

.top-rank-card a:first-child {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.top-rank-card span {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange-500);
    font-size: 24px;
    font-weight: 900;
}

.top-rank-card h2,
.top-rank-card p {
    padding: 0 20px;
}

.top-rank-card h2 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.top-rank-card p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #1c120b;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(39, 22, 9, 0.94), rgba(154, 52, 18, 0.78), rgba(251, 191, 36, 0.3)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.2));
}

.detail-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    padding: 62px 0 72px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 760px;
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta-grid span {
    padding: 9px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.detail-tags {
    margin-bottom: 28px;
}

.watch-section {
    width: min(1180px, calc(100% - 32px));
    margin: -52px auto 0;
    position: relative;
    z-index: 5;
}

.watch-shell {
    overflow: hidden;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.video-player,
.player-cover,
.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-player {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

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

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.6));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 38px;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.watch-info {
    padding: 24px;
}

.watch-info p {
    margin: 10px 0 16px;
    color: var(--ink-600);
    line-height: 1.75;
}

.watch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.watch-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--orange-600);
    background: #fff7ed;
    font-weight: 900;
}

.detail-text-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.detail-article,
.detail-side-card {
    padding: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    color: var(--ink-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 14px;
    margin: 20px 0 0;
}

.detail-side-card dt {
    color: var(--ink-500);
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: var(--ink-800);
    font-weight: 700;
}

.prev-next-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.prev-next-links a {
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--ink-800);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    font-weight: 900;
}

.search-page-form {
    max-width: 680px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.2);
}

.search-page-form input {
    color: #ffffff;
}

.search-page-form input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.search-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    color: var(--ink-600);
    font-size: 18px;
    text-align: center;
}

.site-footer {
    margin-top: 78px;
    color: #ffffff;
    background: linear-gradient(90deg, #78350f, #c2410c, #a16207);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 36px;
}

.footer-logo {
    font-size: 22px;
}

.footer-brand p,
.footer-note p,
.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.footer-links h2,
.footer-note h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

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

    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .rank-grid,
    .related-grid,
    .category-movie-grid,
    .rank-page-grid,
    .search-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .hero-poster {
        width: 240px;
        justify-self: start;
    }

    .search-strip-inner,
    .filter-panel,
    .detail-shell,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        gap: 28px;
    }

    .detail-poster {
        width: 220px;
    }

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .rank-grid,
    .related-grid,
    .category-movie-grid,
    .rank-page-grid,
    .search-results,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prev-next-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

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

    .hero-copy p,
    .compact-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .search-strip,
    .content-section,
    .watch-section {
        width: min(100% - 24px, 1180px);
    }

    .search-strip form,
    .search-page-form {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .rank-grid,
    .related-grid,
    .category-movie-grid,
    .rank-page-grid,
    .search-results,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
