/* LIONS Hartzer Hudl - Stylesheet */
:root {
    --primary: #1a5632;
    --primary-light: #2d8a4e;
    --accent: #f59e0b;
    --danger: #dc2626;
    --success: #16a34a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 56px;
}
.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.nav-links li a,
.nav-links .nav-user span {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 1rem 0.75rem;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-links li a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--radius);
    min-width: 150px;
    z-index: 100;
    list-style: none;
}
.dropdown-menu li a {
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
}
.dropdown-menu li a:hover { background: var(--gray-100) !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #d97706; }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: white;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,86,50,0.15); }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    gap: 0.75rem;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
th { background: var(--gray-100); font-weight: 600; color: var(--gray-700); white-space: nowrap; }
tr:hover { background: var(--gray-50); }

/* YouTube Player */
.yt-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: #000;
}
.yt-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Zoom inner wrapper — receives the CSS transform */
.yt-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-origin: center center;
    will-change: transform;
}

/* Transparent overlay — captures wheel + drag events when zoomed */
.yt-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: all;
    cursor: grab;
}
.yt-overlay.dragging {
    cursor: grabbing;
}

/* Reset zoom button — top-right corner of yt-wrap */
.zoom-reset-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1.4;
}
.zoom-reset-btn:hover { background: rgba(0,0,0,0.85); }

