/* 轮滑视频网格 + 投稿弹窗 + 播放弹窗（联盟 skating_videos / 战队 video_showcase 共用） */
.sv-page { background: linear-gradient(165deg, var(--bg-page, #eef6f3) 0%, var(--bg-page-alt, #e8f4fc) 45%, #f0fdf9 100%); min-height: 32vh; padding-bottom: 48px; border-radius: 12px; }
/* 整页作为 sv-page 时不要裁圆角（body 使用该 class） */
body.sv-page { border-radius: 0; }
.sv-hero { max-width: min(1240px, 100%); margin: 0 auto; padding: 28px 20px 16px; box-sizing: border-box; }
.sv-hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sv-hero-text { flex: 1; min-width: min(100%, 260px); }
.sv-hero-actions { flex-shrink: 0; padding-top: 4px; }
.sv-submit-open { padding: 10px 24px; font-size: 14px; font-weight: 700; border-radius: 999px; border: none; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; background: linear-gradient(135deg, var(--accent, #0d9488), var(--accent-hover, #0f766e)); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sv-submit-open:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13, 148, 136, 0.42); }
.sv-submit-open:focus-visible { outline: 2px solid var(--accent, #0d9488); outline-offset: 3px; }
.sv-submit-login-link { display: inline-block; padding: 10px 24px; font-size: 14px; font-weight: 700; border-radius: 999px; text-decoration: none; color: var(--accent-hover, #0f766e); border: 2px solid rgba(13, 148, 136, 0.45); background: var(--bg-card, #fff); transition: background 0.15s, border-color 0.15s; }
.sv-submit-login-link:hover { background: rgba(13, 148, 136, 0.08); border-color: var(--accent, #0d9488); }
.sv-submit-disabled-note { display: inline-block; padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text-secondary, #64748b); border-radius: 999px; border: 1px dashed #cbd5e1; background: #f8fafc; max-width: 260px; line-height: 1.45; text-align: center; }
.sv-hero h1 { margin: 0 0 10px; font-size: 1.65rem; color: var(--text-primary, #1e293b); }
.sv-hero p { margin: 0; color: var(--text-secondary, #64748b); font-size: 14px; line-height: 1.65; max-width: 720px; }
.sv-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.16);
}
.sv-list-toolbar__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--text-primary, #1e293b); letter-spacing: -0.02em; }
.sv-list-vtabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(148, 163, 184, 0.22);
    padding: 4px;
    border-radius: 10px;
}
.sv-list-vtabs a {
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.sv-list-vtabs a:hover { color: #334155; }
.sv-list-vtabs a.is-active {
    background: #fff;
    color: var(--accent-hover, #0f766e);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.sv-list-toolbar--bare { border-bottom: none; margin-bottom: 12px; padding-bottom: 0; }
.sv-list-toolbar--title-only { justify-content: flex-start; }
.sv-grid-wrap { max-width: min(1240px, 100%); margin: 0 auto; padding: 8px 20px 0; box-sizing: border-box; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, 280px); gap: 20px; justify-content: center; }
.sv-card { width: 280px; max-width: 100%; box-sizing: border-box; background: var(--bg-card, #fff); border: 1px solid rgba(13, 148, 136, 0.12); border-radius: 14px; padding: 14px; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06); display: flex; flex-direction: column; height: auto; }
.sv-card-meta { margin-top: 10px; font-size: 12px; font-weight: 600; color: #0f766e; line-height: 1.45; padding: 6px 10px; border-radius: 8px; background: rgba(13, 148, 136, 0.08); border: 1px solid rgba(13, 148, 136, 0.12); }
.sv-card-meta__label { font-weight: 700; opacity: 0.85; margin-right: 4px; }
.sv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.sv-card-title { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: 15px; color: var(--text-primary, #1e293b); line-height: 1.35; word-break: break-word; }
.sv-badge { flex-shrink: 0; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sv-badge--other { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.sv-poster { position: relative; width: 100%; margin: 0; padding: 0; border: none; border-radius: 10px; overflow: hidden; cursor: pointer; display: block; background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%); aspect-ratio: 16 / 9; max-height: none; text-align: left; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
.sv-poster--vertical { aspect-ratio: 9 / 16; }
.sv-poster:focus-visible { outline: 2px solid var(--accent, #0d9488); outline-offset: 2px; }
.sv-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-poster-placeholder { width: 100%; height: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.sv-poster-shade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.28); transition: background 0.2s ease; }
.sv-poster:hover .sv-poster-shade, .sv-poster:focus-visible .sv-poster-shade { background: rgba(15, 23, 42, 0.42); }
.sv-poster-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--accent-hover, #0f766e); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.sv-poster:hover .sv-poster-play, .sv-poster:focus-visible .sv-poster-play { transform: scale(1.06); }
.sv-poster-play svg { margin-left: 3px; }
.sv-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(15, 23, 42, 0.72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s ease, visibility 0.22s ease; box-sizing: border-box; }
.sv-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sv-modal-panel { position: relative; width: min(1320px, calc(100vw - 32px)); max-width: 100%; max-height: min(93dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)); background: #0f172a; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); box-sizing: border-box; }
.sv-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), #0f172a); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.sv-modal-title { margin: 0; font-size: 15px; font-weight: 700; color: #f8fafc; line-height: 1.35; padding-top: 2px; }
.sv-modal-desc { margin: 8px 0 0; font-size: 13px; font-weight: 400; color: #94a3b8; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 4.5em; overflow: auto; }
.sv-modal-desc:empty, .sv-modal-desc[hidden] { display: none !important; }
.sv-modal-close { flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #e2e8f0; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sv-modal-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
/* 播放区尽量占满：宽度优先 16:9，高度上限随视口增大（原 540px 上限已取消） */
.sv-modal-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(82dvh, calc(93dvh - 96px)); background: #000; }
.sv-modal-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
  .sv-modal {
    align-items: stretch;
    justify-content: center;
    padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .sv-modal-panel {
    width: 100%;
    max-height: min(100dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px));
    border-radius: 12px;
    margin: auto 0;
  }
  .sv-modal-head { padding: 10px 12px; gap: 8px; }
  .sv-modal-title { font-size: 14px; }
  .sv-modal-close { width: 40px; height: 40px; }
  .sv-modal-frame-wrap {
    max-height: min(78dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 120px));
  }
}
body.sv-modal-open, body.sv-submit-modal-open { overflow: hidden; }
.sv-submit-modal { position: fixed; inset: 0; z-index: 10070; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px 16px; background: rgba(15, 23, 42, 0.72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s ease, visibility 0.22s ease; }
.sv-submit-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sv-submit-panel { width: min(440px, 100%); max-height: min(90vh, 640px); overflow: auto; background: var(--bg-card, #fff); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border: 1px solid rgba(13, 148, 136, 0.15); }
.sv-submit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(13, 148, 136, 0.12); background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), var(--bg-card)); }
.sv-submit-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text-primary, #1e293b); }
.sv-submit-close { flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 10px; background: rgba(13, 148, 136, 0.12); color: var(--accent-hover, #0f766e); font-size: 22px; line-height: 1; cursor: pointer; }
.sv-submit-close:hover { background: rgba(13, 148, 136, 0.2); }
.sv-submit-bd { padding: 18px; }
.sv-submit-bd label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-primary, #1e293b); }
.sv-submit-bd input[type="text"], .sv-submit-bd textarea { width: 100%; box-sizing: border-box; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(13, 148, 136, 0.22); font-size: 14px; font-family: inherit; }
.sv-submit-bd textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.sv-submit-bd .sv-submit-hint { margin: -8px 0 14px; font-size: 12px; color: var(--text-secondary, #64748b); line-height: 1.5; }
.sv-submit-err { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; line-height: 1.45; }
.sv-submit-err.is-visible { display: block; }
.sv-submit-ft { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 18px 18px; border-top: 1px solid rgba(13, 148, 136, 0.1); }
.sv-submit-ft .btn-muted { padding: 9px 18px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-weight: 600; cursor: pointer; color: #64748b; }
.sv-submit-ft .btn-submit { padding: 9px 20px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; background: linear-gradient(135deg, var(--accent, #0d9488), var(--accent-hover, #0f766e)); color: #fff; }
.sv-submit-ft .btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.sv-desc-section { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(13, 148, 136, 0.12); }
.sv-desc-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-secondary, #64748b); text-transform: uppercase; }
.sv-desc-body { margin: 0; font-size: 13px; color: var(--text-primary, #1e293b); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.sv-desc-empty { margin: 0; font-size: 13px; color: var(--text-secondary, #64748b); font-style: italic; }
.sv-empty { max-width: min(1240px, 100%); margin: 8px auto 0; padding: 28px 20px; text-align: center; color: var(--text-secondary, #64748b); background: var(--bg-card, #fff); border-radius: 14px; border: 1px dashed rgba(13, 148, 136, 0.25); box-sizing: border-box; }
