/*
 * Team pages redesign (list, team page tabs, scrims, league, create, join).
 * Builds on organisation_redesign.css (.orv components: cards, buttons, hero, tabs, forms).
 * Everything here is scoped under .tmv. Classes used by scripts are kept and restyled:
 * team-roster-*, team-player-*, scrim-* (scrims.js rebuilds the calendar), league-*, nav-link (Bootstrap tabs).
 */
.tmv { --t-yellow: #FFDF00; --t-card: #171718; --t-inner: #111112; --t-line: rgba(255, 255, 255, .08); --t-text: #f4f4f6; --t-muted: #a8a8ad; --t-dim: #6e6e74; --t-green: #59f18b; --t-red: #ff4655; --t-blue: #58a6ff; --t-silver: #d4dae2; --t-bronze: #e0975a; --t-ease: cubic-bezier(.16, 1, .3, 1); }
.tmv .container, .tmv .container-fluid { max-width: none; padding: 0; }

/* ---------- Team list ---------- */
.tmv-list { max-width: 1240px; margin: 1.5rem auto 4rem; }
.tmv-hero__logos { position: absolute; right: 34px; top: 26px; z-index: -1; display: flex; opacity: .5; pointer-events: none; }
.tmv-hero__logos img { width: 54px; height: 54px; margin-left: -14px; border: 3px solid var(--t-inner); border-radius: 14px; background: var(--t-card); object-fit: cover; animation: tmv-bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.2s); }
@keyframes tmv-bob { 50% { transform: translateY(-6px); } }
.tmv-filters { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px; border: 1px solid var(--t-line); border-radius: 16px; background: rgba(23, 23, 24, .92); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.tmv-filters__label { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 12px 0 8px; border-right: 1px solid var(--t-line); color: var(--t-muted); font-size: .86rem; font-weight: 800; }
.tmv-filters__label i { color: var(--t-yellow); }
.tmv-track { display: flex; flex: 1; gap: 6px; min-width: 0; padding-right: 30px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.tmv-track::-webkit-scrollbar { display: none; }
.tmv-arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-inner); color: var(--t-muted); cursor: pointer; }
.tmv-arrow:hover { border-color: rgba(255, 223, 0, .5); color: var(--t-yellow); }
.tmv-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 14px; }
.tmv-results h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.35rem; font-weight: 900; }
.tmv-results h2::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--t-yellow); box-shadow: 0 0 14px rgba(255, 223, 0, .6); }
.tmv-results h2 img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; }
.tmv-results small { color: var(--t-dim); font-size: .86rem; font-weight: 700; }
.tmv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.tmv-card { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); transition: border-color .25s ease, transform .35s var(--t-ease), box-shadow .35s ease; }
.tmv-card::before { content: ""; position: absolute; inset: 0; z-index: 3; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 223, 0, .07), transparent 55%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.tmv-card:hover { border-color: rgba(255, 223, 0, .45); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .95); }
.tmv-card:hover::before { opacity: 1; }
.tmv-card.is-mine { border-color: rgba(89, 241, 139, .35); }
.tmv-card.is-member { border-color: rgba(88, 166, 255, .35); }
.tmv-card__link { position: absolute; inset: 0; z-index: 1; }
.tmv-card__banner { position: relative; height: 150px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 223, 0, .16), transparent 55%), var(--t-inner); }
.tmv-card__banner > img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .7s var(--t-ease); }
.tmv-card__banner.is-fallback > img { filter: blur(18px) saturate(1.4) brightness(.55); transform: scale(1.5); }
.tmv-card__banner.is-fallback::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px); }
.tmv-card:hover .tmv-card__banner > img { transform: scale(1.06); }
.tmv-card:hover .tmv-card__banner.is-fallback > img { transform: scale(1.6); }
.tmv-card__banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 40%, rgba(23, 23, 24, .96)); }
.tmv-card__flags { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; }
.tmv-flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 9px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 800; }
.tmv-flag img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.tmv-flag i { color: var(--t-yellow); }
.tmv-flag--tag { margin-left: auto; border: 1px solid rgba(255, 223, 0, .45); background: rgba(17, 17, 18, .75); color: var(--t-yellow); letter-spacing: .06em; }
.tmv-flag--lock i { color: var(--t-muted); }
.tmv-card__id { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 12px; margin-top: -44px; padding: 0 18px; pointer-events: none; }
.tmv-card__logo { flex: none; width: 80px; height: 80px; border: 3px solid var(--t-card); border-radius: 18px; background: var(--t-inner); object-fit: cover; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .9); font-size: 1.5rem; transition: box-shadow .3s ease, transform .35s var(--t-ease); }
.tmv-card:hover .tmv-card__logo { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 0 0 1px rgba(255, 223, 0, .5), 0 14px 30px -10px rgba(255, 223, 0, .35); }
.tmv-status { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; padding: 4px 9px; border-radius: 8px; font-size: .72rem; font-weight: 900; }
.tmv-status--green { background: rgba(89, 241, 139, .12); color: var(--t-green); }
.tmv-status--blue { background: rgba(88, 166, 255, .12); color: var(--t-blue); }
.tmv-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 12px 18px 16px; }
.tmv-card h3 { margin: 0; color: var(--t-text); font-size: 1.22rem; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.tmv-stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-inner); }
.tmv-stats span { display: grid; gap: 1px; padding: 8px 10px; text-align: center; }
.tmv-stats span + span { border-left: 1px solid var(--t-line); }
.tmv-stats b { color: var(--t-text); font-size: 1.05rem; font-weight: 900; }
.tmv-stats small { color: var(--t-dim); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmv-roster { display: flex; align-items: center; gap: 10px; }
.tmv-roster__label { color: var(--t-dim); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv-stack { position: relative; z-index: 2; display: flex; align-items: center; padding-left: 8px; }
.tmv-stack > span { position: relative; width: 34px; height: 34px; margin-left: -8px; border: 2px solid var(--t-card); border-radius: 10px; background: var(--t-inner); transition: transform .25s var(--t-ease); }
.tmv-stack > span img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.tmv-stack > span:hover { z-index: 2; transform: translateY(-4px); }
.tmv-stack > span.is-lead::after { content: "\F586"; position: absolute; right: -5px; top: -6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--t-yellow); color: #111; font-family: "bootstrap-icons"; font-size: .55rem; }
.tmv-stack .tmv-more { display: grid; place-items: center; color: var(--t-yellow); font-size: .72rem; font-weight: 900; }
.tmv-roster__empty { color: var(--t-dim); font-size: .84rem; font-style: italic; }
.tmv-card__foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--t-line); }
.tmv-card__foot > .orv-btn { flex: 1; }
.tmv-card__foot form { margin: 0; }
.tmv .btn-white { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-muted); font-size: .82rem; font-weight: 800; white-space: nowrap; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tmv .btn-white:hover { border-color: rgba(255, 107, 117, .45); background: rgba(255, 107, 117, .08); color: #ff7480; }
.tmv .btn-white[title="Unfollow"] { border-color: rgba(255, 107, 117, .45); background: rgba(255, 107, 117, .1); color: #ff7480; }
.tmv .orv-hero__actions .btn-white { min-height: 42px; padding: 0 16px; border-radius: 14px; font-size: .9rem; }
.tmv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.tmv-pager a, .tmv-pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-card); color: var(--t-muted) !important; font-weight: 800; }
.tmv-pager a:hover { border-color: rgba(255, 223, 0, .4); color: var(--t-text) !important; }
.tmv-pager .is-on { border-color: rgba(255, 223, 0, .5); background: rgba(255, 223, 0, .1); color: var(--t-yellow) !important; }
.tmv-pager .is-off { opacity: .4; }

