/* ====================================================================
   SCDEV Live — Videos / Watch-Video pages  (.scv-*)
   ==================================================================== */

.scv-wrap { padding: 16px 0; }

/* ── Top bar ─────────────────────────────────────────────────────── */
.scv-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.scv-add-btn,
.scv-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.scv-add-btn              { background: var(--scl-primary); color: #fff; }
.scv-add-btn:hover        { background: var(--scl-primary-dk); transform: scale(1.03); }
.scv-filter-btn           { background: var(--scl-mid); color: #fff; }
.scv-filter-btn:hover     { background: #1a4a8a; color: #fff; }
.scv-filter-btn.active    { background: var(--scl-accent); color: var(--scl-dark); }

/* ── Category pills ──────────────────────────────────────────────── */
.scv-cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.scv-cat-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: rgba(128,128,128,0.1);
    color: inherit;
    border: 1px solid rgba(128,128,128,0.2);
    transition: background 0.2s, color 0.2s;
}
.scv-cat-pill:hover,
.scv-cat-pill.active { background: var(--scl-primary); color: #fff; border-color: var(--scl-primary); }

/* ── Author filter bar ───────────────────────────────────────────── */
.scv-author-bar { margin-bottom: 14px; font-size: 14px; opacity: 0.7; }
.scv-author-bar a { color: var(--scl-primary); text-decoration: none; margin-left: 8px; }

/* ── Grid ────────────────────────────────────────────────────────── */
.scv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 600px) {
    .scv-grid { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────────────── */
.scv-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(128,128,128,0.18);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
    position: relative;
    cursor: pointer;
}
.scv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ── Thumbnail ───────────────────────────────────────────────────── */
.scv-card-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    line-height: 0;
}
.scv-card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.scv-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    font-size: 2.5rem;
}
.scv-card-locked .scv-card-thumb img,
.scv-card-locked .scv-card-thumb-placeholder { filter: blur(8px); }

.scv-type-icon {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.scv-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
}
.scv-lock-overlay span:first-child { font-size: 1.8rem; }

/* ── Card body ───────────────────────────────────────────────────── */
.scv-card-info { padding: 10px 12px 12px; }

.scv-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scv-card-desc {
    font-size: 12px;
    color: inherit;
    opacity: 0.65;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.scv-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 6px;
}
.scv-author-link { color: var(--scl-primary); text-decoration: none; font-weight: 600; }
.scv-author-link:hover { text-decoration: underline; }

.scv-cat-tag {
    background: rgba(128,128,128,0.15);
    color: inherit;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.scv-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: 0.65;
}
.scv-ppv-badge {
    background: var(--scl-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    opacity: 1;
}
.scv-tip-btn {
    background: none;
    border: 1px solid rgba(128,128,128,0.35);
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    opacity: 1;
    transition: background 0.2s;
}
.scv-tip-btn:hover { background: rgba(128,128,128,0.12); }

/* ── Empty / loading ─────────────────────────────────────────────── */
.scv-empty   { opacity: 0.55; padding: 40px 0; text-align: center; }
.scv-loading { opacity: 0.55; }

/* ── Modal ───────────────────────────────────────────────────────── */
.scv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
}
.scv-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    background: Canvas;
    color: CanvasText;
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 14px;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.scv-modal-inner { padding: 24px; }
.scv-modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
    padding: 0;
}
.scv-modal-close:hover { opacity: 1; color: var(--scl-primary); }

/* ── Tabs ────────────────────────────────────────────────────────── */
.scv-tabs {
    display: flex;
    gap: 4px;
    margin: 12px 0 20px;
    border-bottom: 2px solid rgba(128,128,128,0.2);
}
.scv-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: opacity 0.2s, border-color 0.2s;
    color: inherit;
}
.scv-tab.active,
.scv-tab:hover { opacity: 1; color: var(--scl-primary); border-bottom-color: var(--scl-primary); }

/* ── Form fields ─────────────────────────────────────────────────── */
.scv-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.scv-field label { font-size: 13px; font-weight: 600; }
.scv-field input[type="text"],
.scv-field input[type="url"],
.scv-field input[type="number"],
.scv-field select,
.scv-field textarea {
    padding: 9px 12px;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 14px;
    outline: none;
    resize: vertical;
}
.scv-field input:focus,
.scv-field select:focus,
.scv-field textarea:focus { border-color: var(--scl-primary); }

.scv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scv-check-field { flex-direction: row; align-items: center; }
.scv-check-field label { font-weight: 400; cursor: pointer; }

