/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    --tr-bg: #0A0A0F;
    --tr-primary: #FFD700;
    --tr-secondary: #7C3AED;
    --tr-surface: #13131A;
    --tr-surface-2: #1C1C26;
    --tr-text: #FFFFFF;
    --tr-text-muted: #8888AA;
    --tr-border: #2A2A3A;
    --tr-danger: #EF4444;
    --tr-success: #22C55E;
    --tr-warning: #F59E0B;

    --tr-radius-sm: 6px;
    --tr-radius-md: 12px;
    --tr-radius-lg: 20px;
    --tr-radius-xl: 28px;
    --tr-radius-full: 9999px;

    --tr-sidebar-w: 240px;
    --tr-header-h: 64px;
    --tr-season-banner-h: 44px;
    --tr-mobile-nav-h: 64px;

    --tr-font-heading: 'Clash Display', 'Clash Display Variable', sans-serif;
    --tr-font-body: 'DM Sans', sans-serif;

    --tr-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --tr-shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --tr-shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --tr-glow-gold: 0 0 20px rgba(255,215,0,0.25);
    --tr-glow-violet: 0 0 20px rgba(124,58,237,0.3);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--tr-bg);
    color: var(--tr-text);
    font-family: var(--tr-font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

h1,h2,h3,h4,h5,h6 { font-family: var(--tr-font-heading); font-weight: 600; line-height: 1.2; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.tr-body { overflow-x: hidden; }
.tr-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--tr-season-banner-h);
}
.tr-main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tr-main {
    flex: 1;
    padding: 24px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ─── Season Banner ──────────────────────────────────────────────────────── */
.tr-season-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--tr-season-banner-h);
    background: linear-gradient(90deg, var(--tr-secondary), #5B21B6);
    display: flex;
    align-items: center;
}
.tr-season-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
}
.tr-season-banner__icon { font-size: 16px; }
.tr-season-banner__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-season-banner__countdown { color: var(--tr-primary); font-weight: 700; margin-left: 8px; }
.tr-season-banner__cta {
    background: var(--tr-primary);
    color: #0A0A0F;
    padding: 4px 12px;
    border-radius: var(--tr-radius-full);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.tr-season-banner__cta:hover { opacity: 0.85; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.tr-header {
    height: var(--tr-header-h);
    background: var(--tr-surface);
    border-bottom: 1px solid var(--tr-border);
    position: sticky;
    top: var(--tr-season-banner-h);
    z-index: 900;
    display: none; /* hidden on desktop — sidebar takes over */
}
.tr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}
.tr-header__nav { display: flex; align-items: center; gap: 12px; }

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.tr-sidebar {
    width: var(--tr-sidebar-w);
    min-height: 100vh;
    background: var(--tr-surface);
    border-right: 1px solid var(--tr-border);
    position: sticky;
    top: var(--tr-season-banner-h);
    height: calc(100vh - var(--tr-season-banner-h));
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.tr-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 0;
}
.tr-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    font-family: var(--tr-font-heading);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--tr-border);
    margin-bottom: 16px;
}
.tr-logo__icon { font-size: 24px; }
.tr-sidebar__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; flex: 1; }
.tr-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--tr-radius-md);
    color: var(--tr-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.tr-sidebar__item:hover, .tr-sidebar__item.active {
    background: var(--tr-surface-2);
    color: var(--tr-text);
}
.tr-sidebar__item.active { color: var(--tr-primary); }
.tr-sidebar__item--upload {
    background: var(--tr-primary);
    color: #0A0A0F !important;
    margin: 8px 0;
    font-weight: 700;
}
.tr-sidebar__item--upload:hover { opacity: 0.9; }
.tr-sidebar__bottom { padding: 16px 10px; border-top: 1px solid var(--tr-border); margin-top: auto; }
.tr-sidebar__user { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 12px; }
.tr-sidebar__user-info { display: flex; flex-direction: column; overflow: hidden; }
.tr-sidebar__user-name { font-size: 13px; font-weight: 600; truncate: true; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-sidebar__user-role { font-size: 11px; color: var(--tr-text-muted); text-transform: capitalize; }
.tr-sidebar__signout { display: block; padding: 6px 12px; font-size: 13px; color: var(--tr-text-muted); }
.tr-sidebar__signout:hover { color: var(--tr-danger); }
.tr-sidebar__auth-cta { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.tr-sidebar__signin-link { font-size: 12px; color: var(--tr-text-muted); text-align: center; }
.tr-sidebar__trending { padding: 16px 12px 0; margin-top: 12px; border-top: 1px solid var(--tr-border); }
.tr-sidebar__trending-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tr-text-muted); margin-bottom: 10px; }
.tr-sidebar__trending-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.tr-sidebar__trending-rank { font-size: 16px; }
.tr-sidebar__trending-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sidebar__trending-votes { font-size: 12px; color: var(--tr-text-muted); }

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.tr-logo { display: flex; align-items: center; gap: 8px; font-family: var(--tr-font-heading); font-weight: 700; font-size: 18px; }
.tr-logo--lg { font-size: 28px; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--tr-radius-full);
    font-family: var(--tr-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.tr-btn--primary { background: var(--tr-primary); color: #0A0A0F; }
.tr-btn--primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--tr-glow-gold); }
.tr-btn--ghost { background: transparent; color: var(--tr-text); border: 1.5px solid var(--tr-border); }
.tr-btn--ghost:hover { border-color: var(--tr-text-muted); background: var(--tr-surface-2); }
.tr-btn--danger { background: var(--tr-danger); color: #fff; }
.tr-btn--sm { padding: 7px 14px; font-size: 13px; }
.tr-btn--lg { padding: 14px 28px; font-size: 15px; }
.tr-btn--block { width: 100%; }
.tr-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Inputs ─────────────────────────────────────────────────────────────── */
.tr-input {
    width: 100%;
    background: var(--tr-surface-2);
    border: 1.5px solid var(--tr-border);
    border-radius: var(--tr-radius-md);
    color: var(--tr-text);
    font-family: var(--tr-font-body);
    font-size: 14px;
    padding: 12px 16px;
    transition: border-color 0.2s;
    outline: none;
}
.tr-input:focus { border-color: var(--tr-primary); }
.tr-input::placeholder { color: var(--tr-text-muted); }
.tr-select { appearance: none; cursor: pointer; }
.tr-label { display: block; font-size: 13px; font-weight: 600; color: var(--tr-text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.tr-label--optional { color: var(--tr-text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.tr-label--note { font-size: 11px; font-weight: 400; color: var(--tr-text-muted); text-transform: none; letter-spacing: 0; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.tr-form { display: flex; flex-direction: column; gap: 20px; }
.tr-form__field { display: flex; flex-direction: column; gap: 6px; }
.tr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-form__row--spaced { display: flex; justify-content: space-between; align-items: center; }
.tr-form-errors { background: rgba(239,68,68,0.1); border: 1.5px solid var(--tr-danger); border-radius: var(--tr-radius-md); padding: 12px 16px; }
.tr-form-error { color: var(--tr-danger); font-size: 13px; }
.tr-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.tr-checkbox { accent-color: var(--tr-primary); }
.tr-link { color: var(--tr-primary); font-size: 13px; }

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.tr-auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.tr-auth-page { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 480px; gap: 32px; }
.tr-auth-page__brand { text-align: center; }
.tr-auth-page__tagline { color: var(--tr-text-muted); margin-top: 6px; font-size: 15px; }
.tr-auth-card { background: var(--tr-surface); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-xl); padding: 40px; width: 100%; }
.tr-auth-card__title { font-size: 22px; margin-bottom: 24px; text-align: center; }
.tr-auth-card__signin { text-align: center; font-size: 13px; color: var(--tr-text-muted); margin-top: 24px; }
.tr-auth-card__signin a { color: var(--tr-primary); }
.tr-auth-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tr-auth-success__icon { font-size: 48px; }

/* Role selection cards */
.tr-role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.tr-role-card {
    background: var(--tr-surface-2);
    border: 2px solid var(--tr-border);
    border-radius: var(--tr-radius-lg);
    padding: 28px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    cursor: pointer;
}
.tr-role-card:hover { border-color: var(--tr-primary); background: rgba(255,215,0,0.05); transform: translateY(-2px); }
.tr-role-card__icon { font-size: 40px; }
.tr-role-card__label { font-family: var(--tr-font-heading); font-size: 16px; font-weight: 700; }
.tr-role-card__desc { font-size: 12px; color: var(--tr-text-muted); }

/* ─── Video Feed ─────────────────────────────────────────────────────────── */
.tr-feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tr-feed-title { font-size: 28px; }
.tr-season-badge { background: var(--tr-surface-2); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-full); padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--tr-text-muted); }
.tr-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ─── Video Card ─────────────────────────────────────────────────────────── */
.tr-video-card {
    background: var(--tr-surface);
    border: 1.5px solid var(--tr-border);
    border-radius: var(--tr-radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.tr-video-card:hover { border-color: var(--tr-border); transform: translateY(-3px); box-shadow: var(--tr-shadow-lg); }
.tr-video-card__media { position: relative; aspect-ratio: 9/16; overflow: hidden; max-height: 380px; }
.tr-video-card__link { display: block; height: 100%; }
.tr-video-card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tr-video-card:hover .tr-video-card__thumb { transform: scale(1.03); }
.tr-video-card__thumb-placeholder { width: 100%; height: 100%; background: var(--tr-surface-2); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.tr-video-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.tr-video-card:hover .tr-video-card__overlay { opacity: 1; }
.tr-video-card__play { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.tr-video-card__badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); border-radius: var(--tr-radius-full); padding: 4px 10px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.tr-video-card__info { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tr-video-card__author { display: flex; align-items: center; gap: 8px; }
.tr-video-card__author-link { display: flex; align-items: center; gap: 8px; }
.tr-video-card__stage-name { font-size: 13px; font-weight: 600; color: var(--tr-text-muted); }
.tr-video-card__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tr-video-card__title a:hover { color: var(--tr-primary); }
.tr-video-card__actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }

/* ─── Avatars ────────────────────────────────────────────────────────────── */
.tr-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tr-avatar--xs { width: 28px; height: 28px; }
.tr-avatar--sm { width: 36px; height: 36px; }
.tr-avatar--md { width: 52px; height: 52px; }
.tr-avatar--lg { width: 80px; height: 80px; border: 3px solid var(--tr-primary); }
.tr-avatar--placeholder { background: var(--tr-secondary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.tr-avatar--xs.tr-avatar--placeholder { font-size: 11px; }
.tr-avatar--lg.tr-avatar--placeholder { font-size: 24px; }

/* ─── Reactions ──────────────────────────────────────────────────────────── */
.tr-reactions { display: flex; align-items: center; gap: 6px; flex: 1; position: relative; }
.tr-reaction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tr-surface-2);
    border: 1.5px solid var(--tr-border);
    font-size: 18px;
    transition: all 0.15s;
    position: relative;
}
.tr-reaction-btn:hover, .tr-reaction-btn.active { border-color: var(--tr-primary); background: rgba(255,215,0,0.1); transform: scale(1.15); }
.tr-reaction-btn__emoji { display: block; pointer-events: none; }
.tr-reactions__total { font-size: 13px; font-weight: 700; color: var(--tr-text-muted); min-width: 24px; }
.tr-login-nudge {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tr-surface-2);
    border: 1.5px solid var(--tr-border);
    border-radius: var(--tr-radius-md);
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.tr-reactions:hover .tr-login-nudge { opacity: 1; }

/* ─── Action buttons ─────────────────────────────────────────────────────── */
.tr-action-btn { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--tr-text-muted); padding: 4px 8px; border-radius: var(--tr-radius-md); transition: all 0.15s; }
.tr-action-btn:hover { color: var(--tr-text); background: var(--tr-surface-2); }

/* ─── Empty State ────────────────────────────────────────────────────────── */
.tr-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 24px; text-align: center; }
.tr-empty-state__icon { font-size: 56px; }
.tr-empty-state h2 { font-size: 22px; }
.tr-empty-state p { color: var(--tr-text-muted); }

/* ─── Page Header ────────────────────────────────────────────────────────── */
.tr-page-header { margin-bottom: 32px; }
.tr-page-title { font-size: 32px; margin-bottom: 4px; }
.tr-page-subtitle { color: var(--tr-text-muted); font-size: 14px; }

/* ─── Leaderboard ────────────────────────────────────────────────────────── */
.tr-podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-bottom: 48px; padding: 0 16px; }
.tr-podium__item { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; max-width: 200px; }
.tr-podium__item a { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tr-podium__medal { font-size: 32px; }
.tr-podium__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tr-border); }
.tr-podium__item--Gold .tr-podium__avatar { border-color: var(--tr-primary); box-shadow: var(--tr-glow-gold); }
.tr-podium__item--Silver .tr-podium__avatar { border-color: #C0C0C0; }
.tr-podium__item--Bronze .tr-podium__avatar { border-color: #CD7F32; }
.tr-podium__name { font-weight: 700; font-size: 14px; text-align: center; }
.tr-podium__votes { font-size: 13px; color: var(--tr-text-muted); }
.tr-podium__bar { width: 100%; border-radius: 8px 8px 0 0; }
.tr-podium__item--Gold .tr-podium__bar { background: var(--tr-primary); height: 100px; }
.tr-podium__item--Silver .tr-podium__bar { background: #C0C0C0; height: 70px; }
.tr-podium__item--Bronze .tr-podium__bar { background: #CD7F32; height: 50px; }
.tr-podium__rank { color: var(--tr-text-muted); font-size: 12px; }

.tr-leaderboard-list { display: flex; flex-direction: column; gap: 4px; }
.tr-leaderboard-list__title { font-size: 20px; margin-bottom: 16px; }
.tr-leaderboard-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--tr-surface); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-md); }
.tr-leaderboard-row:hover { border-color: var(--tr-border); background: var(--tr-surface-2); }
.tr-leaderboard-row__rank { font-size: 18px; font-weight: 700; min-width: 36px; color: var(--tr-text-muted); }
.tr-leaderboard-row__info { display: flex; align-items: center; gap: 12px; flex: 1; }
.tr-leaderboard-row__name { font-weight: 600; font-size: 14px; }
.tr-leaderboard-row__cat { font-size: 12px; color: var(--tr-text-muted); }
.tr-leaderboard-row__votes { font-weight: 700; color: var(--tr-primary); font-size: 14px; }

/* ─── Discover ───────────────────────────────────────────────────────────── */
.tr-search-form { display: flex; }
.tr-search-input { background: var(--tr-surface-2); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-full); padding: 10px 20px; color: var(--tr-text); font-size: 14px; outline: none; width: 280px; }
.tr-search-input:focus { border-color: var(--tr-primary); }
.tr-category-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tr-category-tabs::-webkit-scrollbar { display: none; }
.tr-cat-tab { flex-shrink: 0; padding: 7px 16px; border-radius: var(--tr-radius-full); font-size: 13px; font-weight: 600; background: var(--tr-surface-2); border: 1.5px solid var(--tr-border); color: var(--tr-text-muted); transition: all 0.15s; }
.tr-cat-tab:hover, .tr-cat-tab.active { background: var(--tr-primary); border-color: var(--tr-primary); color: #0A0A0F; }
.tr-talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

/* ─── Talent Card ────────────────────────────────────────────────────────── */
.tr-talent-card { background: var(--tr-surface); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-lg); overflow: hidden; padding: 24px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; transition: all 0.2s; }
.tr-talent-card:hover { border-color: var(--tr-secondary); transform: translateY(-3px); box-shadow: var(--tr-glow-violet); }
.tr-talent-card__rank { position: absolute; top: 12px; left: 12px; font-size: 18px; font-weight: 700; }
.tr-talent-card__avatar-wrap { position: relative; }
.tr-talent-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tr-secondary); }
.tr-talent-card__name { font-size: 15px; font-weight: 700; }
.tr-talent-card__cat { font-size: 12px; color: var(--tr-text-muted); }
.tr-talent-card__votes { font-size: 14px; font-weight: 700; color: var(--tr-primary); }
.tr-talent-card__cta { margin-top: 4px; }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.tr-dashboard-welcome { display: flex; align-items: center; gap: 16px; }
.tr-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 24px; }
.tr-stat-card { background: var(--tr-surface); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-lg); padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tr-stat-card__icon { font-size: 28px; }
.tr-stat-card__value { font-family: var(--tr-font-heading); font-size: 32px; font-weight: 700; color: var(--tr-primary); }
.tr-stat-card__label { font-size: 12px; color: var(--tr-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tr-dashboard-section { grid-column: 1 / -1; }
.tr-dashboard-section--full { grid-column: 1 / -1; }
.tr-dashboard-section__title { font-size: 20px; margin-bottom: 16px; }
.tr-challenge-card { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.05)); border: 1.5px solid var(--tr-secondary); border-radius: var(--tr-radius-xl); padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.tr-challenge-card__icon { font-size: 36px; }
.tr-challenge-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.tr-challenge-card__text { color: var(--tr-text-muted); line-height: 1.7; }
.tr-challenge-audio { width: 100%; margin-top: 10px; }
.tr-my-video { display: flex; gap: 16px; background: var(--tr-surface); border: 1.5px solid var(--tr-border); border-radius: var(--tr-radius-lg); padding: 16px; }
.tr-my-video__thumb { width: 80px; height: 80px; border-radius: var(--tr-radius-md); object-fit: cover; flex-shrink: 0; }
.tr-my-video__info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tr-my-video__meta { font-size: 13px; color: var(--tr-text-muted); }
.tr-my-video__actions { display: flex; gap: 8px; }
.tr-dashboard-cta { text-align: center; padding: 32px; background: var(--tr-surface); border: 2px dashed var(--tr-border); border-radius: var(--tr-radius-xl); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tr-profile-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tr-social-link { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--tr-radius-full); font-size: 13px; font-weight: 600; background: var(--tr-surface-2); border: 1.5px solid var(--tr-border); transition: all 0.15s; }
.tr-social-link:hover { border-color: var(--tr-primary); }

/* ─── Comments ───────────────────────────────────────────────────────────── */
.tr-comments-title { font-size: 22px; margin-bottom: 20px; }
.tr-comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.tr-comment-form__input { resize: vertical; }
.tr-comments-login { color: var(--tr-text-muted); font-size: 14px; margin-bottom: 20px; }
.tr-comments-login a { color: var(--tr-primary); }
.tr-comments-empty { color: var(--tr-text-muted); font-size: 14px; }
.tr-comment { padding: 16px 0; border-bottom: 1px solid var(--tr-border); }
.tr-comment[data-depth="1"] { padding-left: 32px; }
.tr-comment[data-depth="2"] { padding-left: 64px; }
.tr-comment__header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tr-comment__meta { display: flex; flex-direction: column; }
.tr-comment__author { font-size: 13px; font-weight: 700; }
.tr-comment__date { font-size: 11px; color: var(--tr-text-muted); }
.tr-comment__body { font-size: 14px; line-height: 1.6; color: var(--tr-text); }
.tr-comment__actions { margin-top: 8px; }
.tr-comment__reply-btn { font-size: 12px; color: var(--tr-text-muted); font-weight: 600; padding: 2px 0; }
.tr-comment__reply-btn:hover { color: var(--tr-primary); }
.tr-reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tr-reply-form__input { resize: none; }
.tr-reply-form__btns { display: flex; gap: 8px; }
.tr-comment__replies-toggle { font-size: 12px; color: var(--tr-primary); font-weight: 600; margin-top: 8px; }
.tr-comment__replies-list { margin-top: 8px; }

/* ─── Video Page ─────────────────────────────────────────────────────────── */
.tr-video-page { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; }
.tr-video-page__player { aspect-ratio: 16/9; background: #000; border-radius: var(--tr-radius-lg); overflow: hidden; }
.tr-video-player { width: 100%; height: 100%; object-fit: contain; }
.tr-video-page__header { margin-bottom: 16px; }
.tr-video-page__author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tr-video-page__stage-name { font-size: 16px; font-weight: 700; }
.tr-video-page__cat { font-size: 13px; color: var(--tr-text-muted); }
.tr-video-page__title { font-size: 24px; }
.tr-video-page__actions { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--tr-border); border-bottom: 1px solid var(--tr-border); }

/* ─── File Upload ────────────────────────────────────────────────────────── */
.tr-file-upload { position: relative; border: 2px dashed var(--tr-border); border-radius: var(--tr-radius-lg); overflow: hidden; transition: border-color 0.2s; }
.tr-file-upload:hover { border-color: var(--tr-primary); }
.tr-file-upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }
.tr-file-upload__ui { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; pointer-events: none; }
.tr-file-upload__icon { font-size: 36px; }
.tr-file-upload__text { font-size: 14px; font-weight: 600; }
.tr-file-upload__note { font-size: 12px; color: var(--tr-text-muted); }
.tr-file-upload__preview { max-height: 200px; width: 100%; object-fit: contain; border-radius: var(--tr-radius-lg); }
.tr-file-upload--video .tr-file-upload__ui { padding: 60px 20px; }