/* ---------- Team page shell ---------- */
.tmv-page { max-width: 1240px; margin: 1.5rem auto 4rem; }
.tmv .orv-hero .tmv-status-chip--recruiting { border-color: rgba(89, 241, 139, .35) !important; background: rgba(89, 241, 139, .12) !important; color: var(--t-green) !important; }
.tmv .orv-hero .tmv-status-chip--recruiting i { color: inherit !important; }
.tmv .orv-hero .tmv-status-chip--inactive { color: var(--t-dim) !important; }
.tmv .orv-hero__meta img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.tmv .orv-hero__meta .is-org { border-color: rgba(255, 223, 0, .35); color: var(--t-text); }
.tmv .orv-hero__meta .is-org img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.tmv .orv-hero__actions .btn-ink, .tmv .orv-hero__actions .btn-outline-secondary { min-height: 42px; }
.tmv-messages { display: grid; gap: 8px; margin-top: 14px; }
.tmv .team-page-message { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 223, 0, .3); border-radius: 12px; background: rgba(255, 223, 0, .06); color: var(--t-text); font-weight: 700; }
.tmv .team-page-message--success { border-color: rgba(89, 241, 139, .35); background: rgba(89, 241, 139, .08); color: var(--t-green); }
.tmv .team-page-message--error { border-color: rgba(255, 70, 85, .35); background: rgba(255, 70, 85, .08); color: #ff7480; }

/* Roster (keeps the site's player card) */
.tmv .team-roster-section { margin: 18px 0 0 !important; }
.tmv .team-roster-panel { padding: 22px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); }
.tmv .team-roster-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.tmv .team-roster-title { margin: 0 !important; color: var(--t-text); font-size: 1.3rem; font-weight: 900; }
.tmv .team-roster-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.tmv .team-roster-count { display: inline-grid; place-items: center; min-height: 28px; padding: 0 10px; border: 0; border-radius: 9px; background: rgba(255, 223, 0, .1); color: var(--t-yellow); font-size: .8rem; font-weight: 900; }
.tmv .team-roster-invite, .tmv .team-roster-join { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 223, 0, .5); border-radius: 11px; background: rgba(255, 223, 0, .1); color: var(--t-yellow); font-size: .82rem; font-weight: 800; }
.tmv .team-roster-join { border-color: transparent; background: var(--t-yellow); color: #111; }
.tmv .team-roster-leave { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 70, 85, .45); border-radius: 11px; background: rgba(255, 70, 85, .08); color: #ff7480 !important; font-size: .82rem; font-weight: 800; }
.tmv .team-roster-locked { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-muted) !important; font-size: .82rem; font-weight: 800; }

/* Invite dialog */
.tmv .team-invite-dialog { width: min(520px, calc(100% - 32px)); padding: 24px; border: 1px solid rgba(255, 223, 0, .35); border-radius: 20px; background: var(--t-card); color: var(--t-text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.tmv .team-invite-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.tmv .team-invite-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tmv .team-invite-dialog__head span { color: var(--t-yellow); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.tmv .team-invite-dialog__head h2 { margin: 4px 0 0; font-size: 1.4rem; font-weight: 900; }
.tmv .team-invite-dialog__head button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-muted); }
.tmv .team-invite-dialog p { color: var(--t-muted); }
.tmv .team-invite-dialog__link { display: flex; gap: 8px; }
.tmv .team-invite-dialog__link input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-inner); color: var(--t-text); font-weight: 600; }
.tmv .team-invite-dialog__link button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--t-yellow); color: #111; font-weight: 800; }
.tmv .team-invite-dialog small { display: block; margin-top: 12px; color: var(--t-dim); }

