.site-shell{display:flex;min-height:100vh}
.top-actions{display:flex;gap:10px;align-items:center}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:28px 0 14px}
.section-head h2{margin:0 0 5px}

.yt-hero{padding:25px}
.yt-channel{display:flex;align-items:center;gap:18px}
.yt-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:0 0 88px;border:2px solid rgba(255,255,255,.12)}
.yt-avatar-fallback{display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#3d8bff);font-weight:900;font-size:25px}
.yt-kicker{font-size:11px;font-weight:800;color:#ff4b5f;text-transform:uppercase;letter-spacing:.12em}
.yt-channel-copy h2{font-size:25px;margin:4px 0}
.yt-channel-copy>p{margin:0;color:var(--muted);font-size:13px}
.yt-description{max-width:900px;margin-top:8px!important;line-height:1.55}
.yt-stats{display:flex;gap:22px;flex-wrap:wrap;margin-top:14px;color:var(--muted);font-size:12px}
.yt-stats strong{color:#fff;font-size:15px}

.yt-video-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.yt-video-card{padding:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:rgba(17,24,43,.78);color:var(--text);text-align:left;cursor:pointer;font:inherit;transition:transform .18s ease,border-color .18s ease}
.yt-video-card:hover{transform:translateY(-2px);border-color:rgba(124,92,255,.5)}
.yt-thumb-wrap{position:relative;aspect-ratio:16/9;background:#080b14}
.yt-thumb{width:100%;height:100%;object-fit:cover;display:block}
.yt-play{position:absolute;left:10px;bottom:10px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.72);color:#fff}
.yt-status{position:absolute;right:8px;top:8px;padding:4px 7px;border-radius:6px;font-size:9px;font-weight:900;background:#ff3f55}
.yt-status.upcoming{background:#7c5cff}
.yt-card-body{padding:11px}
.yt-card-body h3{font-size:12px;line-height:1.45;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yt-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}
.yt-updated{font-size:11px;color:var(--muted)}
.yt-loading{grid-column:1/-1;text-align:center;color:var(--muted)}
.yt-error{margin-bottom:15px;border-color:rgba(255,102,122,.35);color:#ffb5bf}
.yt-footer{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.yt-footer p{margin:4px 0 0}

.yt-player-backdrop{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(0,0,0,.8);
    backdrop-filter:blur(6px);
    display:grid;
    place-items:center;
    padding:24px
}

.yt-player-backdrop[hidden]{
    display:none !important;
}

.yt-player-modal{
    width:min(1050px,96vw);
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 30px 90px rgba(0,0,0,.5)
}

.yt-player-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid var(--line)
}

.yt-player-head strong{display:block;font-size:12px;line-height:1.35}
.yt-player-head span{display:block;margin-top:3px;color:var(--muted);font-size:9px}
.yt-player-frame-wrap{width:100%;aspect-ratio:16/9;background:#000}
.yt-player-frame{width:100%;height:100%;border:0;display:block}
.icon-btn{border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer}

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

@media(max-width:900px){
    .yt-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .yt-channel{align-items:flex-start}
    .yt-avatar{width:70px;height:70px;flex-basis:70px}
}

@media(max-width:680px){
    .top-actions{margin-top:16px}
    .section-head,.yt-footer{display:block}
    .section-head .yt-updated{display:block;margin-top:8px}
    .yt-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .yt-channel{display:block}
    .yt-avatar{margin-bottom:12px}
    .yt-stats{gap:12px}
    .yt-player-backdrop{padding:10px}
}

@media(max-width:430px){
    .yt-video-grid{grid-template-columns:1fr}
}
/* Match the main dashboard sidebar profile with the Tournament Manager sidebar. */
.sidebar .brand{display:flex!important;align-items:center!important;gap:12px!important;width:auto!important;min-width:0!important;height:auto!important;padding:8px 10px 28px!important;overflow:visible!important;}
.sidebar .brand-avatar-wrap{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important;display:grid!important;place-items:center!important;flex:none!important;overflow:hidden!important;}
.sidebar .brand-avatar,.sidebar .brand-mark{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important;border-radius:14px!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;}
.sidebar .brand-copy{min-width:0!important;max-width:none!important;overflow:visible!important;display:block!important;}
.sidebar .brand-copy strong{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-size:14px!important;line-height:1.25!important;color:var(--text)!important;}
.sidebar .brand-copy span{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important;line-height:1.25!important;margin-top:3px!important;color:var(--muted)!important;}
@media(max-width:720px){
  .sidebar .brand{padding-bottom:22px!important;}
  .sidebar .brand-avatar-wrap{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;}
  .sidebar .brand-avatar,.sidebar .brand-mark{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;border-radius:12px!important;}
}


/* Final mobile correction for the YouTube dashboard. */
@media (max-width: 800px){
  .yt-hero{padding:16px !important}
  .yt-channel{display:block !important;min-width:0 !important}
  .yt-avatar{margin-bottom:12px !important}
  .yt-channel-copy{min-width:0 !important;max-width:100% !important}
  .yt-channel-copy h2{font-size:22px !important;overflow-wrap:anywhere}
  .yt-description{max-width:100% !important;overflow-wrap:anywhere}
  .yt-video-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .yt-footer{display:block !important}
  .yt-footer .secondary-btn{display:inline-flex;margin-top:10px}
  .section-head{display:block !important}
  .section-head .yt-updated{display:block !important;margin-top:8px}
}
@media (max-width: 520px){
  .yt-video-grid{grid-template-columns:1fr !important}
  .yt-stats{gap:9px !important}
  .yt-kicker{font-size:10px !important}
  .yt-channel-copy h2{font-size:21px !important}
  .yt-player-backdrop{padding:7px !important}
  .yt-player-modal{width:100% !important;max-width:100% !important}
}
