:root {
    --teal: #0d9488;
    --cyan: #0891b2;
    --blue: #2563eb;
    --dark: #0f172a;
    --slate: #1e293b;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
    box-shadow: var(--shadow-md);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link,
.nav-links > a,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-links > a:hover,
.nav-dropdown:hover > a,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 10px 20px 18px;
    background: rgba(15, 118, 110, 0.96);
}

.mobile-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 650;
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 70px;
    z-index: 2;
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
}

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

.hero-tags span,
.detail-tags span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.32);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--teal);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-2px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

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

.page-main {
    padding: 48px 0 64px;
}

.section-block {
    margin: 0 0 64px;
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: var(--shadow-sm);
}

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.movie-card-large .card-cover {
    height: 330px;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.breadcrumb a:hover {
    color: var(--teal);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #5b6472;
    font-size: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.tag-list span,
.rank-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

.gradient-panel {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(90deg, #f0fdfa, #ecfeff);
    box-shadow: var(--shadow-sm);
}

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.5s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.14));
}

.category-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
}

.tool-panel {
    margin: 28px 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.search-box span {
    color: var(--teal);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 7px 12px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--teal);
    color: #ffffff;
    background: var(--teal);
}

.no-results {
    margin: 14px 0 0;
    color: #64748b;
    font-weight: 700;
}

.page-title {
    margin-bottom: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #64748b;
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-weight: 900;
}

.rank-cover {
    width: 92px;
    height: 68px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

.rank-info h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 17px;
}

.rank-info p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--teal);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.player-card,
.detail-card,
.related-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.player-shell {
    position: relative;
    background: #000000;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-cover:hover {
    background: rgba(0, 0, 0, 0.42);
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
    font-size: 34px;
}

.player-info,
.detail-content,
.related-content {
    padding: 28px;
}

.detail-title h1 {
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
    color: #64748b;
    font-weight: 700;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
}

.detail-tags span {
    color: #0f766e;
    background: linear-gradient(90deg, #ccfbf1, #cffafe);
}

.prose-section {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 24px;
}

.prose-section h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
}

.prose-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.85;
}

.review-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.review-box h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-box h2::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--amber);
}

.related-content h2 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 26px;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-carousel {
        height: 520px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 58px;
    }

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

    .hero-arrow {
        display: none;
    }

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

    .gradient-panel {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 44px 76px minmax(0, 1fr);
    }

    .rank-action {
        display: none;
    }

    .rank-cover {
        width: 76px;
        height: 58px;
    }

    .player-info,
    .detail-content,
    .related-content {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

    .hero-carousel {
        height: 500px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-4,
    .grid-3,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-large .card-cover,
    .card-cover {
        height: 260px;
    }

    .rank-info p,
    .rank-tags {
        display: none;
    }
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 750;
    font-size: 14px;
}

.quick-links a:hover {
    color: #ffffff;
    background: #0d9488;
}