/* Bootstrap tab links inside the shared tab bar */
.tmv .orv-tabs .nav-link { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; background: none; color: var(--t-muted); font-size: .9rem; font-weight: 800; white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.tmv .orv-tabs .nav-link:hover { background: rgba(255, 255, 255, .03); color: var(--t-text); }
.tmv .orv-tabs .nav-link.active { border-color: rgba(255, 223, 0, .5); background: rgba(255, 223, 0, .1); color: var(--t-yellow); }
.tmv .orv-tabs .nav-link.tmv-tab--end { margin-left: auto; }
.tmv .tab-content { min-width: 0; }

/* ---------- Overview ---------- */
.tmv-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tmv-fact { padding: 12px 14px; }
.tmv-fact small { display: flex; align-items: center; gap: 6px; color: var(--t-dim); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tmv-fact small i { color: var(--t-yellow); }
.tmv-fact strong { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 1rem; }
.tmv-fact strong img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.tmv-fact .is-unset { color: var(--t-dim); font-weight: 600; }
.tmv-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tmv-block { padding: 16px; }
.tmv-block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; font-weight: 900; }
.tmv-block h3 i { color: var(--t-yellow); }
.tmv-block p, .tmv-block .tmv-text { margin: 0; color: var(--t-muted); line-height: 1.6; }
.tmv-block--recruit { border-color: rgba(89, 241, 139, .35); background: linear-gradient(160deg, rgba(89, 241, 139, .07), var(--t-inner) 50%); }
.tmv-block--recruit h3 i { color: var(--t-green); }
.tmv-social { --sc: var(--t-yellow); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--sc) 10%, transparent); color: var(--sc) !important; font-size: .84rem; font-weight: 800; transition: transform .25s var(--t-ease); }
.tmv-social:hover { transform: translateY(-2px); }
.tmv-social--twitch { --sc: #9146ff; } .tmv-social--youtube { --sc: #ff0000; } .tmv-social--kick { --sc: #53fc18; } .tmv-social--x { --sc: #fff; } .tmv-social--discord { --sc: #5865f2; }
.tmv .team-trophy-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tmv .team-trophy { --m: var(--t-yellow); position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid color-mix(in srgb, var(--m) 55%, transparent); border-radius: 16px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--m) 25%, transparent), var(--t-inner) 70%); box-shadow: 0 0 20px -8px var(--m); transition: transform .25s var(--t-ease); }
.tmv .team-trophy:hover { transform: translateY(-3px) rotate(-3deg); }
.tmv .team-trophy img { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; }
.tmv .team-trophy i { color: var(--m); font-size: 1.4rem; }
.tmv .team-trophy.silver, .tmv .team-trophy--silver, .tmv .team-trophy.second { --m: var(--t-silver); }
.tmv .team-trophy.bronze, .tmv .team-trophy--bronze, .tmv .team-trophy.third { --m: var(--t-bronze); }
.tmv-qstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tmv-qstats span { display: grid; gap: 2px; padding: 12px 8px; text-align: center; }
.tmv-qstats b { font-size: 1.15rem; font-weight: 900; }
.tmv-qstats small { color: var(--t-dim); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Valorant scrim availability (overview) */
.tmv .scrim-overview-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tmv .scrim-overview-window { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid rgba(89, 241, 139, .35); border-radius: 12px; background: rgba(89, 241, 139, .08); color: var(--t-green); font-size: .86rem; font-weight: 700; }
.tmv .scrim-overview-window strong { margin-right: 6px; color: var(--t-text); }
.tmv .scrim-overview-window small { display: block; color: var(--t-dim); font-size: .72rem; }
.tmv .scrim-overview-window form { margin: 0; }
.tmv .scrim-overview-window button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--t-line); border-radius: 9px; background: var(--t-inner); color: var(--t-dim); }
.tmv .scrim-overview-window button:hover { border-color: rgba(255, 70, 85, .45); color: #ff7480; }
.tmv .scrim-overview-editor { margin-top: 12px; border: 1px dashed rgba(255, 223, 0, .35); border-radius: 12px; }
.tmv .scrim-overview-editor summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--t-yellow); font-weight: 800; list-style: none; cursor: pointer; }
.tmv .scrim-overview-editor summary::-webkit-details-marker { display: none; }
.tmv .scrim-overview-editor form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; padding: 0 14px 14px; }
.tmv .scrim-overview-editor label { display: grid; gap: 6px; color: var(--t-text); font-size: .84rem; font-weight: 800; }
.tmv .scrim-overview-editor select, .tmv .scrim-overview-editor input:not([type="hidden"]) { min-height: 42px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-text); color-scheme: dark; }
.tmv .scrim-detected-timezone { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--t-muted); font-size: .82rem; }
.tmv .scrim-detected-timezone strong { color: var(--t-text); }
.tmv .scrim-detected-timezone small { color: var(--t-dim); }
.tmv .scrim-recurrence-note { grid-column: 1 / -1; margin: 0; color: var(--t-dim); font-size: .8rem; }

