/* =========================================================
   Soyoo Video - 视频系统专用样式
   粉色马卡龙 · 二次元可爱风（呼应主页）
   ========================================================= */

@font-face {
    font-family: "ZCOOL KuaiLe";
    font-display: swap;
    src: url('../../font/zcool-kuaile.woff2') format('woff2');
}

:root {
    --video-bg: #fff6f9;
    --video-card: rgba(255, 255, 255, 0.78);
    --video-card-solid: #ffffff;
    --video-card-hover: rgba(255, 255, 255, 0.92);
    --video-text: #5c4a55;
    --video-text-secondary: #9a7f90;
    --video-text-light: #c4a8b8;
    --video-border: rgba(255, 143, 192, 0.28);
    --video-primary: #ff8fc0;
    --video-primary-hover: #ff77b0;
    --video-primary-soft: #fff0f6;
    --video-blue: #7ec8e3;
    --video-gradient: linear-gradient(135deg, #ffb3d9 0%, #ff8fc0 55%, #ffb066 100%);
    --video-gradient-soft: linear-gradient(135deg, #fff0f6 0%, #eaf7ff 100%);
    --video-shadow: 0 10px 32px rgba(255, 143, 192, 0.22);
    --video-shadow-hover: 0 18px 42px rgba(255, 143, 192, 0.32);
    --video-radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: var(--video-bg);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background:
        radial-gradient(1000px 480px at 88% -8%, rgba(255, 179, 217, 0.32), transparent 62%),
        radial-gradient(900px 460px at -6% 12%, rgba(160, 216, 240, 0.35), transparent 58%),
        radial-gradient(700px 380px at 50% 110%, rgba(255, 240, 246, 0.9), transparent 60%),
        linear-gradient(160deg, #fff7fa 0%, #fdf0f6 45%, #eef7fd 100%);

    background-attachment: fixed;

    color: var(--video-text);
    font-family: 'ZCOOL KuaiLe', 'HarmonyOS_Regular', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;

    cursor: url('/img/logo-cursor.png?v=3') 16 13, auto;
}

/* FUSHI 光标全局生效（超时空辉夜姬·弥千代的相棒） */
*,
a,
button,
input[type="range"] {
    cursor: url('/img/logo-cursor.png?v=3') 16 13, auto !important;
}

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

/* 可爱滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(180deg, #ffc9de, #ff9ecb);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffb3d9, #ff8fc0);
}

/* =========================================================
   漂浮星星装饰（呼应主页）
   ========================================================= */

.home-star {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.85;
    animation: homeStarFloat 7s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 158, 203, 0.55));
}

.home-star-1 {
    top: 4%;
    right: 6%;
    width: 26px;
}

.home-star-2 {
    top: 13%;
    left: 4%;
    width: 18px;
    animation-delay: 1.5s;
}

.home-star-3 {
    bottom: 12%;
    right: 14%;
    width: 22px;
    animation-delay: 3s;
}

@keyframes homeStarFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(12deg);
    }
}

/* =========================================================
   顶部导航
   ========================================================= */