/* Zoom controls pill — bottom-right of yt-wrap */
.zoom-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.72);
  border-radius: 20px;
  padding: 4px 10px;
  z-index: 20;
  pointer-events: all;
}
.zoom-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.zoom-btn:hover { color: #fbbf24; }
#zoomDisplay {
  color: #fff;
  font-size: 13px;
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Media Controls */
.media-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.media-controls .btn { flex: 1; justify-content: center; font-size: 1rem; padding: 0.6rem; }
.btn-play { background: #2196F3; color: white; }
.btn-play:hover { background: #1976D2; }
.btn-play.paused { background: #FF9800; }
.btn-play.paused:hover { background: #F57C00; }
.btn-seek { background: #607D8B; color: white; }
.btn-seek:hover { background: #455A64; }

/* Timestamp display */
.timestamp-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Play form section */
.play-form { margin-top: 1rem; }
.play-form .card { border-left: 3px solid var(--primary); }

/* Queue items */
.queue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: grab;
}
.queue-item:active { cursor: grabbing; }
.queue-item .drag-handle { color: var(--gray-300); font-size: 1.2rem; }
.queue-item .queue-info { flex: 1; font-size: 0.85rem; }

/* Filter panel */
.filter-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary); color: white; }
.badge-accent { background: var(--accent); color: white; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Login page */
.login-wrap {
    max-width: 400px;
    margin: 3rem auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 0.75rem 0; }
    .nav-user { margin-left: 0; padding: 0.5rem 0; }
    .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); }
    .dropdown-menu li a { color: rgba(255,255,255,0.85) !important; padding-left: 1.5rem !important; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .media-controls { flex-wrap: wrap; }
    .media-controls .btn { min-width: calc(33% - 0.5rem); }
    .filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .filter-grid { grid-template-columns: 1fr; }
    .container { padding: 1rem 0.5rem; }
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.85rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.hidden { display: none; }

/* Analytics hub */
.analytics-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.hub-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-card:hover {
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74,144,226,0.15);
}
.hub-card h3 { margin: 0 0 0.5rem; }
.hub-card p { margin: 0; color: #666; font-size: 0.9rem; }

/* Analytics pages */
.back-link { display: inline-block; margin-bottom: 1rem; color: #666; text-decoration: none; }
.back-link:hover { color: #333; }
.filter-form { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: #555; }
.filter-group select { padding: 0.4rem 0.6rem; border: 1px solid #ccc; border-radius: 4px; }
.filter-submit .btn { padding: 0.45rem 1.2rem; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.data-table th { background: #2c3e50; color: #fff; padding: 0.6rem 0.8rem; text-align: left; }
.data-table td { padding: 0.5rem 0.8rem; border-bottom: 1px solid #eee; }
.data-table tbody tr:hover { background: #f9f9f9; }
.data-table tfoot .total-row { background: #f0f0f0; font-weight: 600; }
.table-responsive { overflow-x: auto; }
.play-thumb { max-height: 48px; cursor: pointer; border-radius: 3px; }
.mt-4 { margin-top: 1.5rem; }

/* Tabs */
.tabs-container { margin-top: 1.5rem; }
.tab-buttons { display: flex; gap: 0.5rem; border-bottom: 2px solid #ddd; margin-bottom: 1rem; }
.tab-btn { padding: 0.5rem 1.2rem; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 0.95rem; }
.tab-btn.active { border-bottom-color: #2c3e50; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* Modal overlay (for play diagrams) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.hidden { display: none; }
.modal-box { background: #fff; border-radius: 8px; max-width: 800px; width: 90%; max-height: 90vh; overflow: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #eee; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 1.5rem; text-align: center; }

/* Clip timestamp row (Set Start / Set End) */
.clip-ts-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
  background: #1e1e1e;
  border-radius: 0 0 var(--radius) var(--radius);
  flex-wrap: wrap;
}
.clip-ts-display, .clip-ts-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.clip-ts-label { font-size: 10px; color: #888; letter-spacing: .05em; text-transform: uppercase; }
.clip-ts-value { font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.clip-ts-end   { color: #f87171; }
.clip-ts-duration .clip-ts-value { color: #fbbf24; }
.ts-start { color: #22c55e; font-weight: 600; }

/* Team badge — circular initials avatar */
.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}
.ts-end   { color: #f87171; font-weight: 600; }

/* ── Dashboard Command Center ─────────────────────────── */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .action-grid { grid-template-columns: 1fr; }
}
.action-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.15s, transform 0.15s;
}
.action-card:hover {
    box-shadow: 0 4px 16px rgba(26,86,50,0.12);
    transform: translateY(-2px);
}
.action-card .action-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
}
.action-card .action-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}
.action-card .action-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    flex: 1;
}
.action-card .action-btn {
    margin-top: 0.75rem;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}
.action-card:hover .action-btn {
    background: var(--primary-light);
}

/* Recent game cards */
.recent-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .recent-games-grid { grid-template-columns: 1fr; }
}
.recent-game-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.recent-game-card .rg-league {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    align-self: flex-start;
}
.recent-game-card .rg-teams {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}
.recent-game-card .rg-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.recent-game-card .rg-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}
.rg-actions .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
}

/* ── Prepare II enhancements ─────────────────────── */
.tag-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
    min-height: 1.2rem;
}
.tag-pill {
    background: var(--accent);
    color: #000;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}
.play-nav-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.play-nav-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    min-width: 50px;
    text-align: center;
}
.shortcuts-panel {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}
.shortcuts-panel summary {
    cursor: pointer;
    user-select: none;
}
.shortcuts-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}
.shortcuts-grid span:nth-child(odd) {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
}

/* ── Video progress bar ───────────────────────────── */
.video-progress-wrap {
    margin: 0.5rem 0 0.25rem;
}
.video-progress-track {
    position: relative;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    cursor: pointer;
    overflow: visible;
}
.video-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    pointer-events: none;
    width: 0%;
}
.video-progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 2;
}
.marker-start { background: var(--success); }
.marker-end   { background: var(--danger); }
.video-progress-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ── Prepare I two-column layout ────────────────── */
.create-game-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .create-game-layout { grid-template-columns: 1fr; }
}
.team-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.team-mgmt-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.team-mgmt-name {
    flex: 1;
    font-size: 0.9rem;
}

/* ── Watch Mode additions ─────────────────────────── */
.tag-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1rem;
}
.tag-filter-pill {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tag-filter-pill.active,
.tag-filter-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.clip-queue-select {
    font-size: 0.78rem;
    padding: 0.2rem 0.4rem;
    max-width: 160px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

/* ── Whiteboard comments ──────────────────────────── */
.wb-comments-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}
.wb-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}
.wb-comment-count {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}
.wb-comments-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
}
.wb-comment {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
}
.wb-comment-user {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
}
.wb-comment-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    word-break: break-word;
}
.wb-comment-time {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
}
.wb-comment-loading,
.wb-comment-empty {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    padding: 0.25rem 0;
}
.wb-comment-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.wb-comment-input {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: #fff;
    outline: none;
}
.wb-comment-input:focus {
    border-color: var(--accent);
}
.wb-comment-send {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}
.wb-comment-send:hover { background: var(--primary-light); }

/* ── Admin page ───────────────────────────────────── */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}
.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}
.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.playlist-item:last-child { border-bottom: none; }
.playlist-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}
.playlist-name:hover { text-decoration: underline; }