/* Clash Royale / Brawl Stars hubs */
.tmv .cr-team-hub { display: grid; gap: 14px; margin-top: 18px !important; }
.tmv .cr-team-hub .float-card { border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); }
.tmv .cr-team-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--t-dim); font-size: .82rem; font-weight: 700; }
.tmv .cr-team-toolbar > div { display: flex; gap: 6px; }
.tmv .cr-team-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; border-color: rgba(88, 166, 255, .35) !important; background: radial-gradient(70% 140% at 0% 0%, rgba(88, 166, 255, .14), transparent 60%), var(--t-card) !important; }
.tmv .cr-team-hero__badge { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; background: var(--t-inner); }
.tmv .cr-team-hero__badge img { width: 64px; height: 64px; object-fit: contain; }
.tmv .cr-team-hero h3 { margin: 4px 0 8px; font-size: 1.6rem; font-weight: 900; }
.tmv .cr-team-kicker { color: var(--t-blue); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv .cr-team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tmv .cr-team-chips span { padding: 5px 10px; border: 1px solid var(--t-line); border-radius: 9px; background: var(--t-inner); font-size: .78rem; font-weight: 700; }
.tmv .cr-team-score { display: grid; justify-items: center; gap: 2px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 223, 0, .08); }
.tmv .cr-team-score i { color: var(--t-yellow); font-size: 1.3rem; }
.tmv .cr-team-score strong { font-size: 1.5rem; font-weight: 900; }
.tmv .cr-team-score span { color: var(--t-dim); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.tmv .cr-team-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tmv .cr-team-metrics article { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-inner); }
.tmv .cr-team-metrics i { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(88, 166, 255, .12); color: var(--t-blue); }
.tmv .cr-team-metrics span { color: var(--t-dim); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.tmv .cr-team-metrics strong { font-size: 1.15rem; font-weight: 900; }
.tmv .cr-team-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.tmv .cr-team-side { display: grid; gap: 14px; }
.tmv .cr-team-panel { padding: 18px; }
.tmv .cr-team-panel header { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tmv .cr-team-panel h5 { margin: 2px 0 0; font-size: 1.15rem; font-weight: 900; }
.tmv .cr-team-roster { display: grid; gap: 8px; }
.tmv .cr-team-roster article { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-inner); }
.tmv .cr-team-rank { color: var(--t-dim); font-weight: 900; }
.tmv .cr-team-member-visual { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 11px; background: var(--t-card); color: var(--t-muted); }
.tmv .cr-team-member-visual.is-leadership { color: var(--t-yellow); }
.tmv .cr-team-member-visual img { width: 100%; height: 100%; object-fit: cover; }
.tmv .cr-team-member strong { display: block; }
.tmv .cr-team-member small { color: var(--t-muted); font-size: .78rem; }
.tmv .cr-team-member a { color: var(--t-yellow); font-size: .78rem; font-weight: 800; }
.tmv .cr-team-member-stat { display: grid; justify-items: end; font-weight: 900; }
.tmv .cr-team-member-stat i { color: var(--t-yellow); }
.tmv .cr-team-member-stat small { color: var(--t-dim); font-weight: 700; }
.tmv .cr-team-connect { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 22px; }
.tmv .cr-team-connect__mark img { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.tmv .cr-team-connect__form > div { display: flex; gap: 8px; margin: 6px 0; }
.tmv .cr-team-connect__form input { flex: 1; min-height: 42px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-text); }

/* ---------- Posts ---------- */
.tmv .team-posts-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 !important; }
.tmv .team-posts-grid > [class*="col-"] { width: auto !important; max-width: none !important; padding: 0 !important; }
.tmv .team-post-card { display: flex !important; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--t-line) !important; border-radius: 16px !important; background: var(--t-inner) !important; transition: border-color .2s ease, transform .3s var(--t-ease); }
.tmv .team-post-card:hover { border-color: rgba(255, 223, 0, .45) !important; transform: translateY(-3px); }
.tmv .team-post-media { overflow: hidden; border-radius: 0 !important; }
.tmv .team-post-media img { transition: transform .6s var(--t-ease); }
.tmv .team-post-card:hover .team-post-media img { transform: scale(1.06); }
.tmv .team-post-title { color: var(--t-text); font-size: 1.05rem; font-weight: 900; }
.tmv .team-post-card .pinned-badge { padding: 3px 8px; border-radius: 7px; background: rgba(255, 223, 0, .12); color: var(--t-yellow); font-size: .66rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }

/* ---------- Matches ---------- */
.tmv .team-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tmv .team-history-column { padding: 18px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); }
.tmv .team-history-column__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tmv .team-history-column__head span { color: var(--t-yellow); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv .team-history-column__head h2 { margin: 2px 0 0; font-size: 1.15rem; font-weight: 900; }
.tmv .team-history-column__head p { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin: 0; padding: 0 9px; border-radius: 9px; background: rgba(255, 223, 0, .1); color: var(--t-yellow); font-size: .8rem; font-weight: 900; }
.tmv .team-history-list { display: grid; gap: 8px; }
.tmv .team-history-group { overflow: hidden; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-inner); }
.tmv .team-history-group__summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; cursor: pointer; }
.tmv .team-history-group__summary::-webkit-details-marker { display: none; }
.tmv .team-history-group__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tmv .team-history-group__identity > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 223, 0, .1); color: var(--t-yellow); }
.tmv .team-history-group__identity small { display: block; color: var(--t-dim); font-size: .72rem; font-weight: 700; }
.tmv .team-history-group__identity strong { font-size: .92rem; }
.tmv .team-history-group__record { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tmv .team-history-group__record span { padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--t-muted); font-size: .72rem; font-weight: 900; }
.tmv .team-history-group__record span:first-child { background: rgba(89, 241, 139, .12); color: var(--t-green); }
.tmv .team-history-group__record span:nth-child(2):not(:last-child) { background: rgba(255, 70, 85, .12); color: #ff7480; }
.tmv .team-history-group[open] .team-history-group__record .bi-chevron-down { transform: rotate(180deg); }
.tmv .team-history-group__body { display: grid; gap: 6px; padding: 0 10px 10px; }
.tmv .team-history-card { --rc: var(--t-line); position: relative; margin: 0 !important; padding: 10px 12px 10px 14px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-card); }
.tmv .team-history-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--rc); }
.tmv .team-history-card--win { --rc: var(--t-green); }
.tmv .team-history-card--loss { --rc: var(--t-red); }
.tmv .team-history-card--scheduled { --rc: var(--t-blue); }
.tmv .team-history-card__meta { display: flex; justify-content: space-between; color: var(--t-dim); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.tmv .team-history-card--win .team-history-card__meta strong { color: var(--t-green); }
.tmv .team-history-card--loss .team-history-card__meta strong { color: #ff7480; }
.tmv .team-history-card--scheduled .team-history-card__meta strong { color: var(--t-blue); }
.tmv .team-history-card__matchup { display: grid; gap: 4px; margin-top: 6px; }
.tmv .team-history-team { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr); align-items: center; gap: 8px; font-size: .86rem; font-weight: 800; }
.tmv .team-history-team b { text-align: center; }
.tmv .team-history-team img, .tmv .team-history-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--t-inner); color: var(--t-yellow); font-size: .55rem; font-weight: 900; object-fit: cover; }
.tmv .team-history-team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmv .team-history-versus { display: none; }
.tmv .team-history-card__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--t-line); color: var(--t-dim); font-size: .74rem; }
.tmv .team-history-card__foot a { color: var(--t-yellow); font-weight: 800; }
.tmv .team-history-empty { display: grid; justify-items: center; gap: 6px; padding: 24px 12px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 14px; color: var(--t-dim); text-align: center; }
.tmv .team-history-empty i { color: var(--t-yellow); font-size: 1.3rem; }