.video-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 64px;

    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 143, 192, 0.22);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.video-header-inner {
    width: min(1400px, calc(100% - 40px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 18px;
    font-weight: 600;

    transition: opacity 0.2s ease;
}

.video-brand:hover {
    opacity: 0.75;
}

.video-brand-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(255, 158, 203, 0.6);

    box-shadow: 0 3px 12px rgba(255, 143, 192, 0.35);
}

.video-brand-text {
    white-space: nowrap;

    background: linear-gradient(120deg, #ff8fc0, #ff77b0 55%, #7ec8e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.video-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-nav-link {
    padding: 8px 16px;

    color: var(--video-text-secondary);
    font-size: 14px;

    border-radius: 999px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.video-nav-link:hover {
    background: #fff0f6;
    color: var(--video-text);
    transform: translateY(-1px);
}

.video-nav-link.active {
    color: #fff;
    background: var(--video-gradient);
    box-shadow: 0 4px 14px rgba(255, 143, 192, 0.4);
}

/* =========================================================
   页面容器
   ========================================================= */

.video-page {
    width: min(1400px, calc(100% - 40px));

    margin: 0 auto;
    padding: 34px 0 60px;
}

.video-page-title {
    margin: 0 0 34px;

    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;

    display: inline-block;

    background: linear-gradient(120deg, #ff8fc0 0%, #ffb066 45%, #7ec8e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter: drop-shadow(0 3px 10px rgba(255, 143, 192, 0.28));
}

.video-page-description {
    margin: 10px 0 30px;

    color: var(--video-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   视频列表
   ========================================================= */

.video-grid {
    display: grid;

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

    gap: 22px;
}

.video-card {
    overflow: hidden;

    background: var(--video-card);
    border: 1.5px solid var(--video-border);
    border-radius: var(--video-radius);

    box-shadow: var(--video-shadow);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.video-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: var(--video-shadow-hover);
    border-color: rgba(255, 119, 176, 0.45);
    background: var(--video-card-hover);
}

.video-card-cover {
    position: relative;

    aspect-ratio: 16 / 9;

    background: linear-gradient(135deg, #ffd9e8, #c9e9f7);

    overflow: hidden;
}

.video-card-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}

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

.video-card-play {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    color: #fff;
    background: var(--video-gradient);

    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(255, 119, 176, 0.5);

    opacity: 0;

    transition: opacity 0.2s ease;
}

.video-card:hover .video-card-play {
    opacity: 1;

    animation: video-play-pulse 1.6s ease-in-out infinite;
}

@keyframes video-play-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 143, 192, 0.5);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(255, 143, 192, 0);
    }
}

.video-card-play::before {
    content: "";

    margin-left: 5px;

    width: 0;
    height: 0;

    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.video-card-info {
    padding: 15px 16px 17px;
}

.video-card-title {
    margin: 0 0 7px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;

    color: var(--video-text);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--video-text-secondary);
    font-size: 13px;
}

.video-card-tag {
    padding: 2px 8px;

    color: #ff77b0;
    background: #fff0f6;

    border: 1px solid rgba(255, 143, 192, 0.25);
    border-radius: 999px;

    font-size: 11px;
}

/* =========================================================
   视频详情页
   ========================================================= */

.video-detail {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.video-player-container {
    position: relative;

    width: 100%;

    background: #2a1f33;
    border: 2px solid rgba(255, 158, 203, 0.45);
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 16px 50px rgba(255, 143, 192, 0.3),
        0 4px 16px rgba(126, 200, 227, 0.2);
}

.video-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;
}

/* =========================================================
   播放器加载
   ========================================================= */

.video-loading {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 42px;
    height: 42px;

    margin: -21px 0 0 -21px;

    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ff8fc0;

    border-radius: 50%;

    animation: video-spin 0.8s linear infinite;

    pointer-events: none;
}

@keyframes video-spin {
    to {
        transform: rotate(360deg);
    }
}

.video-loading.hidden {
    display: none;
}

/* =========================================================
   播放错误
   ========================================================= */

.video-error {
    position: absolute;

    left: 50%;
    top: 50%;

    width: min(90%, 500px);

    transform: translate(-50%, -50%);

    padding: 22px;

    color: #fff;
    text-align: center;

    background: rgba(42, 31, 51, 0.88);

    border: 1px solid rgba(255, 158, 203, 0.4);
    border-radius: 16px;

    backdrop-filter: blur(10px);
}

.video-error-title {
    margin-bottom: 8px;

    font-size: 16px;
    font-weight: 600;
}

.video-error-message {
    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;
    line-height: 1.6;
}

.video-error.hidden {
    display: none;
}

/* =========================================================
   播放器控制栏
   ========================================================= */

.video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;

    padding: 42px 14px 10px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    background: linear-gradient(
        to top,
        rgba(42, 31, 51, 0.92) 0%,
        rgba(42, 31, 51, 0.65) 38%,
        rgba(42, 31, 51, 0) 100%
    );

    opacity: 1;
    transition: opacity 0.2s ease;

    user-select: none;
}

.video-player.hide-controls .video-controls {
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   进度条
   ========================================================= */

.video-progress-area {
    width: 100%;
    height: 16px;

    display: flex;
    align-items: center;

    cursor: pointer;
}

.video-progress {
    position: relative;

    width: 100%;
    height: 4px;

    background: rgba(255, 255, 255, 0.28);

    border-radius: 10px;

    transition:
        height 0.12s ease;
}

.video-progress-area:hover .video-progress {
    height: 6px;
}

.video-progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 0;

    background: rgba(255, 255, 255, 0.45);

    border-radius: inherit;

    pointer-events: none;
}

.video-progress-current {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 0;

    background: linear-gradient(90deg, #ffb3d9, #ff8fc0 55%, #ffb066);

    border-radius: inherit;

    box-shadow: 0 0 10px rgba(255, 143, 192, 0.7);

    pointer-events: none;
}

/* =========================================================
   控制按钮
   ========================================================= */

.video-control-row {
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 3px;
}

.video-control-left,
.video-control-right {
    display: flex;
    align-items: center;

    gap: 2px;
}

.video-control-right {
    margin-left: auto;
}

.video-control-button {
    width: 40px;
    height: 40px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    background: transparent;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    font-size: 17px;
    font-weight: 400;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.video-control-button:hover {
    background: rgba(255, 158, 203, 0.28);
}

.video-control-button:active {
    transform: scale(0.92);
}

.video-icon {
    width: 22px;
    height: 22px;
    display: block;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-control-button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #fff;
    background: transparent;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.video-control-button:hover {
    background: rgba(255, 158, 203, 0.28);
    color: #ffd9e8;
}

.video-control-button:active {
    transform: scale(0.94);
}

.video-speed-button {
    width: 48px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   时间
   ========================================================= */

.video-time {
    margin-left: 5px;

    color: #fff;

    font-size: 13px;
    font-weight: 400;

    font-variant-numeric: tabular-nums;

    white-space: nowrap;
}

/* =========================================================
   音量
   ========================================================= */

.video-volume-area {
    display: flex;
    align-items: center;
}

.video-volume {
    width: 0;

    opacity: 0;

    transition:
        width 0.2s ease,
        opacity 0.2s ease;
}

.video-volume-area:hover .video-volume {
    width: 78px;
    opacity: 1;
}

.video-volume::-webkit-slider-runnable-track {
    height: 4px;

    background: rgba(255, 255, 255, 0.4);

    border-radius: 10px;
}

.video-volume::-webkit-slider-thumb {
    appearance: none;

    width: 13px;
    height: 13px;

    margin-top: -4.5px;

    background: #ff8fc0;

    border: 2px solid #fff;
    border-radius: 50%;

    cursor: pointer;

    box-shadow: 0 0 8px rgba(255, 143, 192, 0.8);
}

/* =========================================================
   倍速菜单
   ========================================================= */

.video-menu-wrapper {
    position: relative;
}

.video-menu {
    position: absolute;

    right: 0;
    bottom: 46px;

    min-width: 150px;

    padding: 6px;

    background: rgba(46, 32, 44, 0.97);

    border: 1px solid rgba(255, 158, 203, 0.25);

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(255, 143, 192, 0.35);

    display: none;

    z-index: 30;
}

.video-menu.open {
    display: block;
}

.video-menu-title {
    padding: 8px 11px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
}

.video-menu-item {
    width: 100%;

    padding: 9px 11px;

    color: #fff;

    text-align: left;

    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.12s ease,
        color 0.12s ease;
}

.video-menu-item:hover {
    background: rgba(255, 158, 203, 0.2);
}

.video-menu-item.active {
    color: #ff8fc0;

    background: rgba(255, 158, 203, 0.1);
}

/* =========================================================
   视频信息
   ========================================================= */

.video-info {
    padding: 24px 2px 0;
}

.video-title {
    margin: 0;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;

    background: linear-gradient(120deg, #ff8fc0, #7ec8e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.video-subtitle {
    margin: 8px 0 15px;

    color: var(--video-text-secondary);

    font-size: 14px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.video-tag {
    padding: 5px 12px;

    color: #d9759f;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(255, 143, 192, 0.3);

    border-radius: 999px;

    font-size: 12px;
}

/* =========================================================
   返回按钮
   ========================================================= */

.video-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 18px;
    padding: 7px 16px;

    color: var(--video-text-secondary);

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 143, 192, 0.25);
    border-radius: 999px;

    font-size: 14px;

    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.video-back:hover {
    color: #ff77b0;
    background: #fff0f6;
    transform: translateX(-3px);
}

/* =========================================================
   页脚
   ========================================================= */

.video-footer {
    width: min(1200px, calc(100% - 40px));

    margin: 50px auto 0;

    padding: 25px 0;

    color: var(--video-text-light);

    border-top: 1px solid rgba(255, 143, 192, 0.25);

    text-align: center;

    font-size: 12px;
}

/* =========================================================
   平板
   ========================================================= */

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

/* =========================================================
   手机
   ========================================================= */

@media (max-width: 760px) {
    .video-header {
        height: 58px;
    }

    .video-header-inner {
        width: calc(100% - 24px);
    }

    .video-brand-logo {
        width: 34px;
        height: 34px;
    }

    .video-brand-text {
        font-size: 16px;
    }

    .video-nav-link {
        padding: 7px 10px;
        font-size: 13px;
    }

    .video-page {
        width: calc(100% - 24px);
        padding-top: 25px;
    }

    .video-page-title {
        font-size: 27px;
        margin: 0 0 25px;
    }

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

    .video-card {
        border-radius: 16px;
    }

    .video-card-info {
        padding: 11px 12px 13px;
    }

    .video-card-title {
        font-size: 14px;
    }

    .video-card-meta {
        font-size: 11px;
    }

    .video-card-play {
        width: 44px;
        height: 44px;
    }

    .video-player-container {
        margin-left: -12px;
        width: calc(100% + 24px);

        border-radius: 14px;
    }

    .video-info {
        padding-top: 18px;
    }

    .video-title {
        font-size: 20px;
    }

    .video-volume-area:hover .video-volume {
        width: 0;
        opacity: 0;
    }

    .video-control-button {
        width: 34px;
        height: 34px;
    }

    .video-time {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card-cover {
        aspect-ratio: 16 / 8.8;
    }

    .video-nav-link {
        padding: 6px 8px;
    }

    .video-control-button {
        width: 32px;
        height: 32px;
    }
}

/* 移动端/触屏：不显示自定义图标光标 */
@media (hover: none), (pointer: coarse) {
    *,
    a,
    button,
    input[type="range"] {
        cursor: auto !important;
    }
}