/* ─── Upload page ────────────────────────────────────────────────────────── */
.tr-upload-form { max-width: 640px; }
.tr-upload-preview video { width: 100%; border-radius: var(--tr-radius-md); }
.tr-upload-preview__meta { font-size: 12px; color: var(--tr-text-muted); padding: 8px 12px; }
.tr-upload-error { color: var(--tr-danger); font-size: 13px; padding: 8px 12px; }
.tr-progress-bar { height: 6px; background: var(--tr-surface-2); border-radius: var(--tr-radius-full); overflow: hidden; margin-bottom: 6px; }
.tr-progress-bar__fill { height: 100%; background: var(--tr-primary); border-radius: var(--tr-radius-full); transition: width 0.3s; width: 0%; }
.tr-progress-pct { font-size: 13px; font-weight: 700; color: var(--tr-primary); }
.tr-upload-status { padding: 12px; border-radius: var(--tr-radius-md); font-size: 14px; }
.tr-alert { padding: 14px 18px; border-radius: var(--tr-radius-md); font-size: 14px; margin-bottom: 20px; }
.tr-alert--info { background: rgba(124,58,237,0.1); border: 1.5px solid var(--tr-secondary); }
.tr-alert--warning { background: rgba(245,158,11,0.1); border: 1.5px solid var(--tr-warning); }
.tr-alert--success { background: rgba(34,197,94,0.1); border: 1.5px solid var(--tr-success); }
.tr-existing-video { display: flex; gap: 16px; margin: 16px 0; padding: 16px; background: var(--tr-surface); border-radius: var(--tr-radius-lg); }
.tr-existing-video__thumb { width: 80px; height: 80px; border-radius: var(--tr-radius-md); object-fit: cover; }