/* ---------- Media (coming soon) ---------- */
.tmv-soon { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; text-align: center; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 223, 0, .1), transparent 70%), var(--t-card) !important; }
.tmv-soon__icons { display: flex; gap: 10px; }
.tmv-soon__icons i { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 223, 0, .3); border-radius: 16px; background: rgba(255, 223, 0, .06); color: var(--t-yellow); font-size: 1.4rem; animation: tmv-bob 4s ease-in-out infinite; }
.tmv-soon__icons i:nth-child(2) { animation-delay: -1.3s; }
.tmv-soon__icons i:nth-child(3) { animation-delay: -2.6s; }
.tmv-soon h3 { margin: 4px 0 0; font-size: 1.5rem; font-weight: 900; }
.tmv-soon p { max-width: 460px; margin: 0; color: var(--t-muted); }

/* ---------- Scrims ---------- */
.tmv .scrim-hub { display: grid; gap: 18px; }
.tmv .scrim-panel { padding: 22px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); }
.tmv .scrim-panel-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tmv .scrim-kicker { color: var(--t-yellow); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv .scrim-panel-heading h3 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 900; }
.tmv .scrim-panel-heading p { margin: 4px 0 0; color: var(--t-muted); }
.tmv .scrim-messages { display: grid; gap: 8px; }
.tmv .scrim-message { padding: 12px 14px; border: 1px solid rgba(255, 223, 0, .3); border-radius: 12px; background: rgba(255, 223, 0, .06); font-weight: 700; }
.tmv .scrim-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-muted); font-size: .84rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: all .2s ease; }
.tmv .scrim-button:hover { border-color: rgba(255, 255, 255, .22); color: var(--t-text); }
.tmv .scrim-button--primary { border-color: transparent; background: var(--t-yellow); color: #111 !important; }
.tmv .scrim-button--primary:hover { box-shadow: 0 10px 30px -8px rgba(255, 223, 0, .6); color: #111; }
.tmv .scrim-button--accept { border-color: rgba(89, 241, 139, .45); background: rgba(89, 241, 139, .1); color: var(--t-green); }
.tmv .scrim-button--reject { border-color: rgba(255, 70, 85, .45); background: rgba(255, 70, 85, .08); color: #ff7480; }
.tmv .scrim-button--icon { width: 38px; padding: 0; }
.tmv .scrim-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 12px; }
.tmv .scrim-form label { display: grid; gap: 7px; color: var(--t-text); font-size: .86rem; font-weight: 800; }
.tmv .scrim-hub input:not([type="hidden"]), .tmv .scrim-hub select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-inner); color: var(--t-text); font-weight: 600; color-scheme: dark; }
.tmv .scrim-legend { display: flex; gap: 12px; color: var(--t-muted); font-size: .8rem; font-weight: 700; }
.tmv .scrim-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.tmv .scrim-dot--free { background: var(--t-green); }
.tmv .scrim-dot--booked { background: var(--t-red); }
.tmv .scrim-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tmv .scrim-calendar-day { min-height: 180px; padding: 10px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-inner); }
.tmv .scrim-calendar-day h4 { margin: 0; font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tmv .scrim-calendar-day > span { display: block; margin-bottom: 8px; color: var(--t-dim); font-size: .74rem; }
.tmv .scrim-slots { display: grid; gap: 6px; }
.tmv .scrim-slot { display: grid; gap: 2px; width: 100%; padding: 7px 8px; border: 1px solid rgba(89, 241, 139, .35); border-radius: 9px; background: rgba(89, 241, 139, .08); color: var(--t-green); font-size: .76rem; font-weight: 800; text-align: left; cursor: pointer; transition: background .2s ease; }
.tmv button.scrim-slot:hover:not(:disabled) { background: rgba(89, 241, 139, .16); }
.tmv button.scrim-slot:disabled { cursor: default; opacity: .85; }
.tmv .scrim-slot small { color: var(--t-dim); font-size: .66rem; font-weight: 700; }
.tmv .scrim-slot--booked { border-color: rgba(255, 70, 85, .35); background: rgba(255, 70, 85, .08); color: #ff7480; cursor: default; }
.tmv .scrim-slot--linked { border-color: rgba(255, 223, 0, .45); background: rgba(255, 223, 0, .08); color: var(--t-yellow); }
.tmv .scrim-booked-time { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.tmv .scrim-booked-vs { justify-self: start; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--t-muted); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.tmv a.scrim-booked-vs { color: var(--t-yellow); }
.tmv .scrim-booked-opponent { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--t-text); }
.tmv .scrim-booked-logo { display: grid; place-items: center; flex: none; width: 18px; height: 18px; overflow: hidden; border-radius: 5px; background: var(--t-card); color: var(--t-yellow); font-size: .6rem; }
.tmv .scrim-booked-logo img { width: 100%; height: 100%; object-fit: cover; }
.tmv .scrim-booked-opponent small { overflow: hidden; color: var(--t-text); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.tmv .scrim-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 16px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 14px; color: var(--t-muted); text-align: center; grid-column: 1 / -1; }
.tmv .scrim-empty i { color: var(--t-yellow); font-size: 1.4rem; }
.tmv .scrim-empty h4 { margin: 0; color: var(--t-text); font-size: 1.05rem; font-weight: 900; }
.tmv .scrim-empty p { margin: 0; }
.tmv .scrim-pubg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; border-color: rgba(255, 223, 0, .35); background: radial-gradient(60% 140% at 0% 0%, rgba(255, 223, 0, .12), transparent 60%), var(--t-card); }
.tmv .scrim-pubg > img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }

