:root {
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --yellow: #fde68a;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.28);
}

.header-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    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.25);
}

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

.nav-link {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--yellow);
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 292px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    color: #ffffff;
    outline: 0;
    background: transparent;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.quick-search button,
.search-page-form button {
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
    display: none;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-panel nav {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.mobile-panel input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    outline: 0;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1180px, calc(100% - 48px));
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
    max-width: 720px;
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 70px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 660px;
    margin-bottom: 26px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.86; }
}

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

.hero-tags span,
.detail-tags span,
.tag-cloud a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.cta-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.35);
}

.primary-btn:hover,
.cta-band a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 56px rgba(239, 68, 68, 0.42);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: var(--orange);
}

.quick-search-section {
    max-width: 1000px;
    margin: -34px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.quick-search,
.search-page-form {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search input,
.search-page-form input,
.toolbar input,
.toolbar select {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    outline: 0;
}

.quick-search button,
.search-page-form button {
    border-radius: 16px;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

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

.section-head span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.section-head h2 {
    margin-top: 4px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
}

.section-head a {
    color: var(--orange);
    font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
    min-height: 154px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 28px;
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.tile-icon,
.category-overview-card span {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-tile strong,
.category-overview-card h2 {
    font-size: 21px;
    font-weight: 900;
}

.category-tile em,
.category-overview-card p {
    margin-top: 6px;
    opacity: 0.9;
    font-style: normal;
}

.tile-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }
.tile-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.tile-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.tile-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tile-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.tile-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tile-green { background: linear-gradient(135deg, #34d399, #16a34a); }
.tile-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card .poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card .poster img,
.compact-cover img,
.rank-poster img,
.cover-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.compact-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.poster-badge,
.category-label {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: var(--orange);
}

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-info {
    padding: 18px;
}

.card-info h3 {
    margin-bottom: 10px;
    min-height: 48px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-info h3 a:hover,
.rank-info h2 a:hover {
    color: var(--orange);
}

.card-info p {
    min-height: 52px;
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}

.meta-line span:last-child {
    color: #f59e0b;
    font-weight: 800;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.movie-card.horizontal .poster {
    aspect-ratio: auto;
    min-height: 210px;
}

.movie-card.horizontal .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.soft-panel {
    margin-top: 72px;
    padding: 44px 24px;
    border-radius: 36px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.cta-band {
    max-width: 1280px;
    margin: 72px auto 0;
    padding: 56px 24px;
    border-radius: 36px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
    box-shadow: var(--shadow);
}

.cta-band h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
}

.cta-band p {
    max-width: 680px;
    margin: 14px auto 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.cta-band div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-band a {
    color: #ef4444;
    background: #ffffff;
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
}

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

.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.1;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

.compact-hero {
    min-height: 280px;
}

.toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.toolbar select {
    flex: 0 0 180px;
}

.region-panel {
    padding-bottom: 24px;
}

.tag-cloud a {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 132px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-index {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-poster {
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
}

.rank-info h2 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-info p {
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.search-summary {
    margin: 22px 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

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

.breadcrumb a {
    color: var(--orange);
    font-weight: 800;
}

.player-card,
.detail-block,
.cover-card,
.related-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

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

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

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

.video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000000;
}

.video-overlay img {
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.video-overlay.is-hidden {
    display: none;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 22px 52px rgba(239, 68, 68, 0.42);
    transform: translate(-50%, -50%);
}

.detail-block {
    margin-top: 22px;
    padding: 28px;
}

.title-block h1 {
    margin: 14px 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 900;
}

.detail-block h2 {
    margin-bottom: 14px;
    font-size: 26px;
    font-weight: 900;
}

.detail-block p {
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

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

.detail-tags span {
    color: #ef4444;
    background: #fff1f2;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.cover-card,
.related-card {
    padding: 18px;
}

.cover-card img {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    background: #111827;
}

.primary-btn.full {
    width: 100%;
    margin-top: 16px;
}

.related-card h2 {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 900;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.compact-cover {
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
}

.compact-title {
    font-weight: 800;
    line-height: 1.4;
}

.site-footer {
    margin-top: 86px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #000000);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px;
}

.footer-inner h3 {
    margin-bottom: 14px;
    padding-left: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    border-left: 4px solid var(--orange);
}

.footer-inner p,
.footer-inner li {
    line-height: 1.9;
}

.footer-inner a:hover {
    color: #fb923c;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 30px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

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

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

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

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

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

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

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

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

    .hero {
        height: 540px;
    }

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

    .hero-content p,
    .page-hero p {
        font-size: 16px;
    }

    .quick-search,
    .search-page-form,
    .toolbar {
        flex-direction: column;
    }

    .section-wrap {
        padding: 54px 16px 0;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 52px 96px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-index {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .rank-info p {
        display: none;
    }

    .detail-layout {
        padding: 24px 16px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