/* ─── Avatar dropdown ────────────────────────────────────────────────────── */
.tr-avatar-menu { position: relative; }
.tr-avatar-btn { background: none; border: none; padding: 0; cursor: pointer; }
.tr-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--tr-surface);
    border: 1.5px solid var(--tr-border);
    border-radius: var(--tr-radius-lg);
    min-width: 180px;
    box-shadow: var(--tr-shadow-lg);
    display: none;
    z-index: 999;
    overflow: hidden;
}
.tr-dropdown.open { display: block; }
.tr-dropdown__item { display: block; padding: 10px 16px; font-size: 13px; font-weight: 500; transition: background 0.15s; }
.tr-dropdown__item:hover { background: var(--tr-surface-2); }
.tr-dropdown__item--danger:hover { color: var(--tr-danger); }
.tr-dropdown__divider { border-top: 1px solid var(--tr-border); }

/* ─── Winner Banner ──────────────────────────────────────────────────────── */
.tr-winner-banner { background: linear-gradient(90deg, #7C3AED, #FFD700, #7C3AED); padding: 16px; text-align: center; position: relative; }
.tr-winner-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tr-winner-banner__crown { font-size: 28px; }
.tr-winner-banner__close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 18px; cursor: pointer; opacity: 0.7; }

/* ─── Skeletons ──────────────────────────────────────────────────────────── */
.tr-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tr-skeleton { background: linear-gradient(90deg, var(--tr-surface-2) 25%, var(--tr-surface) 50%, var(--tr-surface-2) 75%); background-size: 200% 100%; animation: tr-shimmer 1.5s infinite; border-radius: var(--tr-radius-md); }
.tr-skeleton--video { height: 280px; border-radius: var(--tr-radius-lg); }
.tr-skeleton--text { height: 16px; margin-top: 10px; }
.tr-skeleton--short { width: 60%; }

/* ─── Mobile nav ─────────────────────────────────────────────────────────── */
.tr-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tr-mobile-nav-h);
    background: var(--tr-surface);
    border-top: 1px solid var(--tr-border);
    z-index: 900;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
}
.tr-mobile-nav__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; color: var(--tr-text-muted); font-size: 10px; font-weight: 600; transition: color 0.15s; min-width: 48px; }
.tr-mobile-nav__item.active, .tr-mobile-nav__item:hover { color: var(--tr-primary); }
.tr-mobile-nav__item--upload .tr-mobile-nav__icon { background: var(--tr-primary); border-radius: 50%; padding: 6px; color: #0A0A0F; }
.tr-mobile-nav__icon { display: flex; }
.tr-mobile-nav__label { display: block; }