/* Proposal tickets */
.tmv-tix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tmv-tix { --tc: var(--t-yellow); position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 7%, transparent), var(--t-inner) 45%); transition: transform .25s var(--t-ease), box-shadow .3s ease; }
.tmv-tix:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px var(--tc); }
.tmv-tix--counter { --tc: var(--t-blue); }
.tmv-tix--waiting { --tc: var(--t-muted); }
.tmv-tix__date { position: relative; display: grid; place-content: center; justify-items: center; padding: 14px 6px; border-right: 2px dashed color-mix(in srgb, var(--tc) 30%, transparent); border-radius: 15px 0 0 15px; background: color-mix(in srgb, var(--tc) 8%, transparent); text-align: center; }
.tmv-tix__date::before, .tmv-tix__date::after { content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--t-card); }
.tmv-tix__date::before { top: -9px; }
.tmv-tix__date::after { bottom: -9px; }
.tmv-tix__date small { color: var(--t-muted); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv-tix__date b { color: var(--tc); font-size: 2rem; font-weight: 900; line-height: 1; }
.tmv-tix__date span { color: var(--t-text); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.tmv-tix__main { display: grid; gap: 12px; min-width: 0; padding: 14px 16px; }
.tmv-tix__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tmv-tix__status { padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tmv-tix__time { display: inline-flex; align-items: center; gap: 6px; color: var(--t-muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.tmv-tix__opp { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--t-text) !important; }
.tmv-tix__opp img, .tmv-tix__opp .orv-fb { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.tmv-tix__opp small { display: block; color: var(--t-dim); font-size: .72rem; font-weight: 800; }
.tmv-tix__opp strong { font-size: 1.08rem; font-weight: 900; overflow-wrap: anywhere; }
.tmv-tix__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tmv-tix__acts form { margin: 0; }
.tmv-tix__acts > form:first-child { flex: 1; }
.tmv-tix__acts > form:first-child .scrim-button { width: 100%; }
.tmv-tix__waiting { margin: 0; color: var(--t-dim); font-size: .84rem; font-weight: 700; }
.tmv-fold { flex-basis: 100%; }
.tmv-fold > summary { list-style: none; }
.tmv-fold > summary::-webkit-details-marker { display: none; }
.tmv-fold:not([open]) { flex-basis: auto; }
.tmv-fold[open] > summary { border-color: rgba(255, 223, 0, .5); color: var(--t-yellow); }
.tmv-fold__form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-top: 8px; padding: 10px; border: 1px dashed rgba(255, 223, 0, .3); border-radius: 12px; }

/* Scheduled match cards */
.tmv-m2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tmv-m2 { display: grid; gap: 14px; overflow: hidden; padding: 0 0 14px; border: 1px solid var(--t-line); border-radius: 16px; background: radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, .04), transparent 60%), var(--t-inner); transition: border-color .2s ease, transform .25s var(--t-ease); }
.tmv-m2:hover { border-color: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.tmv-m2.is-ready { border-color: rgba(255, 223, 0, .45); background: radial-gradient(90% 120% at 50% 0%, rgba(255, 223, 0, .12), transparent 60%), var(--t-inner); box-shadow: 0 0 34px -22px rgba(255, 223, 0, .8); }
.tmv-m2 > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--t-line); color: var(--t-muted); font-size: .8rem; font-weight: 800; }
.tmv-m2 .scrim-scheduled-time { display: inline-flex; align-items: center; gap: 6px; }
.tmv-m2 .scrim-scheduled-time strong { color: var(--t-text); }
.tmv-m2 .scrim-scheduled-time small { color: var(--t-dim); }
.tmv-m2__status { padding: 3px 8px; border-radius: 7px; background: rgba(88, 166, 255, .12); color: var(--t-blue); font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tmv-m2.is-ready .tmv-m2__status { background: rgba(255, 223, 0, .12); color: var(--t-yellow); }
.tmv-m2__vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 14px; }
.tmv .tmv-m2 .scrim-scheduled-team { display: grid; justify-items: center; gap: 8px; color: var(--t-text); text-align: center; }
.tmv .tmv-m2 .scrim-scheduled-team strong { font-size: .95rem; font-weight: 900; overflow-wrap: anywhere; }
.tmv .tmv-m2 .scrim-scheduled-logo { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 16px; background: var(--t-card); color: var(--t-yellow); font-size: 1.4rem; box-shadow: 0 10px 24px -14px #000; }
.tmv .tmv-m2 .scrim-scheduled-logo img { width: 100%; height: 100%; object-fit: cover; }
.tmv-m2__mid { color: transparent; font-size: 1.8rem; font-weight: 900; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.tmv-m2.is-ready .tmv-m2__mid { -webkit-text-stroke-color: rgba(255, 223, 0, .7); }
.tmv-m2 > footer { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.tmv-m2 > footer > .scrim-button--primary { flex: 1; }
.tmv-m2 > footer form { margin: 0; }
.tmv-m2 > footer .tmv-fold:not([open]) { flex: 1; }
.tmv-m2 > footer .tmv-fold:not([open]) > summary { width: 100%; }

/* ---------- League (restyle only) ---------- */
.tmv .league-dashboard { display: grid; gap: 18px; }
.tmv .league-dashboard__hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; border: 1px solid var(--t-line); border-radius: 18px; background: radial-gradient(60% 140% at 0% 0%, rgba(255, 223, 0, .12), transparent 60%), var(--t-card); }
.tmv .league-kicker { color: var(--t-yellow); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tmv .league-dashboard__hero h2 { margin: 4px 0 0; font-size: 1.5rem; font-weight: 900; }
.tmv .league-dashboard__hero p { margin: 4px 0 0; color: var(--t-muted); }
.tmv .league-dashboard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--t-muted); font-weight: 700; }
.tmv .league-season-link, .tmv .league-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 223, 0, .5); border-radius: 11px; background: rgba(255, 223, 0, .1); color: var(--t-yellow) !important; font-size: .84rem; font-weight: 800; }
.tmv .league-btn--primary { border-color: transparent; background: var(--t-yellow); color: #111 !important; }
.tmv .league-btn--ghost { border-color: var(--t-line); background: var(--t-inner); color: var(--t-muted) !important; }
.tmv .league-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.tmv .league-panel { padding: 22px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-card); }
.tmv .league-panel__head { margin-bottom: 14px; }
.tmv .league-panel__head h3 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 900; }
.tmv .league-table-wrap { overflow-x: auto; }
.tmv .league-table { width: 100%; border-collapse: collapse; color: var(--t-text); }
.tmv .league-table th, .tmv .league-table td { padding: 11px 10px; border-bottom: 1px solid var(--t-line); font-size: .88rem; text-align: center; }
.tmv .league-table th { color: var(--t-dim); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tmv .league-table td:nth-child(2), .tmv .league-table th:nth-child(2) { text-align: left; }
.tmv .league-table tr.is-current-team td { background: rgba(255, 223, 0, .06); }
.tmv .league-table tr.is-current-team td:first-child { box-shadow: inset 3px 0 0 var(--t-yellow); }
.tmv .league-table td:last-child strong { color: var(--t-yellow); }
.tmv .league-team-cell { display: flex; align-items: center; gap: 10px; color: var(--t-text); font-weight: 800; }
.tmv .league-team-cell img, .tmv .league-team-fallback { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--t-inner); color: var(--t-yellow); object-fit: cover; }
.tmv .league-proposal-list { display: grid; gap: 8px; }
.tmv .league-proposal { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-inner); }
.tmv .league-proposal time, .tmv .league-proposal small, .tmv .league-proposal p { color: var(--t-muted); font-size: .84rem; }
.tmv .league-actions { display: flex; gap: 6px; }
.tmv .league-status { justify-self: start; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--t-muted); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.tmv .league-status--pending, .tmv .league-status--proposed { background: rgba(255, 223, 0, .12); color: var(--t-yellow); }
.tmv .league-status--scheduled { background: rgba(88, 166, 255, .12); color: var(--t-blue); }
.tmv .league-status--played { background: rgba(89, 241, 139, .12); color: var(--t-green); }
.tmv .league-fixture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tmv .league-fixture { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--t-line) !important; border-radius: 16px !important; background: var(--t-inner) !important; }
.tmv .league-fixture__top { display: flex; align-items: center; justify-content: space-between; color: var(--t-muted); font-size: .8rem; font-weight: 800; }
.tmv .league-fixture__matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.tmv .league-fixture__team { display: grid; justify-items: center; gap: 6px; color: var(--t-text); font-size: .86rem; font-weight: 800; text-align: center; }
.tmv .league-fixture__team img, .tmv .league-fixture__team .league-team-fallback { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.tmv .league-fixture__vs { color: transparent; font-size: 1.3rem; font-weight: 900; text-transform: uppercase; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.tmv .league-fixture__result, .tmv .league-fixture__time { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--t-muted); font-size: .84rem; font-weight: 700; }
.tmv .league-fixture__result strong { color: var(--t-text); font-size: 1.1rem; }
.tmv .league-fixture__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tmv .league-schedule-details summary { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 11px; background: var(--t-card); color: var(--t-muted); font-size: .84rem; font-weight: 800; list-style: none; cursor: pointer; }
.tmv .league-schedule-details summary::-webkit-details-marker { display: none; }
.tmv .league-propose-form { display: grid; gap: 8px; margin-top: 8px; }
.tmv .league-propose-form input, .tmv .league-propose-form select, .tmv .league-propose-form textarea { min-height: 38px; padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-card); color: var(--t-text); color-scheme: dark; }
.tmv .league-propose-form__datetime { display: flex; align-items: center; gap: 6px; }
.tmv .league-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 14px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 14px; color: var(--t-muted); text-align: center; }
.tmv .league-empty i { color: var(--t-yellow); font-size: 1.3rem; }

