:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-500: #f97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --warm-50: #fefce8;
    --warm-100: #fef3c7;
    --warm-600: #ca8a04;
    --dark-50: #f8f9fa;
    --dark-100: #e9ecef;
    --dark-500: #6c757d;
    --dark-600: #495057;
    --dark-700: #343a40;
    --dark-800: #212529;
    --dark-900: #111827;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
    --shadow-hover: 0 12px 30px rgba(15, 23, 42, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark-800);
    background: var(--warm-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 8px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-800);
    font-size: 21px;
    font-weight: 800;
}

.brand:hover {
    color: var(--primary-600);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--warm-600));
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(234, 88, 12, .24);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--dark-600);
    font-weight: 600;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--dark-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
    border-top: 1px solid var(--dark-100);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--dark-600);
    font-weight: 600;
}

.mobile-nav.is-open {
    display: block;
    animation: slideDown .24s ease-out;
}

.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    color: #fff;
    background: var(--dark-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .52), rgba(0, 0, 0, .12));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.hero-copy {
    max-width: 680px;
    animation: fadeUp .5s ease-out;
}

.hero-tags,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.pill.primary {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 66px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 630px;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--primary-600);
    box-shadow: 0 10px 24px rgba(234, 88, 12, .32);
}

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .24);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--primary-700);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: rgba(234, 88, 12, .88);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 30px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--primary-600);
}

.home-wrap,
.page-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.home-wrap {
    display: grid;
    gap: 58px;
}

.content-section {
    animation: fadeUp .45s ease-out;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    color: var(--dark-800);
    font-size: 26px;
    line-height: 1.2;
}

.section-title p {
    margin: 5px 0 0;
    color: var(--dark-500);
    font-size: 14px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-600);
    background: var(--primary-100);
    border-radius: 12px;
    font-size: 18px;
}

.section-more {
    margin-left: auto;
    color: var(--primary-700);
    font-weight: 800;
}

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

.video-grid.compact {
    gap: 16px;
}

.video-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform .28s ease, box-shadow .28s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--dark-100);
}

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

.video-card:hover .card-cover img {
    transform: scale(1.1);
}

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .16), transparent);
    transition: opacity .28s ease;
}

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

.card-year,
.card-type {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.card-year {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(10px);
}

.card-type {
    bottom: 10px;
    left: 10px;
    background: rgba(234, 88, 12, .92);
    backdrop-filter: blur(10px);
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: var(--primary-600);
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.82);
    transition: opacity .28s ease, transform .28s ease;
}

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

.card-body {
    display: block;
    padding: 14px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--dark-800);
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body span {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--dark-500);
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feature-panel,
.category-panel,
.info-panel,
.search-panel,
.rank-panel {
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

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

.category-card {
    min-height: 160px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--warm-600));
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:nth-child(even) {
    background: linear-gradient(135deg, var(--dark-800), var(--primary-700));
}

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

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    line-height: 1.75;
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--warm-600));
}

.page-hero.dark {
    background: linear-gradient(135deg, var(--dark-900), var(--primary-700));
}

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

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

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

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.85;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--dark-100);
    border-radius: 12px;
    color: var(--dark-800);
    background: #fff;
    outline: none;
    font-size: 15px;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.result-text {
    color: var(--dark-500);
    font-size: 14px;
    white-space: nowrap;
}

.empty-result {
    display: none;
    padding: 36px;
    color: var(--dark-500);
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.empty-result.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 78px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

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

.rank-no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--primary-600);
    border-radius: 12px;
    font-weight: 900;
}

.rank-thumb {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--dark-100);
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    color: var(--dark-800);
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: var(--dark-500);
    line-height: 1.6;
}

.rank-meta {
    color: var(--primary-700);
    font-weight: 800;
}

.detail-top {
    padding: 32px 0 48px;
    background: linear-gradient(180deg, var(--dark-900), var(--warm-50));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, .12), rgba(0, 0, 0, .56));
    transition: opacity .25s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 0;
    color: var(--primary-600);
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    cursor: pointer;
    font-size: 30px;
}

.player-message {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: none;
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, .68);
    border-radius: 10px;
    text-align: center;
}

.player-message.is-visible {
    display: block;
}

.detail-card,
.review-card {
    margin-top: 24px;
    padding: 26px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 18px;
    color: var(--dark-800);
    font-size: 32px;
    line-height: 1.25;
}

.meta-tags .tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    color: var(--dark-600);
    background: var(--dark-50);
    border: 1px solid var(--dark-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.meta-tags .tag.hot {
    color: var(--primary-700);
    background: var(--primary-100);
    border-color: var(--primary-100);
}

.lead-line {
    margin: 0 0 22px;
    color: var(--primary-700);
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.8;
}

.article-block h2,
.review-card h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: var(--dark-800);
    font-size: 22px;
}

.article-block p,
.review-card p,
.info-line p,
.about-content p {
    margin: 0;
    color: var(--dark-600);
    line-height: 1.9;
}

.review-card {
    background: linear-gradient(135deg, var(--primary-50), var(--warm-50));
}

.review-box {
    padding: 22px;
    background: #fff;
    border-left: 5px solid var(--primary-600);
    border-radius: 14px;
}

.detail-side .info-panel {
    position: sticky;
    top: 86px;
}

.info-line {
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-100);
}

.info-line:last-child {
    border-bottom: 0;
}

.info-line strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dark-500);
    font-size: 13px;
}

.related-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.about-content {
    display: grid;
    gap: 20px;
}

.about-content .info-panel {
    padding: 32px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .detail-side .info-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .38));
    }

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

    .hero-nav {
        display: none;
    }

    .home-wrap,
    .page-wrap {
        padding: 34px 0;
    }

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

    .section-title {
        align-items: flex-start;
    }

    .section-more {
        display: none;
    }

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

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

    .result-text {
        white-space: normal;
    }

    .rank-item {
        grid-template-columns: 42px 64px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

    .rank-thumb {
        width: 58px;
        height: 78px;
    }

    .detail-card h1 {
        font-size: 26px;
    }

    .player-button {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }
}