.scv-submit-btn {
    width: 100%;
    padding: 11px;
    background: var(--scl-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.scv-submit-btn:hover { background: var(--scl-primary-dk); }

.scv-msg { font-size: 13px; padding: 8px 12px; border-radius: 6px; margin-top: 8px; }
.scv-msg-ok  { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.scv-msg-err { background: rgba(231,57,70,0.12);  color: var(--scl-primary); border: 1px solid rgba(231,57,70,0.3); }

/* ── My Streams list (modal) ─────────────────────────────────────── */
.scv-my-list { display: flex; flex-direction: column; gap: 10px; }
.scv-my-item {
    padding: 12px 14px;
    border: 1px solid rgba(128,128,128,0.18);
    border-radius: 8px;
}
.scv-my-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.scv-my-meta  { font-size: 12px; opacity: 0.6; margin-bottom: 8px; }
.scv-my-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.scv-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--scl-mid);
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.scv-btn-sm:hover  { background: #1a4a8a; color: #fff; }
.scv-btn-danger    { background: #7c0e12 !important; }
.scv-btn-danger:hover { background: var(--scl-primary-dk) !important; }

/* ====================================================================
   WATCH VIDEO PAGE
   ==================================================================== */

.scv-watch-wrap { padding: 16px 0; max-width: 860px; }
.scv-watch-header { margin-bottom: 16px; }

.scv-back {
    display: inline-block;
    font-size: 13px;
    opacity: 0.6;
    text-decoration: none;
    margin-bottom: 8px;
    color: inherit;
}
.scv-back:hover { opacity: 1; color: var(--scl-primary); }

.scv-watch-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.scv-watch-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.7;
}
.scv-cat {
    background: rgba(128,128,128,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 1;
}

/* ── Player ──────────────────────────────────────────────────────── */
.scv-player-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
    line-height: 0;
}
.scv-video-player,
.scv-player-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}
.scv-audio-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #111;
}
.scv-audio-cover {
    width: 200px; height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.scv-audio-cover-fallback {
    width: 200px; height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}
.scv-audio-player { width: 100%; max-width: 400px; }
.scv-image-viewer { width: 100%; display: block; border-radius: 10px; }

/* ── Description ─────────────────────────────────────────────────── */
.scv-description {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(128,128,128,0.18);
    border-radius: 8px;
}

/* ── Tip section ─────────────────────────────────────────────────── */
.scv-tip-section {
    padding: 16px;
    border: 1px solid rgba(128,128,128,0.18);
    border-radius: 10px;
    margin-bottom: 16px;
}
.scv-tip-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.scv-tip-input,
.scv-tip-msg-input {
    padding: 9px 12px;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 14px;
    outline: none;
}
.scv-tip-input { width: 110px; }
.scv-tip-msg-input { width: 100%; font-size: 13px; }
.scv-tip-input:focus,
.scv-tip-msg-input:focus { border-color: var(--scl-primary); }
.scv-tip-result { font-size: 13px; display: block; margin-top: 8px; }

/* ── PPV gate ────────────────────────────────────────────────────── */
.scv-gate {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(128,128,128,0.18);
}
.scv-gate-inner { text-align: center; padding: 48px 24px; }
.scv-gate-icon  { font-size: 3rem; margin-bottom: 12px; }
.scv-gate-inner h3 { font-size: 1.3rem; margin: 0 0 10px; }
.scv-gate-inner p  { opacity: 0.7; margin: 0 0 16px; font-size: 14px; }
.scv-gate-inner .scl-btn { margin: 6px; }

.scv-notice { opacity: 0.6; padding: 20px 0; }

/* ── PPV Confirm Modal ───────────────────────────────────────────── */
.scv-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.scv-confirm-box {
    background: Canvas;
    color: CanvasText;
    border-radius: 14px;
    padding: 28px 28px 22px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(128,128,128,0.18);
}
.scv-confirm-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}
.scv-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128,128,128,0.12);
}
.scv-confirm-row:last-of-type { border-bottom: none; }
.scv-confirm-row span:first-child { opacity: 0.6; }
.scv-confirm-row span:last-child  { font-weight: 700; }
.scv-confirm-cost  { color: var(--scl-primary); }
.scv-confirm-after { color: #2ecc71; }
.scv-confirm-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.scv-confirm-btns button {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.scv-confirm-btns button:hover { opacity: 0.85; }
.scv-confirm-ok     { background: var(--scl-primary); color: #fff; }
.scv-confirm-cancel { background: rgba(128,128,128,0.15); color: inherit; }

/* ── Tip Modal ───────────────────────────────────────────────────── */
.scv-tip-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}
.scv-tip-steps button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(128,128,128,0.3);
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.scv-tip-steps button:hover { background: rgba(128,128,128,0.12); }
.scv-tip-amount-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--scl-accent);
    min-width: 80px;
    text-align: center;
}
.scv-tip-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.scv-tip-preset {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(128,128,128,0.25);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.scv-tip-preset:hover,
.scv-tip-preset.active { background: var(--scl-accent); color: #fff; border-color: var(--scl-accent); }

/* ── Download button ─────────────────────────────────────────────── */
.scv-download-wrap { margin-bottom: 16px; }
.scv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--scl-mid);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.scv-download-btn:hover { background: #1a4a8a; color: #fff; }

/* ── Author avatar ───────────────────────────────────────────────── */
.scv-author-link { display: inline-flex; align-items: center; gap: 6px; }
.scv-author-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(128,128,128,0.2);
}

/* ── Streamers slider ────────────────────────────────────────────── */
.scv-slider-wrap {
    overflow: hidden;
    position: relative;
    padding: 4px 0 8px;
}
.scv-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.scv-slider-track::-webkit-scrollbar { display: none; }
.scv-slider-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    width: 80px;
    text-align: center;
}
.scv-slider-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(128,128,128,0.2);
    transition: border-color 0.2s;
}
.scv-slider-card:hover .scv-slider-avatar { border-color: var(--scl-primary); }
.scv-slider-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.scv-slider-count {
    font-size: 10px;
    opacity: 0.55;
}

/* ── Watch page — larger author avatar ──────────────────────────── */
.scv-watch-meta .scv-author-avatar {
    width: 48px; height: 48px;
}