/* ---------- Followers (htmx partial) ---------- */
.tmv-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tmv .tmv-fpager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.tmv .tmv-fpager .page-link { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-inner); color: var(--t-muted); font-weight: 800; cursor: pointer; }
.tmv .tmv-fpager .active .page-link { border-color: rgba(255, 223, 0, .5); background: rgba(255, 223, 0, .1); color: var(--t-yellow); }
.tmv .tmv-fpager .disabled .page-link { opacity: .4; }

/* ---------- Settings ---------- */
.tmv .ts-preview { overflow: hidden; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-inner); }
.tmv .ts-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmv .tmv-pv-logo { width: 110px; height: 110px; }
.tmv .tmv-pv-banner { width: 100%; height: 110px; }
.tmv .gh-file { position: relative; }
.tmv .gh-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tmv .gh-file .gh-file-ui { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px dashed rgba(255, 223, 0, .4); border-radius: 12px; background: rgba(255, 223, 0, .03); color: var(--t-yellow); font-size: .88rem; font-weight: 800; cursor: pointer; }
.tmv-rail { position: relative; min-width: 0; }
.tmv-rail__track { display: flex; gap: 10px; padding: 2px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tmv-rail__track::-webkit-scrollbar { display: none; }
.tmv-rail__arrow { position: absolute; top: 40%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 223, 0, .45); border-radius: 50%; background: rgba(17, 17, 18, .95); color: var(--t-yellow); cursor: pointer; }
.tmv-rail__arrow--l { left: -12px; }
.tmv-rail__arrow--r { right: -12px; }
.tmv-rail__arrow[hidden] { display: none; }
.tmv-vcard { flex: none; display: grid; gap: 10px; width: 168px; padding: 10px; border: 1px solid var(--t-line); border-radius: 16px; background: var(--t-inner); scroll-snap-align: start; transition: border-color .2s ease; }
.tmv-vcard:hover { border-color: rgba(255, 223, 0, .35); }
.tmv-vcard.is-owner { border-color: rgba(255, 223, 0, .45); background: linear-gradient(180deg, rgba(255, 223, 0, .1), var(--t-inner) 45%); }
.tmv-vcard__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #fff; }
.tmv-vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.tmv-vcard__img .orv-badge { position: absolute; left: 6px; top: 6px; background: var(--t-yellow); color: #111; }
.tmv-vcard strong { overflow: hidden; color: var(--t-text); font-size: .92rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.tmv-vcard select { width: 100%; min-height: 36px; padding: 0 10px; font-size: .86rem !important; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-card); color: var(--t-text); font-weight: 700; color-scheme: dark; }
.tmv-vcard__acts { display: flex; gap: 6px; }
.tmv-vcard__acts .orv-btn--soft { flex: 1; }
.tmv-vcard__acts button:disabled { opacity: .35; cursor: default; }

/* ---------- Create / join ---------- */
.tmv-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; max-width: 1080px; margin: 0 auto; align-items: start; }
.tmv-pv { position: sticky; top: 8px; overflow: hidden; padding: 0 !important; }
.tmv-pv__banner { position: relative; height: 130px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 223, 0, .18), transparent 55%), var(--t-inner) center / cover; }
.tmv-pv__banner .orv-otag { position: absolute; right: 12px; top: 12px; }
.tmv-pv__body { padding: 0 16px 16px; }
.tmv-pv__logo { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; margin-top: -38px; border: 3px solid var(--t-card); border-radius: 18px; object-fit: cover; font-size: 1.4rem; }
.tmv-pv h3 { margin: 10px 0; font-size: 1.2rem; font-weight: 900; overflow-wrap: anywhere; }
.tmv-join { max-width: 440px; margin: 40px auto; overflow: hidden; padding: 0 !important; text-align: center; }
.tmv-join__banner { height: 120px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 223, 0, .18), transparent 55%), var(--t-inner) center / cover; }
.tmv-join__logo { display: grid; place-items: center; width: 92px; height: 92px; margin: -46px auto 0; border: 4px solid var(--t-card); border-radius: 22px; object-fit: cover; font-size: 1.6rem; }
.tmv-join__body { display: grid; gap: 14px; padding: 16px 24px 24px; }
.tmv-join__lock { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--t-muted); font-size: .84rem; font-weight: 700; }
.tmv-join__lock i { color: var(--t-yellow); }
.tmv-join h1 { margin: 0; font-size: 1.5rem; font-weight: 900; }
.tmv-join form { text-align: left; }
.tmv .team-error { color: #ff7480; font-size: .8rem; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tmv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmv-hero__logos { display: none; }
  .tmv .team-history-grid, .tmv .league-layout, .tmv .cr-team-columns, .tmv-split { grid-template-columns: 1fr; }
  .tmv .team-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmv .scrim-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tmv-pv { position: static; }
}
@media (max-width: 760px) {
  .tmv-grid, .tmv-twocol, .tmv-tix-grid, .tmv-m2-grid, .tmv .team-posts-grid, .tmv .scrim-form, .tmv .scrim-overview-editor form, .tmv-fold__form, .tmv .scrim-pubg, .tmv .cr-team-hero, .tmv .cr-team-connect { grid-template-columns: 1fr; }
  .tmv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmv .scrim-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmv-filters { position: static; flex-wrap: wrap; }
  .tmv-filters__label { border-right: 0; }
  .tmv-track { flex-basis: 100%; order: 3; }
  .tmv-arrow { display: none; }
  .tmv .team-roster-panel { padding: 16px; }
}

