:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --dark: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.65;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.site-logo span:last-child,
.footer-logo span:last-child {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

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

.desktop-nav a {
    position: relative;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--primary);
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--primary);
    background: #eff6ff;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: #374151;
    font-weight: 700;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #172554 100%);
    min-height: 680px;
    padding: 86px 0 150px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.38), transparent 30%),
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.2), transparent 24%),
        rgba(0, 0, 0, 0.16);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-text {
    max-width: 720px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 22px;
}

.hero-search {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 12px 14px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.hero-search button,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-btn {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.hero-search button:hover,
.primary-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

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

.hero-actions a {
    min-height: 54px;
    padding: 0 28px;
}

.secondary-btn {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.18);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: #eff6ff;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 16%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-slide-copy {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 28px;
}

.hero-slide-copy h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.hero-slide-copy p {
    display: -webkit-box;
    margin: 0 0 18px;
    color: #e5e7eb;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-slide-copy a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -34px;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 30px;
    background: #ffffff;
}

.hero-wave {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
}

.stats-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -52px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stats-strip div {
    min-height: 120px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.stats-strip strong {
    display: block;
    color: var(--primary);
    font-size: 30px;
    line-height: 1.1;
}

.stats-strip span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

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

.alt-block {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: #f8fafc;
}

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

.section-heading p {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
}

.section-heading a {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 800;
}

.compact-heading {
    align-items: center;
    margin-bottom: 24px;
}

.compact-heading h2 {
    font-size: 28px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 152px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #172554);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n),
.category-overview-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--accent), #9a3412);
}

.category-card:nth-child(3n),
.category-overview-card:nth-child(3n) {
    background: linear-gradient(135deg, #111827, #1d4ed8);
}

.category-card::before,
.category-overview-card::before {
    position: absolute;
    top: -44px;
    right: -40px;
    width: 124px;
    height: 124px;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.category-card span,
.category-overview-card span {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 900;
}

.category-card strong,
.category-overview-card strong {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-overview-card {
    min-height: 240px;
}

.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

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

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

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

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

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

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.year-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.rank-number {
    left: 10px;
    right: auto;
    background: var(--accent);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 8px 0;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.rank-and-new {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 32px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.rank-index {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.rank-row:nth-child(-n + 3) .rank-index {
    background: var(--accent);
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #e5e7eb;
}

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    padding: 76px 0;
}

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

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 56px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 19px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.movie-search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 0 18px;
    color: var(--text);
    background: #f9fafb;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.movie-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.filter-buttons button {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 800;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
    color: #ffffff;
    background: var(--primary);
}

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

.detail-main {
    background: #f8fafc;
}

.detail-top {
    padding: 34px 0 72px;
    color: var(--text);
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

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

.detail-top .breadcrumb {
    color: #4b5563;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.26);
    font-size: 34px;
    padding-left: 6px;
}

.player-shell.is-playing .player-start {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-shell.is-loading .player-start span {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.detail-card,
.info-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.detail-meta-row span {
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: #dbeafe;
    font-size: 13px;
    font-weight: 900;
}

.detail-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 900;
}

.lead-text {
    margin: 18px 0 0;
    color: #374151;
    font-size: 19px;
}

.detail-card section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.detail-card h2,
.info-card h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
}

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.detail-sidebar > img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #e5e7eb;
    box-shadow: var(--shadow);
}

.info-card dl {
    margin: 0 0 22px;
}

.info-card div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-card dt {
    color: var(--muted);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.full-btn {
    width: 100%;
    min-height: 50px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

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

.footer-inner p {
    margin: 16px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-inner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-inner li + li {
    margin-top: 8px;
}

.footer-inner a:hover {
    color: var(--accent);
}

.back-top {
    min-height: 38px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: transparent;
    padding: 0 16px;
    font-weight: 800;
}

.back-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-inner,
    .rank-and-new,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 520px;
    }

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }

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

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

@media (max-width: 780px) {
    .hero-section {
        min-height: auto;
        padding: 56px 0 120px;
    }

    .hero-inner {
        gap: 34px;
    }

    .hero-text {
        font-size: 18px;
    }

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

    .hero-search button {
        min-height: 48px;
    }

    .hero-carousel {
        min-height: 460px;
    }

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

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

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

    .movie-card h3 {
        font-size: 14px;
    }

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

@media (max-width: 560px) {
    .nav-wrap {
        min-height: 64px;
    }

    .site-logo {
        font-size: 19px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-carousel {
        min-height: 420px;
    }

    .stats-strip,
    .category-grid,
    .category-overview-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 10px;
    }

    .detail-card,
    .info-card {
        padding: 20px;
    }

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