/* ---------- Roster player cards: prototype look (team page only) ---------- */
.tmv .team-roster-scroll { gap: 14px; padding: 10px 34px 12px; }
.tmv .team-roster-item { flex: 0 0 200px; width: 200px; max-width: 200px; }
.tmv .team-player-card { min-height: 0; overflow: visible; padding: 10px; border: 1px solid rgba(255, 223, 0, .25); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 223, 0, .12), var(--t-inner) 40%); box-shadow: none; transition: transform .25s var(--t-ease), border-color .2s ease, background .25s ease, box-shadow .25s ease; }
.tmv .team-player-card:hover { transform: translateY(-4px); border-color: rgba(255, 223, 0, .65); background: linear-gradient(180deg, rgba(255, 223, 0, .26), rgba(255, 223, 0, .06) 55%, var(--t-inner)); box-shadow: 0 18px 36px -20px rgba(255, 223, 0, .55); }
.tmv .team-roster-item.is-lead .team-player-card { border-color: rgba(255, 223, 0, .55); }
.tmv .team-player-avatar-frame { padding: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.tmv .team-player-avatar { border: 0; border-radius: 14px; background: #fff; transition: transform .5s var(--t-ease); }
.tmv .team-player-card:hover .team-player-avatar { transform: scale(1.04); }
.tmv .team-player-info { padding: 12px 0 0; }
.tmv .team-player-role-row { min-height: 0; margin-bottom: 6px; }
.tmv .team-player-role { gap: 5px; padding: 3px 8px; border: 0; border-radius: 7px; background: rgba(255, 223, 0, .12); color: var(--t-yellow); font-size: .66rem; letter-spacing: .06em; }
.tmv .team-player-name { font-size: .95rem; }
.tmv .team-player-divider { height: 0; margin: 10px 0 0; border-top: 1px solid var(--t-line); background: none; }
.tmv .roster-socials { gap: 5px; min-height: 0; padding-top: 10px; }
.tmv .roster-social { width: 28px; height: 28px; border-radius: 8px; }
.tmv .team-player-no-socials { color: var(--t-dim); font-size: .74rem; font-weight: 700; }

/* Follow button: prototype style (heart) */
.tmv .orv-hero__actions .btn-white { gap: 8px; border-color: var(--t-line); background: var(--t-inner); color: var(--t-muted); }
.tmv .orv-hero__actions .btn-white:hover { border-color: rgba(255, 107, 117, .45); background: rgba(255, 107, 117, .08); color: #ff7480; }
.tmv .btn-white .bi-heart-fill { color: #ff7480; }

/* Settings → Overview: game pills + status segments */
.tmv-gamepick { display: flex; flex-wrap: wrap; gap: 8px; }
.tmv-gamepick label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 9px; background: var(--t-inner); color: var(--t-muted); font-size: .86rem; font-weight: 800; cursor: pointer; transition: all .2s ease; }
.tmv-gamepick label:hover { border-color: rgba(255, 255, 255, .2); color: var(--t-text); }
.tmv-gamepick input { position: absolute; opacity: 0; pointer-events: none; }
.tmv-gamepick img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.tmv-gamepick label:has(input:checked) { border-color: rgba(255, 223, 0, .5); background: rgba(255, 223, 0, .1); color: var(--t-yellow); }
.tmv-gamepick label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 223, 0, .2); }
.tmv-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-inner); }
.tmv-seg label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin: 0; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: var(--t-muted); font-size: .84rem; font-weight: 800; cursor: pointer; }
.tmv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tmv-seg label:has(input:checked) { border-color: rgba(255, 223, 0, .5); background: rgba(255, 223, 0, .1); color: var(--t-yellow); }
.tmv-seg label:has(input[value="RECRUITING"]:checked) { border-color: rgba(89, 241, 139, .5); background: rgba(89, 241, 139, .1); color: var(--t-green); }
.tmv-seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 223, 0, .2); }
