/**
 * TipLiga - Dynamic Esports Design System
 *
 * Dynamický esports design s oranžovou/černou paletou
 * Použití: Přidejte tento soubor do vašeho EJS projektu
 */

/* ============================================
   CUSTOM SCROLLBAR - GLOBAL
   ============================================ */

/* WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF6B00 0%, #cc5500 100%);
  border-radius: 4px;
  border: 1px solid #1a1a1c;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8533 0%, #FF6B00 100%);
}

::-webkit-scrollbar-corner {
  background: #1a1a1c;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #FF6B00 #1a1a1c;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Note: .hidden class is provided by Tailwind CSS.
   If not using Tailwind, uncomment below:
   .hidden { display: none; }
*/

/* ============================================
   HEADER - ESPORTS NAVIGATION
   ============================================ */

.tl-header {
  background: linear-gradient(180deg, #0A0A0B 0%, #111113 100%);
  border-bottom: 2px solid transparent;
  position: relative;
  transition: all 0.3s ease;
}

.tl-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(24, 100%, 50%) 20%,
    hsl(45, 100%, 50%) 50%,
    hsl(24, 100%, 50%) 80%,
    transparent 100%
  );
  animation: header-shimmer 3s ease-in-out infinite;
}

@keyframes header-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.tl-header__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tl-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

/* Logo */
.tl-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tl-header__logo-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.tl-header__logo-link:hover {
  filter: brightness(1.2);
}

.tl-header__badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  color: #000;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 5px hsla(24, 100%, 50%, 0.3); }
  50% { box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.6); }
}

/* Navigation */
.tl-header__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .tl-header__nav {
    display: flex;
  }
}

.tl-header__nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: transparent;
}

.tl-header__nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), hsla(45, 100%, 50%, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-header__nav-link:hover {
  color: hsl(24, 100%, 50%);
}

.tl-header__nav-link:hover::before {
  opacity: 1;
}

.tl-header__nav-link--active {
  color: hsl(24, 100%, 50%);
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.15), hsla(45, 100%, 50%, 0.1));
}

/* Dropdown */
.tl-header__dropdown {
  position: relative;
}

.tl-header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 200px;
  background: linear-gradient(180deg, #151517 0%, #0D0D0E 100%);
  border: 1px solid hsla(24, 100%, 50%, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px hsla(24, 100%, 50%, 0.1);
  z-index: 50;
  overflow: hidden;
}

.tl-header__dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
}

.tl-header__dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.tl-header__dropdown-item:hover {
  background: linear-gradient(90deg, hsla(24, 100%, 50%, 0.15), transparent);
  color: hsl(24, 100%, 50%);
  border-left-color: hsl(24, 100%, 50%);
  padding-left: 1.5rem;
}

.tl-header__dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, hsla(24, 100%, 50%, 0.3), transparent);
}

/* Right Side Actions */
.tl-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tl-header__icon-btn:hover {
  background: hsla(24, 100%, 50%, 0.1);
  border-color: hsla(24, 100%, 50%, 0.3);
  color: hsl(24, 100%, 50%);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
}

.tl-header__icon-btn svg {
  width: 20px;
  height: 20px;
}

.tl-header__notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  animation: badge-pulse 1.5s ease-in-out infinite;
}

/* User Menu */
.tl-header__user-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .tl-header__user-btn {
    display: flex;
  }
}

.tl-header__user-btn:hover {
  background: hsla(24, 100%, 50%, 0.1);
  border-color: hsla(24, 100%, 50%, 0.3);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.15);
}

.tl-header__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 0;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  border: 2px solid hsl(24, 100%, 50%);
}

/* Login Button */
.tl-header__login-btn {
  position: relative;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  border: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.tl-header__login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.tl-header__login-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 5px 20px hsla(24, 100%, 50%, 0.4),
    0 0 30px hsla(24, 100%, 50%, 0.2);
}

.tl-header__login-btn:hover::before {
  left: 100%;
}

/* Notifications Dropdown */
.tl-header__notifications {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: linear-gradient(180deg, #151517 0%, #0D0D0E 100%);
  border: 1px solid hsla(24, 100%, 50%, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px hsla(24, 100%, 50%, 0.1);
  z-index: 50;
}

.tl-header__notifications-header {
  position: sticky;
  top: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #1a1a1c 0%, #151517 100%);
  border-bottom: 1px solid hsla(24, 100%, 50%, 0.2);
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(24, 100%, 50%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-header__notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.tl-header__notification-item:hover {
  background: hsla(24, 100%, 50%, 0.05);
}

.tl-header__notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.tl-header__notification-message {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.tl-header__notification-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.tl-header__notification-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tl-header__notification-accept,
.tl-header__notification-decline {
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  transition: all 0.2s ease;
}

.tl-header__notification-accept {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #000;
}

.tl-header__notification-accept:hover {
  box-shadow: 0 0 15px hsla(142, 71%, 45%, 0.4);
}

.tl-header__notification-decline {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.tl-header__notification-decline:hover {
  box-shadow: 0 0 15px hsla(0, 84%, 60%, 0.4);
}

/* Mobile Menu Button */
.tl-header__mobile-btn {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .tl-header__mobile-btn {
    display: none;
  }
}

.tl-header__mobile-btn:hover {
  color: hsl(24, 100%, 50%);
}

.tl-header__mobile-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.tl-header__mobile-menu {
  background: linear-gradient(180deg, #0D0D0E 0%, #0A0A0B 100%);
  border-top: 1px solid hsla(24, 100%, 50%, 0.2);
  padding: 1rem;
}

@media (min-width: 768px) {
  .tl-header__mobile-menu {
    display: none;
  }
}

.tl-header__mobile-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tl-header__mobile-user:hover {
  background: hsla(24, 100%, 50%, 0.1);
  border-color: hsla(24, 100%, 50%, 0.2);
}

.tl-header__mobile-user-avatar {
  width: 44px;
  height: 44px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border: 2px solid hsl(24, 100%, 50%);
}

.tl-header__mobile-user-name {
  font-weight: 600;
  color: #fff;
}

.tl-header__mobile-user-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.tl-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tl-header__mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.tl-header__mobile-link:hover {
  background: linear-gradient(90deg, hsla(24, 100%, 50%, 0.1), transparent);
  color: hsl(24, 100%, 50%);
  border-left-color: hsl(24, 100%, 50%);
}

.tl-header__mobile-link--danger {
  color: #ef4444;
}

.tl-header__mobile-link--danger:hover {
  background: linear-gradient(90deg, hsla(0, 84%, 60%, 0.1), transparent);
  color: #ef4444;
  border-left-color: #ef4444;
}

.tl-header__mobile-link--success {
  color: #22c55e;
}

.tl-header__mobile-link--success:hover {
  background: linear-gradient(90deg, hsla(142, 71%, 45%, 0.1), transparent);
  color: #22c55e;
  border-left-color: #22c55e;
}

/* Light Mode Header */
.light .tl-header {
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
}

.light .tl-header__nav-link {
  color: rgba(0, 0, 0, 0.7);
}

.light .tl-header__nav-link:hover {
  color: hsl(24, 100%, 50%);
}

.light .tl-header__dropdown-menu,
.light .tl-header__notifications {
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
  border-color: hsla(24, 100%, 50%, 0.15);
}

.light .tl-header__dropdown-item {
  color: rgba(0, 0, 0, 0.8);
}

.light .tl-header__icon-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

.light .tl-header__icon-btn:hover {
  background: hsla(24, 100%, 50%, 0.1);
  border-color: hsla(24, 100%, 50%, 0.3);
  color: hsl(24, 100%, 50%);
}

.light .tl-header__user-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.9);
}

.light .tl-header__mobile-menu {
  background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

.light .tl-header__mobile-link {
  color: rgba(0, 0, 0, 0.8);
}

.light .tl-header__notification-title {
  color: #000;
}

.light .tl-header__notifications-header {
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
}

/* ============================================
   PRIMARY COLORS
   ============================================ */

:root {
  --tl-primary: hsl(24, 100%, 50%);
  --tl-primary-light: hsl(45, 100%, 55%);
}

/* ============================================
   BAREVNÁ PALETA - CSS CUSTOM PROPERTIES
   ============================================ */



:root {
  /* Primární oranžová paleta */
  --tl-orange: 24 100% 50%;           /* #FF5500 */
  --tl-orange-light: 30 100% 55%;     /* Světlejší pro gradienty */
  --tl-orange-dark: 20 100% 45%;      /* Tmavší pro hover */
  --tl-yellow: 45 100% 50%;           /* Pro gradient koncovku */

  /* Neutrální barvy - Light mode */
  --tl-bg: 0 0% 98%;                  /* Pozadí stránky */
  --tl-bg-card: 0 0% 100%;            /* Pozadí karet */
  --tl-bg-elevated: 0 0% 96%;         /* Zvýšené elementy (stat boxy) */
  --tl-text: 0 0% 8%;                 /* Hlavní text */
  --tl-text-muted: 0 0% 45%;          /* Sekundární text */
  --tl-border: 0 0% 90%;              /* Bordery */
  --tl-border-subtle: 0 0% 94%;       /* Jemné bordery */

  /* Stíny */
  --tl-shadow-sm: 0 1px 2px 0 hsla(0, 0%, 0%, 0.04);
  --tl-shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.06), 0 2px 4px -2px hsla(0, 0%, 0%, 0.06);
  --tl-shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.08), 0 4px 6px -4px hsla(0, 0%, 0%, 0.08);
  --tl-shadow-glow: 0 0 20px hsla(24, 100%, 50%, 0.15);

  /* Stavy */
  --tl-success: 142 71% 45%;
  --tl-error: 0 84% 60%;
  --tl-warning: 38 92% 50%;

  /* Geometrie */
  --tl-corner-size: 12px;
  --tl-radius: 8px;
}

.dark {
  /* Neutrální barvy - Dark mode */
  --tl-bg: 0 0% 4%;                   /* #0A0A0A */
  --tl-bg-card: 0 0% 7%;              /* #121212 */
  --tl-bg-elevated: 0 0% 11%;         /* #1C1C1C */
  --tl-text: 0 0% 96%;                /* Hlavní text */
  --tl-text-muted: 0 0% 55%;          /* Sekundární text */
  --tl-border: 0 0% 16%;              /* Bordery */
  --tl-border-subtle: 0 0% 12%;       /* Jemné bordery */

  /* Stíny - tmavší prostředí */
  --tl-shadow-sm: 0 1px 2px 0 hsla(0, 0%, 0%, 0.2);
  --tl-shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.3), 0 2px 4px -2px hsla(0, 0%, 0%, 0.2);
  --tl-shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.4), 0 4px 6px -4px hsla(0, 0%, 0%, 0.3);
  --tl-shadow-glow: 0 0 30px hsla(24, 100%, 50%, 0.2);
}

/* ============================================
   ZÁKLADNÍ BODY & LAYOUT
   ============================================ */

.tl-body {
  background-color: hsl(var(--tl-bg));
  color: hsl(var(--tl-text));
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tl-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .tl-main {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tl-main {
    padding: 2rem 2rem;
  }
}

/* ============================================
   KARTY - ZÁKLADNÍ STYL SE ZKOSENÝM ROHEM
   ============================================ */

.tl-card {
  background: linear-gradient(145deg, hsl(var(--tl-bg-card)), hsla(var(--tl-bg-elevated), 0.5));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  box-shadow: var(--tl-shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ambient glow efekt na pozadí */
.tl-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, hsla(24, 100%, 50%, 0.03) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.tl-card:hover::after {
  opacity: 1;
}

/* Zkosený roh - geometrický prvek - výraznější */
.tl-card--skewed {
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

/* Alternativní zkosení - výraznější */
.tl-card--corner {
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    0 100%
  );
}

/* Standardní zaoblené rohy */
.tl-card--rounded {
  border-radius: var(--tl-radius);
  clip-path: none;
}

.tl-card:hover {
  box-shadow:
    var(--tl-shadow-lg),
    0 0 30px hsla(24, 100%, 50%, 0.08);
  transform: translateY(-2px);
  border-color: hsla(24, 100%, 50%, 0.2);
}

/* Gradient horní border - výraznější */
.tl-card--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.tl-card__content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .tl-card__content {
    padding: 2rem;
  }
}

/* ============================================
   PROFIL HEADER
   ============================================ */

.tl-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tl-profile-header {
    flex-direction: row;
    align-items: center;
  }
}

/* Avatar s animovaným gradient rámečkem */
.tl-avatar {
  position: relative;
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
}

.tl-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  background-size: 200% 200%;
  border-radius: 50%;
  z-index: -1;
  animation: avatar-glow 3s ease-in-out infinite;
}

@keyframes avatar-glow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.4);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 30px hsla(45, 100%, 50%, 0.5);
  }
}

.tl-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid hsl(var(--tl-bg-card));
  transition: transform 0.3s ease;
}

.tl-avatar:hover img {
  transform: scale(1.05);
}

.tl-avatar--lg {
  width: 8rem;
  height: 8rem;
}

.tl-avatar--lg::before {
  inset: -5px;
}

.tl-profile-info {
  text-align: center;
}

@media (min-width: 640px) {
  .tl-profile-info {
    text-align: left;
  }
}

/* Gradient text pro uživatelské jméno - animovaný */
.tl-username {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: text-shimmer 4s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tl-subtitle {
  color: hsl(var(--tl-text-muted));
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============================================
   SEKCE NADPISY
   ============================================ */

.tl-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Gradient podtržení */
.tl-section-title--underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.tl-section-title--underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
}

/* ============================================
   STATISTIKY BOXY
   ============================================ */

.tl-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .tl-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .tl-stats-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.tl-stat-box {
  background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)), hsla(var(--tl-bg-card), 0.8));
  border-radius: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  border: 1px solid hsla(var(--tl-border), 0.5);
}

.tl-stat-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 30px hsla(24, 100%, 50%, 0.15),
    0 0 0 1px hsla(24, 100%, 50%, 0.3);
}

/* Gradient horní linka - vždy viditelná */
.tl-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  opacity: 0.5;
  transition: all 0.3s ease;
}

.tl-stat-box:hover::before {
  opacity: 1;
  height: 4px;
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.5);
}

.tl-stat-box--active {
  border-color: hsla(24, 100%, 50%, 0.5);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.1);
}

.tl-stat-box--active::before {
  opacity: 1;
}

.tl-stat-label {
  font-size: 0.75rem;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tl-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
}

/* Gradient hodnota pro důležité statistiky */
.tl-stat-value--accent {
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Barevné varianty pro různé typy statistik */
.tl-stat-value--blue {
  color: hsl(217, 91%, 60%);
}

.tl-stat-value--green {
  color: hsl(var(--tl-success));
}

.tl-stat-value--purple {
  color: hsl(262, 83%, 58%);
}

/* ============================================
   TLAČÍTKA - DYNAMICKÉ S GLOW EFEKTY
   ============================================ */

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Shimmer efekt na hover */
.tl-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
  transition: left 0.5s ease;
}

.tl-btn:hover::after {
  left: 100%;
}

/* Primární tlačítko s výrazným gradientem a glow */
.tl-btn--primary {
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  color: white;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  box-shadow:
    0 4px 15px hsla(24, 100%, 50%, 0.4),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
}

.tl-btn--primary:hover {
  background: linear-gradient(135deg, hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  box-shadow:
    0 6px 25px hsla(24, 100%, 50%, 0.6),
    0 0 40px hsla(24, 100%, 50%, 0.3),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.tl-btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* Sekundární tlačítko - elegantní outline s animovaným borderem */
.tl-btn--secondary {
  background: hsla(var(--tl-bg-card), 0.8);
  color: hsl(var(--tl-orange));
  border: 2px solid transparent;
  background-image: linear-gradient(hsl(var(--tl-bg-card)), hsl(var(--tl-bg-card))),
                    linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 200% 100%;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 100% 0%; }
}

.tl-btn--secondary:hover {
  background-image: linear-gradient(hsla(var(--tl-orange), 0.1), hsla(var(--tl-orange), 0.1)),
                    linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.3);
  transform: translateY(-2px);
}

/* Danger tlačítko s pulzujícím efektem */
.tl-btn--danger {
  background: linear-gradient(135deg, hsl(var(--tl-error)), hsl(0, 70%, 50%));
  color: white;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  box-shadow: 0 4px 15px hsla(0, 84%, 60%, 0.3);
}

.tl-btn--danger:hover {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(var(--tl-error)));
  box-shadow: 0 6px 25px hsla(0, 84%, 60%, 0.5);
  transform: translateY(-2px);
}

/* Velikosti */
.tl-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.tl-btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ============================================
   ALERTY / ZPRÁVY
   ============================================ */

.tl-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--tl-radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tl-alert--success {
  background-color: hsla(142, 71%, 45%, 0.1);
  border: 1px solid hsla(142, 71%, 45%, 0.3);
  color: hsl(142, 71%, 35%);
}

.dark .tl-alert--success {
  background-color: hsla(142, 71%, 45%, 0.15);
  color: hsl(142, 71%, 65%);
}

.tl-alert--error {
  background-color: hsla(0, 84%, 60%, 0.1);
  border: 1px solid hsla(0, 84%, 60%, 0.3);
  color: hsl(0, 84%, 45%);
}

.dark .tl-alert--error {
  background-color: hsla(0, 84%, 60%, 0.15);
  color: hsl(0, 84%, 70%);
}

.tl-alert--warning {
  background-color: hsla(38, 92%, 50%, 0.1);
  border: 1px solid hsla(38, 92%, 50%, 0.3);
  color: hsl(38, 92%, 35%);
}

.dark .tl-alert--warning {
  background-color: hsla(38, 92%, 50%, 0.15);
  color: hsl(38, 92%, 65%);
}

.tl-alert--info {
  background-color: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.3);
  color: hsl(217, 91%, 45%);
}

.dark .tl-alert--info {
  background-color: hsla(217, 91%, 60%, 0.15);
  color: hsl(217, 91%, 70%);
}

/* ============================================
   TABULKA - ŽIVĚJŠÍ DESIGN
   ============================================ */

.tl-table-wrapper {
  overflow-x: auto;
  border-radius: var(--tl-radius);
  position: relative;
}

.tl-table {
  width: 100%;
  border-collapse: collapse;
}

.tl-table th {
  background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)), hsla(var(--tl-bg-card), 0.8));
  color: hsl(var(--tl-text-muted));
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid hsl(var(--tl-orange) / 0.3);
  position: relative;
}

.tl-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
}

.tl-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--tl-text));
  border-bottom: 1px solid hsl(var(--tl-border-subtle));
  transition: all 0.2s ease;
}

.tl-table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tl-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tl-table tbody tr:hover {
  background: linear-gradient(90deg, hsla(var(--tl-orange), 0.05), transparent);
}

.tl-table tbody tr:hover::before {
  opacity: 1;
}

/* Zvýrazněná hodnota v tabulce */
.tl-table__highlight {
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stavové indikátory - výraznější */
.tl-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}

.tl-status--success {
  color: hsl(142, 71%, 95%);
  background: linear-gradient(135deg, hsl(var(--tl-success)), hsl(142, 71%, 35%));
  box-shadow: 0 2px 10px hsla(142, 71%, 45%, 0.3);
}

.tl-status--error {
  color: hsl(0, 84%, 95%);
  background: linear-gradient(135deg, hsl(var(--tl-error)), hsl(0, 70%, 45%));
  box-shadow: 0 2px 10px hsla(0, 84%, 60%, 0.3);
}

.tl-status--pending {
  color: hsl(var(--tl-text));
  background: hsl(var(--tl-bg-elevated));
  border: 1px solid hsl(var(--tl-border));
}

/* ============================================
   PAGINACE - VYLEPŠENÁ
   ============================================ */

.tl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)), hsl(var(--tl-bg-card)));
  border-top: 1px solid hsl(var(--tl-border));
  flex-wrap: wrap;
  gap: 1rem;
}

.tl-pagination__info {
  font-size: 0.875rem;
  color: hsl(var(--tl-text-muted));
}

.tl-pagination__info strong {
  color: hsl(var(--tl-orange));
  font-weight: 700;
}

.tl-pagination__buttons {
  display: flex;
  gap: 0.75rem;
}

.tl-pagination__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--tl-text));
  background: hsl(var(--tl-bg-card));
  border: 1px solid hsl(var(--tl-border));
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}

.tl-pagination__btn:hover {
  border-color: hsl(var(--tl-orange));
  color: hsl(var(--tl-orange));
  background: hsla(var(--tl-orange), 0.05);
  box-shadow: 0 4px 15px hsla(24, 100%, 50%, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.tl-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.tl-empty__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.tl-empty__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--tl-text));
  margin-bottom: 0.5rem;
}

.tl-empty__text {
  color: hsl(var(--tl-text-muted));
  margin-bottom: 1.5rem;
}

/* ============================================
   INTEGRACE SEKCE (FaceIT, Steam) - ŽIVĚJŠÍ
   ============================================ */

.tl-integration {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, hsla(var(--tl-bg-elevated), 0.5), transparent);
  border-radius: var(--tl-radius);
  transition: all 0.3s ease;
}

.tl-integration:hover {
  background: linear-gradient(135deg, hsla(var(--tl-orange), 0.05), transparent);
}

.tl-integration__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(hsl(var(--tl-bg-card)), hsl(var(--tl-bg-card))) padding-box,
    linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))) border-box;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-integration:hover .tl-integration__avatar {
  transform: scale(1.05);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.3);
}

.tl-integration__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  margin-bottom: 0.125rem;
}

.tl-integration__status {
  font-size: 0.8rem;
  color: hsl(var(--tl-success));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.tl-integration__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--tl-orange));
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tl-integration__link:hover {
  color: hsl(var(--tl-yellow));
  text-shadow: 0 0 10px hsla(24, 100%, 50%, 0.5);
}

/* ============================================
   UTILITY TŘÍDY
   ============================================ */

.tl-mt-4 { margin-top: 1rem; }
.tl-mt-6 { margin-top: 1.5rem; }
.tl-mt-8 { margin-top: 2rem; }
.tl-mb-4 { margin-bottom: 1rem; }
.tl-mb-6 { margin-bottom: 1.5rem; }
.tl-mb-8 { margin-bottom: 2rem; }
.tl-mb-16 { margin-bottom: 4rem; }

.tl-text-xs { font-size: 0.75rem; }
.tl-text-sm { font-size: 0.875rem; }
.tl-text-muted { color: hsl(var(--tl-text-muted)); }
.tl-text-center { text-align: center; }

.tl-font-mono { font-family: ui-monospace, monospace; }
.tl-font-bold { font-weight: 700; }

.tl-flex { display: flex; }
.tl-flex-wrap { flex-wrap: wrap; }
.tl-items-center { align-items: center; }
.tl-gap-3 { gap: 0.75rem; }
.tl-gap-4 { gap: 1rem; }

/* Divider s gradient */
.tl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--tl-border)), transparent);
  margin: 1.5rem 0;
}

.tl-divider--accent {
  background: linear-gradient(90deg, transparent, hsl(var(--tl-orange) / 0.5), transparent);
}

/* Subsekce uvnitř karty */
.tl-subsection {
  border-top: 1px solid hsl(var(--tl-border));
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.tl-subsection__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--tl-text));
  margin-bottom: 1rem;
}

/* ============================================
   HOMEPAGE - HERO SECTION
   ============================================ */

.tl-hero {
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.tl-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(
    ellipse at center,
    hsla(24, 100%, 50%, 0.08) 0%,
    transparent 50%
  );
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.tl-hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, hsl(var(--tl-text)), hsl(var(--tl-orange)), hsl(var(--tl-text)));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-text-shimmer 5s ease-in-out infinite;
}

@media (min-width: 640px) {
  .tl-hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .tl-hero__title {
    font-size: 3.5rem;
  }
}

@keyframes hero-text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tl-hero__subtitle {
  font-size: 1.125rem;
  color: hsl(var(--tl-text-muted));
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .tl-hero__subtitle {
    font-size: 1.25rem;
  }
}

/* ============================================
   HOMEPAGE - FEATURED ARTICLE
   ============================================ */

.tl-featured {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.tl-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsla(24, 100%, 50%, 0.1) 0%,
    transparent 50%,
    hsla(45, 100%, 50%, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.tl-featured:hover::before {
  opacity: 1;
}

.tl-featured:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--tl-shadow-lg),
    0 0 60px hsla(24, 100%, 50%, 0.15),
    0 0 0 1px hsla(24, 100%, 50%, 0.2);
}

.tl-featured__image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (min-width: 640px) {
  .tl-featured__image {
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .tl-featured__image {
    height: 20rem;
  }
}

.tl-featured:hover .tl-featured__image {
  transform: scale(1.05);
}

.tl-featured__image-wrapper {
  overflow: hidden;
  position: relative;
}

.tl-featured__image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, hsl(var(--tl-bg-card)), transparent);
}

.tl-featured__gradient {
  width: 100%;
  height: 12rem;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  position: relative;
}

@media (min-width: 640px) {
  .tl-featured__gradient {
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .tl-featured__gradient {
    height: 20rem;
  }
}

.tl-featured__gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, hsla(0, 0%, 100%, 0.1) 50%, transparent 60%),
    linear-gradient(135deg, hsla(0, 0%, 0%, 0.2), transparent);
  animation: featured-shimmer 3s ease-in-out infinite;
}

@keyframes featured-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.tl-featured__content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .tl-featured__content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .tl-featured__content {
    padding: 2.5rem;
  }
}

.tl-featured__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #000;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 10px hsla(24, 100%, 50%, 0.3); }
  50% { box-shadow: 0 0 25px hsla(24, 100%, 50%, 0.6); }
}

.tl-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tl-featured__date {
  font-size: 0.8rem;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tl-featured__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .tl-featured__title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .tl-featured__title {
    font-size: 2.25rem;
  }
}

.tl-featured:hover .tl-featured__title {
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-featured__excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--tl-text-muted));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .tl-featured__excerpt {
    font-size: 1.125rem;
  }
}

/* ============================================
   HOMEPAGE - ARTICLE CARDS GRID
   ============================================ */

.tl-articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tl-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tl-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tl-article-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(var(--tl-bg-card)), hsla(var(--tl-bg-elevated), 0.5));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}

.tl-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.tl-article-card:hover::before {
  opacity: 1;
}

.tl-article-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, hsla(24, 100%, 50%, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tl-article-card:hover::after {
  opacity: 1;
}

.tl-article-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 40px hsla(24, 100%, 50%, 0.15),
    0 0 0 1px hsla(24, 100%, 50%, 0.3);
  border-color: hsla(24, 100%, 50%, 0.2);
}

.tl-article-card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.tl-article-card__image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (min-width: 640px) {
  .tl-article-card__image {
    height: 12rem;
  }
}

.tl-article-card:hover .tl-article-card__image {
  transform: scale(1.1);
}

.tl-article-card__gradient {
  width: 100%;
  height: 10rem;
  background: linear-gradient(135deg, hsl(var(--tl-orange) / 0.8), hsl(var(--tl-yellow) / 0.9));
  position: relative;
}

@media (min-width: 640px) {
  .tl-article-card__gradient {
    height: 12rem;
  }
}

.tl-article-card__gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, hsla(0, 0%, 100%, 0.1) 50%, transparent 70%);
  animation: card-shimmer 4s ease-in-out infinite;
}

@keyframes card-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.tl-article-card__content {
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .tl-article-card__content {
    padding: 1.5rem;
  }
}

.tl-article-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .tl-article-card__title {
    font-size: 1.25rem;
  }
}

.tl-article-card:hover .tl-article-card__title {
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-article-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--tl-text-muted));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.tl-article-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   HOMEPAGE - FOOTER
   ============================================ */

.tl-footer {
  background: linear-gradient(180deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg)) 100%);
  border-top: 2px solid transparent;
  position: relative;
  margin-top: 4rem;
}

.tl-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(var(--tl-orange)) 20%,
    hsl(var(--tl-yellow)) 50%,
    hsl(var(--tl-orange)) 80%,
    transparent 100%
  );
  animation: footer-shimmer 4s ease-in-out infinite;
}

@keyframes footer-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.tl-footer__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .tl-footer__container {
    padding: 3rem 1.5rem;
  }
}

.tl-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tl-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tl-footer__section {
  position: relative;
}

.tl-footer__title {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-footer__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
}

.tl-footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: hsl(var(--tl-text-muted));
}

.tl-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-footer__link {
  font-size: 0.9rem;
  color: hsl(var(--tl-text-muted));
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding-left: 0;
}

.tl-footer__link::before {
  content: '';
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  transition: width 0.3s ease;
}

.tl-footer__link:hover {
  color: hsl(var(--tl-orange));
  padding-left: 0.5rem;
}

.tl-footer__link:hover::before {
  width: 1rem;
}

.tl-footer__bottom {
  border-top: 1px solid hsla(var(--tl-border), 0.5);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.tl-footer__copyright {
  font-size: 0.8rem;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   HOMEPAGE - SECTION TITLES
   ============================================ */

.tl-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ============================================
   HOMEPAGE - EMPTY STATE
   ============================================ */

.tl-empty-articles {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, hsl(var(--tl-bg-card)), hsla(var(--tl-bg-elevated), 0.5));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

.tl-empty-articles__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  margin-bottom: 0.75rem;
}

.tl-empty-articles__text {
  font-size: 1rem;
  color: hsl(var(--tl-text-muted));
}

/* ============================================
   HOMEPAGE - LEAGUES / PROGRAM LAYOUT
   ============================================ */

.tl-home-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  margin-bottom: 0.35rem;
}

.tl-home-section-text {
  font-size: 0.95rem;
  color: hsl(var(--tl-text-muted));
  max-width: 42rem;
}

.tl-home-section-link {
  color: hsl(var(--tl-orange));
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.tl-home-section-link:hover {
  color: hsl(var(--tl-yellow));
}

.tl-home-leagues {
  margin-bottom: 3rem;
}

.tl-home-leagues-grid,
.tl-home-content-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .tl-home-leagues-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-home-content-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  }
}

.tl-home-featured-league,
.tl-home-side-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
}

.tl-home-featured-league {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  min-height: clamp(14.5rem, 24vw, 18.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.35rem, 2.8vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  isolation: isolate;
  background: hsl(var(--tl-bg-card));
}

.tl-home-featured-league__background,
.tl-home-featured-league__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tl-home-featured-league__background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.02);
}

.tl-home-featured-league__overlay {
  background:
    linear-gradient(180deg, hsla(0, 0%, 6%, 0.36) 0%, hsla(0, 0%, 6%, 0.54) 55%, hsla(0, 0%, 6%, 0.74) 100%),
    linear-gradient(135deg, hsla(24, 100%, 50%, 0.12) 0%, transparent 52%, hsla(45, 100%, 55%, 0.08) 100%);
}

.tl-home-featured-league__content {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
}

.tl-home-featured-league__header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.tl-home-featured-league__logo,
.tl-home-league-logo,
.tl-home-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, hsla(var(--tl-bg-elevated), 0.95), hsla(var(--tl-bg), 0.95));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  color: hsl(var(--tl-orange));
  font-weight: 800;
  flex-shrink: 0;
}

.tl-home-featured-league__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  font-size: 1.35rem;
}

.tl-home-league-logo,
.tl-home-team-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1rem;
}

.tl-home-featured-league__logo img,
.tl-home-league-logo img,
.tl-home-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-home-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.tl-home-featured-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tl-home-action-link {
  min-width: 6.5rem;
  text-decoration: none;
}

.tl-home-featured-league .tl-home-action-link {
  color: hsl(var(--tl-orange));
  background-image: linear-gradient(hsla(var(--tl-bg-card), 0.9), hsla(var(--tl-bg-card), 0.9)),
                    linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  background-size: 100% 100%, 100% 100%;
  animation: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tl-home-featured-league .tl-home-action-link:hover {
  background-image: linear-gradient(hsla(var(--tl-orange), 0.08), hsla(var(--tl-orange), 0.08)),
                    linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  box-shadow: 0 6px 16px hsla(24, 100%, 50%, 0.16);
  transform: translateY(-1px);
  color: #fff;
}

.tl-home-featured-league .tl-featured__meta {
  justify-content: center;
}

.tl-home-featured-league .tl-featured__title,
.tl-home-featured-league .tl-featured__excerpt {
  text-align: center;
}

.tl-home-featured-league .tl-featured__title {
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.tl-home-featured-league .tl-featured__excerpt {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  color: hsla(0, 0%, 100%, 0.86);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

.tl-home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  background: hsla(var(--tl-bg-elevated), 0.5);
  color: hsl(var(--tl-text-muted));
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tl-home-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  margin-bottom: 0.4rem;
}

.tl-home-card-text {
  font-size: 0.9rem;
  color: hsl(var(--tl-text-muted));
}

.tl-home-league-list,
.tl-home-program-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.tl-home-league-link,
.tl-home-program-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tl-home-league-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: hsla(var(--tl-bg-elevated), 0.45);
  border: 1px solid hsla(var(--tl-border-subtle), 0.7);
  transition: all 0.3s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.tl-home-league-link:hover {
  transform: translateY(-2px);
  border-color: hsla(24, 100%, 50%, 0.35);
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.08), hsla(var(--tl-bg-elevated), 0.5));
}

.tl-home-league-name {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  margin-bottom: 0.2rem;
}

.tl-home-league-meta,
.tl-home-program-league {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--tl-orange));
}

.tl-home-league-desc {
  font-size: 0.82rem;
  color: hsl(var(--tl-text-muted));
  margin-top: 0.2rem;
  line-height: 1.5;
}

.tl-home-program {
  position: sticky;
  top: 6rem;
}

.tl-home-program-link .tl-match-card {
  height: 100%;
}

.tl-home-program-link:hover .tl-match-card {
  transform: translateY(-3px);
  box-shadow:
    0 15px 35px hsla(24, 100%, 50%, 0.12),
    0 0 0 1px hsla(24, 100%, 50%, 0.18);
}

.tl-home-program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tl-home-program-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: hsl(var(--tl-text-muted));
}

.tl-home-secondary-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  align-items: start;
}

.tl-home-side-card--compact {
  padding: 1.15rem;
}

.tl-home-extra-events {
  margin-top: 0;
}

.tl-home-secondary-grid .tl-home-side-card {
  height: 100%;
}

@media (min-width: 860px) {
  .tl-home-secondary-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.tl-home-league-list--compact {
  gap: 0.55rem;
  margin-top: 1rem;
}

.tl-home-league-link--compact {
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
}

.tl-home-league-link--compact .tl-home-league-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.tl-home-league-content {
  flex: 1;
  min-width: 0;
}

.tl-home-league-link--compact .tl-home-league-name {
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.tl-home-league-link--compact .tl-home-league-meta {
  font-size: 0.7rem;
  color: hsl(var(--tl-text-muted));
}

.tl-home-pill--compact {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.tl-home-players-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tl-home-player-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: hsla(var(--tl-bg-elevated), 0.45);
  border: 1px solid hsla(var(--tl-border-subtle), 0.7);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.tl-home-player-rank {
  width: 1.85rem;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: hsl(var(--tl-orange));
  text-align: center;
}

.tl-home-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(#121212, #121212) padding-box,
              linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%)) border-box;
  border: 2px solid transparent;
}

.tl-home-player-content {
  flex: 1;
  min-width: 0;
}

.tl-home-player-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-home-player-meta {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: hsl(var(--tl-text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-home-player-kd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.tl-home-player-kd-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--tl-orange));
}

.tl-home-player-kd-value {
  font-size: 1rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
}

.tl-events-page {
  display: grid;
  gap: 1.75rem;
}

.tl-events-section {
  margin-bottom: 0.5rem;
}

.tl-events-header {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.tl-events-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%), hsl(24, 100%, 50%));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-events-subtitle {
  font-size: 1rem;
  line-height: 1.65;
  color: hsl(var(--tl-text-muted));
}

.tl-events-empty-state {
  margin-top: 1.25rem;
}

.tl-events-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tl-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tl-events-grid--page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tl-event-card {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  height: 100%;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, hsla(var(--tl-bg-card), 0.98), hsla(var(--tl-bg-elevated), 0.82));
  border: 1px solid hsla(var(--tl-border-subtle), 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 1 / 1.02;
}

.tl-event-card:hover {
  transform: translateY(-3px);
  border-color: hsla(24, 100%, 50%, 0.35);
  box-shadow:
    0 16px 30px hsla(0, 0%, 0%, 0.18),
    0 0 0 1px hsla(24, 100%, 50%, 0.1);
}

.tl-event-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11.5rem;
  border: 1px solid hsla(var(--tl-border-subtle), 0.6);
  background:
    radial-gradient(circle at top, hsla(24, 100%, 50%, 0.24), transparent 48%),
    linear-gradient(180deg, hsla(var(--tl-bg-elevated), 0.96), hsla(var(--tl-bg), 0.94));
  overflow: hidden;
}

.tl-event-card__media::after {
  content: '';
  position: absolute;
  inset: auto -15% -35% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: hsla(24, 100%, 50%, 0.12);
  filter: blur(10px);
}

.tl-event-card__status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.tl-event-card__image,
.tl-event-card__placeholder {
  position: relative;
  z-index: 1;
}

.tl-event-card__image {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
}

.tl-event-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tl-event-card__placeholder span {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: hsla(0, 0%, 100%, 0.95);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.tl-event-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  min-height: 0;
  flex: 1;
}

.tl-event-card__date {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--tl-orange));
}

.tl-event-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .tl-events-header {
    margin: 0;
    text-align: left;
  }

  .tl-event-card {
    aspect-ratio: auto;
    min-height: 18.5rem;
  }

  .tl-event-card__media {
    min-height: 10rem;
  }
}

.tl-match-card__status--scheduled {
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  color: #111;
}

/* ============================================
   TIPLIGA - MAIN PAGE STYLES
   ============================================ */

.tl-tipliga {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .tl-tipliga {
    padding: 2rem 1.5rem;
  }
}

/* TipLiga Hero Section */
.tl-tipliga__hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, hsl(var(--tl-bg-card)), hsla(var(--tl-bg-elevated), 0.5));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
}

@media (min-width: 768px) {
  .tl-tipliga__hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem;
  }
}

.tl-tipliga__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)), hsl(var(--tl-orange)));
  animation: hero-border-pulse 3s ease-in-out infinite;
}

@keyframes hero-border-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.tl-tipliga__hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, hsla(24, 100%, 50%, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.tl-tipliga__hero-content {
  position: relative;
  z-index: 1;
}

.tl-tipliga__title {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 3s ease-in-out infinite;
}

@media (min-width: 640px) {
  .tl-tipliga__title {
    font-size: 2.25rem;
  }
}

@keyframes title-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.tl-tipliga__subtitle {
  font-size: 1rem;
  color: hsl(var(--tl-text-muted));
  max-width: 400px;
}

.tl-tipliga__hero-stats {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.tl-tipliga__stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.1), hsla(45, 100%, 50%, 0.05));
  border: 1px solid hsla(24, 100%, 50%, 0.3);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all 0.3s ease;
}

.tl-tipliga__stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsla(24, 100%, 50%, 0.2);
  border-color: hsla(24, 100%, 50%, 0.5);
}

.tl-tipliga__stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-tipliga__stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--tl-text-muted));
  margin-top: 0.25rem;
}

/* TipLiga Matches Grid */
.tl-tipliga__matches {
  margin-bottom: 3rem;
}

.tl-tipliga__matches-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tl-tipliga__matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tl-tipliga__matches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Match Card */
.tl-match-card {
  position: relative;
  background: linear-gradient(145deg, hsl(var(--tl-bg-card)), hsla(var(--tl-bg-elevated), 0.5));
  border: 1px solid hsla(var(--tl-border-subtle), 0.8);
  padding: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}

.tl-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.tl-match-card:hover::before {
  opacity: 1;
}

.tl-match-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, hsla(24, 100%, 50%, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tl-match-card:hover::after {
  opacity: 1;
}

.tl-match-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 30px hsla(24, 100%, 50%, 0.15),
    0 0 0 1px hsla(24, 100%, 50%, 0.25);
  border-color: hsla(24, 100%, 50%, 0.2);
}

.tl-match-card--locked {
  opacity: 0.85;
}

.tl-match-card--locked::before {
  background: linear-gradient(90deg, hsl(var(--tl-text-muted)), hsla(var(--tl-text-muted), 0.5));
}

/* Match Status Badge */
.tl-match-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  z-index: 10;
}

.tl-match-card__status--live {
  background: linear-gradient(135deg, hsl(0, 80%, 50%), hsl(0, 90%, 40%));
  color: #fff;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 8px hsla(0, 80%, 50%, 0.5); }
  50% { box-shadow: 0 0 16px hsla(0, 80%, 50%, 0.8); }
}

.tl-match-card__status-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: dot-blink 1s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tl-match-card__status--finished {
  background: linear-gradient(135deg, hsl(140, 70%, 40%), hsl(140, 80%, 30%));
  color: #fff;
}

/* Match Card Header */
.tl-match-card__header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsla(var(--tl-border-subtle), 0.5);
}

.tl-match-card__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Match Card Teams */
.tl-match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.tl-match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  background: hsla(var(--tl-bg-elevated), 0.5);
  border: 2px solid hsla(var(--tl-border-subtle), 0.3);
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  min-height: 90px;
  text-decoration: none;
  overflow: hidden;
}

/* Clickable team style */
.tl-match-card__team--clickable {
  cursor: pointer;
  border-color: hsla(var(--tl-border-subtle), 0.5);
}

.tl-match-card__team--clickable:hover {
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.1), hsla(45, 100%, 50%, 0.05));
  border-color: hsla(24, 100%, 50%, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(24, 100%, 50%, 0.15);
}

.tl-match-card__team--selected {
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.2), hsla(45, 100%, 50%, 0.15)) !important;
  border-color: hsl(24, 100%, 50%) !important;
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.3), inset 0 0 20px hsla(24, 100%, 50%, 0.1) !important;
}

.tl-match-card__team--winner {
  background: linear-gradient(145deg, hsla(140, 70%, 40%, 0.25), hsla(140, 80%, 30%, 0.15));
  border-color: hsl(140, 70%, 45%);
  box-shadow: 0 0 15px hsla(140, 70%, 40%, 0.2);
}

.tl-match-card__rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
}

.tl-match-card__team-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: hsl(var(--tl-text-primary));
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
  max-width: 100%;
  padding: 0 0.25rem;
}

.tl-match-card__team-hint {
  font-size: 0.65rem;
  font-weight: 500;
  color: hsl(var(--tl-text-muted));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.tl-match-card__team--clickable:hover .tl-match-card__team-hint {
  opacity: 1;
  color: hsl(24, 100%, 55%);
}

.tl-match-card__team-check {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(24, 100%, 55%);
  background: hsla(24, 100%, 50%, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.tl-match-card__team-winner {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(140, 70%, 50%);
  background: hsla(140, 70%, 40%, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* VS Badge - Always centered and orange */
.tl-match-card__scoreboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 92px;
  padding: 0 0.15rem;
}

.tl-match-card__center {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  min-width: 92px;
}

.tl-match-card__center > .tl-match-card__scoreboard,
.tl-match-card__center > .tl-match-card__vs {
  grid-row: 1;
}

.tl-match-card__center > .tl-match-card__series {
  grid-row: 2;
}

.tl-match-card__score-main {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.5rem;
}

.tl-match-card__score-separator {
  font-size: 0.9rem;
  font-weight: 800;
  color: hsl(var(--tl-text-muted));
  line-height: 1;
}

.tl-match-card__score {
  display: inline-block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: hsl(var(--tl-text-primary));
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tl-match-card__score--live {
  color: hsl(24, 100%, 50%);
}

.tl-match-card__score--idle {
  color: hsl(var(--tl-text-muted));
}

.tl-match-card__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 900;
  color: hsl(0, 0%, 10%);
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 50%));
  padding: 0.35rem 0.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  box-shadow: 0 2px 10px hsla(24, 100%, 50%, 0.4);
  flex-shrink: 0;
}

.tl-match-card__series {
  font-size: 0.68rem;
  font-weight: 800;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tl-match-card__series--muted {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .tl-match-card__teams {
    gap: 0.25rem;
  }

  .tl-match-card__center,
  .tl-match-card__scoreboard {
    min-width: 82px;
  }

  .tl-match-card__score {
    font-size: 1.02rem;
  }

  .tl-match-card__series {
    font-size: 0.62rem;
  }
}

/* Disabled state for teams */
.tl-match-card__team--clickable:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tl-match-card__team--clickable:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Points Table */
.tl-match-card__points {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: hsla(var(--tl-bg-elevated), 0.3);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-match-card__points-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--tl-text-muted));
  margin-bottom: 0.5rem;
  text-align: center;
}

.tl-match-card__points-table {
  width: 100%;
  font-size: 0.7rem;
  border-collapse: collapse;
}

.tl-match-card__points-table th,
.tl-match-card__points-table td {
  padding: 0.375rem 0.5rem;
  text-align: center;
}

.tl-match-card__points-table th {
  font-weight: 700;
  color: hsl(var(--tl-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid hsla(var(--tl-border-subtle), 0.5);
}

.tl-match-card__points-table td {
  color: hsl(var(--tl-text-secondary));
}

.tl-match-card__points-table td:first-child {
  font-weight: 700;
  text-align: left;
}

.tl-match-card__points-win {
  color: hsl(140, 70%, 50%) !important;
}

.tl-match-card__points-loss {
  color: hsl(0, 70%, 55%) !important;
}

/* Voting Stats */
.tl-match-card__stats {
  padding-top: 0.75rem;
  border-top: 1px solid hsla(var(--tl-border-subtle), 0.5);
}

.tl-match-card__stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.tl-match-card__stat-team {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--tl-text-secondary));
}

.tl-match-card__stat-percent {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--tl-text-muted));
}

/* Progress Bars */
.tl-match-card__progress {
  height: 6px;
  background: hsla(var(--tl-bg-elevated), 0.8);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.tl-match-card__progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.tl-match-card__progress-bar--a {
  background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow)));
}

.tl-match-card__progress-bar--b {
  background: linear-gradient(90deg, hsl(210, 80%, 50%), hsl(210, 90%, 60%));
}

.tl-match-card__total-tips {
  font-size: 0.7rem;
  color: hsl(var(--tl-text-muted));
  text-align: center;
  margin-top: 0.5rem;
}

/* Simple Footer */
.tl-footer--simple {
  background: linear-gradient(180deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg-primary)));
  border-top: 1px solid hsla(var(--tl-border-subtle), 0.5);
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  position: relative;
}

.tl-footer--simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(var(--tl-orange)) 20%,
    hsl(var(--tl-yellow)) 50%,
    hsl(var(--tl-orange)) 80%,
    transparent 100%
  );
  animation: footer-shimmer 4s ease-in-out infinite;
}

@keyframes footer-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.tl-footer__container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.tl-footer__copyright {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--tl-text-muted));
}

/* ============================================
   MY TEAM PAGE - ESPORTS DESIGN
   ============================================ */

.tl-myteam {
  min-height: 100vh;
  background: linear-gradient(180deg, #0A0A0B 0%, #0D0D0E 100%);
}

.tl-myteam__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Team Header Card */
.tl-myteam__team-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg,
    hsla(24, 100%, 50%, 0.08) 0%,
    hsla(0, 0%, 8%, 0.95) 100%
  );
  border: 1px solid hsla(24, 100%, 50%, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  position: relative;
}

.tl-myteam__team-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%), hsl(24, 100%, 50%));
  animation: shimmer 3s ease-in-out infinite;
}

@media (min-width: 640px) {
  .tl-myteam__team-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }
}

.tl-myteam__team-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tl-myteam__team-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), hsla(0, 0%, 15%, 0.8));
  border: 2px solid hsl(24, 100%, 50%);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  overflow: hidden;
  animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% { box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.3); }
  50% { box-shadow: 0 0 30px hsla(24, 100%, 50%, 0.5); }
}

.tl-myteam__team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-myteam__team-logo-placeholder {
  font-size: 2rem;
}

.tl-myteam__team-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff 0%, hsl(24, 100%, 60%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-myteam__team-status {
  margin-top: 0.5rem;
}

.tl-myteam__status-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-myteam__status-badge--approved {
  background: linear-gradient(135deg, hsl(140, 70%, 40%), hsl(140, 60%, 35%));
  color: #fff;
  box-shadow: 0 0 15px hsla(140, 70%, 40%, 0.3);
}

.tl-myteam__status-badge--pending {
  background: linear-gradient(135deg, hsl(45, 100%, 45%), hsl(35, 100%, 40%));
  color: #000;
}

.tl-myteam__status-badge--rejected {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 60%, 40%));
  color: #fff;
}

.tl-myteam__team-actions {
  display: flex;
  gap: 0.75rem;
}


/* Grid Layout */
.tl-myteam__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .tl-myteam__grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Cards */
.tl-myteam__card {
  background: linear-gradient(180deg,
    hsla(0, 0%, 10%, 0.95) 0%,
    hsla(0, 0%, 7%, 0.98) 100%
  );
  border: 1px solid hsla(24, 100%, 50%, 0.15);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  position: relative;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tl-myteam__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(24, 100%, 50%) 30%,
    hsl(45, 100%, 55%) 70%,
    transparent 100%
  );
  opacity: 0.6;
}

.tl-myteam__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsla(24, 100%, 50%, 0.2);
}

/* Tabs */
.tl-myteam__tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  overflow: visible;
  border-bottom: 2px solid hsla(0, 0%, 20%, 0.5);
  padding-bottom: 0;
}

.tl-myteam__tab {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-myteam__tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tl-myteam__tab--active {
  color: hsl(24, 100%, 50%);
  border-bottom-color: hsl(24, 100%, 50%);
  text-shadow: 0 0 20px hsla(24, 100%, 50%, 0.5);
}

/* Match Sub-tabs */
.tl-myteam__match-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsla(0, 0%, 20%, 0.5);
}

.tl-myteam__match-tab {
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: hsla(0, 0%, 15%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.5);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.tl-myteam__match-tab:hover {
  background: hsla(24, 100%, 50%, 0.1);
  border-color: hsla(24, 100%, 50%, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.tl-myteam__match-tab--active {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.2), hsla(45, 100%, 50%, 0.1));
  border-color: hsl(24, 100%, 50%);
  color: hsl(24, 100%, 50%);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
}

/* Members List */
.tl-myteam__members {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-myteam__member {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, hsla(0, 0%, 12%, 0.8), hsla(0, 0%, 8%, 0.9));
  border: 1px solid hsla(0, 0%, 20%, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: all 0.3s ease;
}

.tl-myteam__member:hover {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), hsla(0, 0%, 12%, 0.9));
  border-color: hsla(24, 100%, 50%, 0.3);
  transform: translateX(4px);
}

.tl-myteam__member-avatar-wrap {
  position: relative;
}

.tl-myteam__member-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border: 2px solid hsla(24, 100%, 50%, 0.5);
}


.tl-myteam__member-crown {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.875rem;
  animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes crown-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-3px) rotate(5deg); }
}

.tl-myteam__member-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tl-myteam__member-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.tl-myteam__member-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Match List */
.tl-myteam__match-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-myteam__match-request,
.tl-myteam__upcoming-match,
.tl-myteam__completed-match {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, hsla(0, 0%, 12%, 0.8), hsla(0, 0%, 8%, 0.9));
  border: 1px solid hsla(0, 0%, 20%, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .tl-myteam__match-request,
  .tl-myteam__upcoming-match,
  .tl-myteam__completed-match {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tl-myteam__match-request:hover,
.tl-myteam__upcoming-match:hover,
.tl-myteam__completed-match:hover {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.08), hsla(0, 0%, 10%, 0.95));
  border-color: hsla(24, 100%, 50%, 0.3);
}

.tl-myteam__match-request-info,
.tl-myteam__upcoming-match-teams,
.tl-myteam__completed-match-teams {
  color: #fff;
  font-weight: 600;
}

.tl-myteam__match-request-team strong,
.tl-myteam__upcoming-match-teams strong,
.tl-myteam__completed-match-teams strong {
  color: hsl(24, 100%, 55%);
}

.tl-myteam__match-request-time,
.tl-myteam__upcoming-match-time,
.tl-myteam__completed-match-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.tl-myteam__match-request-actions,
.tl-myteam__upcoming-match-actions {
  display: flex;
  gap: 0.5rem;
}

.tl-myteam__upcoming-match-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tl-myteam__ready-badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: hsla(0, 0%, 25%, 0.5);
  color: rgba(255, 255, 255, 0.6);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.tl-myteam__ready-badge--ready {
  background: linear-gradient(135deg, hsl(140, 70%, 40%), hsl(140, 60%, 35%));
  color: #fff;
  box-shadow: 0 0 10px hsla(140, 70%, 40%, 0.3);
}

.tl-myteam__result-badge {
  padding: 0.375rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.tl-myteam__result-badge--win {
  background: linear-gradient(135deg, hsl(140, 70%, 45%), hsl(140, 60%, 35%));
  color: #fff;
  box-shadow: 0 0 12px hsla(140, 70%, 45%, 0.4);
}

.tl-myteam__result-badge--loss {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 60%, 40%));
  color: #fff;
  box-shadow: 0 0 12px hsla(0, 70%, 50%, 0.4);
}

/* Management Section */
.tl-myteam__management-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tl-myteam__management-members {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-myteam__management-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: hsla(0, 0%, 12%, 0.6);
  border: 1px solid hsla(0, 0%, 20%, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}


.tl-myteam__management-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  border: 2px solid hsla(24, 100%, 50%, 0.4);
}

.tl-myteam__management-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.tl-myteam__management-name {
  font-weight: 600;
  color: #fff;
}

.tl-myteam__management-role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.tl-myteam__management-actions {
  display: flex;
  gap: 0.5rem;
}

/* Sidebar Cards */
.tl-myteam__sidebar .tl-myteam__card {
  padding: 1.25rem;
}

/* Invite Form */
.tl-myteam__invite-form,
.tl-myteam__settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-myteam__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-myteam__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  background: hsla(0, 0%, 8%, 0.8);
  border: 1px solid hsla(0, 0%, 25%, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  outline: none;
  transition: all 0.3s ease;
}

.tl-myteam__input:focus {
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
}

.tl-myteam__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.tl-myteam__hint {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -0.25rem;
}

/* Invitations */
.tl-myteam__invitations {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-myteam__invitation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, hsla(45, 100%, 50%, 0.08), hsla(0, 0%, 10%, 0.8));
  border: 1px solid hsla(45, 100%, 50%, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.tl-myteam__invitation-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  border: 2px solid hsla(45, 100%, 50%, 0.5);
}

.tl-myteam__invitation-name {
  flex: 1;
  font-weight: 600;
  color: #fff;
}

.tl-myteam__invitation-cancel {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  color: hsl(0, 70%, 55%);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-myteam__invitation-cancel:hover {
  color: hsl(0, 70%, 70%);
  text-shadow: 0 0 10px hsla(0, 70%, 55%, 0.5);
}

/* Info List */
.tl-myteam__info-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tl-myteam__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tl-myteam__info-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-myteam__info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.tl-myteam__info-value--success {
  color: hsl(140, 70%, 55%);
}

/* Buttons */
.tl-myteam__btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  overflow: hidden;
}

.tl-myteam__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tl-myteam__btn:hover::before {
  left: 100%;
}

.tl-myteam__btn--primary {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  color: #000;
}

.tl-myteam__btn--primary:hover {
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.4);
  transform: translateY(-2px);
}

.tl-myteam__btn--secondary {
  background: linear-gradient(135deg, hsla(0, 0%, 25%, 0.8), hsla(0, 0%, 20%, 0.9));
  color: #fff;
  border: 1px solid hsla(0, 0%, 35%, 0.5);
}

.tl-myteam__btn--secondary:hover {
  background: linear-gradient(135deg, hsla(0, 0%, 30%, 0.9), hsla(0, 0%, 25%, 1));
  border-color: hsla(24, 100%, 50%, 0.3);
}

.tl-myteam__btn--success {
  background: linear-gradient(135deg, hsl(140, 70%, 45%), hsl(140, 60%, 35%));
  color: #fff;
}

.tl-myteam__btn--success:hover {
  box-shadow: 0 0 20px hsla(140, 70%, 45%, 0.4);
}

.tl-myteam__btn--danger {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 60%, 40%));
  color: #fff;
}

.tl-myteam__btn--danger:hover {
  box-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
}

.tl-myteam__btn--purple {
  background: linear-gradient(135deg, hsl(270, 70%, 50%), hsl(280, 60%, 45%));
  color: #fff;
}

.tl-myteam__btn--purple:hover {
  box-shadow: 0 0 20px hsla(270, 70%, 50%, 0.4);
}

.tl-myteam__btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.7rem;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.tl-myteam__btn--full {
  width: 100%;
  margin-top: 0.5rem;
}

/* Alert Messages */
.tl-myteam__alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.tl-myteam__alert--success {
  background: linear-gradient(135deg, hsla(140, 70%, 40%, 0.15), hsla(140, 60%, 30%, 0.1));
  border: 1px solid hsla(140, 70%, 40%, 0.3);
  color: hsl(140, 70%, 60%);
}

.tl-myteam__alert--error {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.15), hsla(0, 60%, 40%, 0.1));
  border: 1px solid hsla(0, 70%, 50%, 0.3);
  color: hsl(0, 70%, 65%);
}

/* Empty State */
.tl-myteam__empty {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Sidebar */
.tl-myteam__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Invite Form */
.tl-myteam__invite-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tl-myteam__hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* Settings Form */
.tl-myteam__settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Invitations */
.tl-myteam__invitations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl-myteam__invitation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsla(45, 100%, 50%, 0.08);
  border: 1px solid hsla(45, 100%, 50%, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.tl-myteam__invitation-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid hsla(45, 100%, 50%, 0.4);
  object-fit: cover;
}

.tl-myteam__invitation-name {
  flex: 1;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.tl-myteam__invitation-cancel {
  background: none;
  border: none;
  color: hsl(0, 70%, 55%);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.tl-myteam__invitation-cancel:hover {
  color: hsl(0, 70%, 65%);
  transform: scale(1.1);
}

/* Management Actions */
.tl-myteam__management-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================
   MATCH ROOM PAGE
   ============================================ */

.tl-match-room {
  min-height: 100vh;
  background: linear-gradient(180deg, #0A0A0B 0%, #0D0D0F 50%, #0A0A0B 100%);
  color: #fff;
}

.tl-match-room__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tl-match-room__header {
  text-align: center;
  margin-bottom: 2rem;
}

.tl-match-room__title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-match-room__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tl-match-room__team {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.tl-match-room__team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tl-match-room__score {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.tl-match-room__score--a {
  color: hsl(24, 100%, 50%);
  text-shadow: 0 0 30px hsla(24, 100%, 50%, 0.5);
}

.tl-match-room__score--b {
  color: hsl(210, 100%, 50%);
  text-shadow: 0 0 30px hsla(210, 100%, 50%, 0.5);
}

.tl-match-room__vs {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsla(0, 0%, 100%, 0.3);
}

.tl-match-room__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tl-match-room__tab {
  position: relative;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: hsla(0, 0%, 15%, 0.5);
  color: hsla(0, 0%, 100%, 0.6);
  border: 2px solid transparent;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.tl-match-room__tab:hover {
  background: hsla(0, 0%, 20%, 0.6);
  color: #fff;
}

.tl-match-room__tab--active {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.15), hsla(45, 100%, 50%, 0.1));
  color: hsl(24, 100%, 50%);
  border-bottom-color: hsl(24, 100%, 50%);
}

/* Veto Section */
.tl-match-room__veto {
  margin-bottom: 2rem;
}

.tl-match-room__veto-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: hsl(24, 100%, 50%);
}

.tl-match-room__veto-status {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tl-match-room__veto-turn {
  font-size: 1rem;
  color: hsla(0, 0%, 100%, 0.7);
}

.tl-match-room__countdown {
  margin-top: 0.75rem;
}

.tl-match-room__countdown-value {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(30, 100%, 45%));
  color: #fff;
  border-radius: 4px;
}

.tl-match-room__veto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .tl-match-room__veto-grid {
    grid-template-columns: 1fr;
  }
}

/* Side Players - Individual Cards */
.tl-match-room__side-players {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tl-match-room__side-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  background: hsla(0, 0%, 8%, 0.8);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.tl-match-room__side-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.tl-match-room__side-title--a {
  color: hsl(24, 100%, 55%);
}

.tl-match-room__side-title--a::before {
  background: linear-gradient(90deg, transparent, hsl(24, 100%, 50%), transparent);
}

.tl-match-room__side-title--b {
  color: hsl(210, 100%, 60%);
}

.tl-match-room__side-title--b::before {
  background: linear-gradient(90deg, transparent, hsl(210, 100%, 50%), transparent);
}

/* Individual Player Card - Enhanced */
.tl-match-room__player-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(135deg, hsla(0, 0%, 10%, 0.95), hsla(0, 0%, 6%, 0.98));
  border-radius: 8px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid hsla(0, 0%, 20%, 0.4);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tl-match-room__player-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: all 0.35s ease;
}

.tl-match-room__player-card--a::before {
  background: linear-gradient(180deg, hsl(24, 100%, 55%), hsl(35, 100%, 50%));
}

.tl-match-room__player-card--b::before {
  background: linear-gradient(180deg, hsl(210, 100%, 55%), hsl(200, 100%, 50%));
}

/* Corner accent */
.tl-match-room__player-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.tl-match-room__player-card--a::after {
  background: linear-gradient(135deg, transparent 50%, hsl(24, 100%, 50%) 50%);
}

.tl-match-room__player-card--b::after {
  background: linear-gradient(135deg, transparent 50%, hsl(210, 100%, 50%) 50%);
}

.tl-match-room__player-card:hover {
  transform: translateX(6px) scale(1.02);
  border-color: hsla(0, 0%, 35%, 0.5);
}

.tl-match-room__player-card:hover::after {
  opacity: 0.7;
}

.tl-match-room__player-card--a:hover {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.12), hsla(0, 0%, 8%, 0.98));
  box-shadow:
    0 8px 25px hsla(24, 100%, 50%, 0.2),
    inset 0 0 30px hsla(24, 100%, 50%, 0.05);
}

.tl-match-room__player-card--b:hover {
  background: linear-gradient(135deg, hsla(210, 100%, 50%, 0.12), hsla(0, 0%, 8%, 0.98));
  box-shadow:
    0 8px 25px hsla(210, 100%, 50%, 0.2),
    inset 0 0 30px hsla(210, 100%, 50%, 0.05);
}

/* Player card glow effect */
.tl-match-room__player-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tl-match-room__player-card--a .tl-match-room__player-card-glow {
  background: radial-gradient(ellipse at left center, hsla(24, 100%, 50%, 0.15), transparent 60%);
}

.tl-match-room__player-card--b .tl-match-room__player-card-glow {
  background: radial-gradient(ellipse at left center, hsla(210, 100%, 50%, 0.15), transparent 60%);
}

.tl-match-room__player-card:hover .tl-match-room__player-card-glow {
  opacity: 1;
}

/* Player index number */
.tl-match-room__player-card-index {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: hsla(0, 0%, 100%, 0.35);
  flex-shrink: 0;
  z-index: 1;
}

/* Avatar wrapper */
.tl-match-room__player-card-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.tl-match-room__player-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid;
  transition: all 0.35s ease;
}

.tl-match-room__player-card--a .tl-match-room__player-card-avatar {
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 12px hsla(24, 100%, 50%, 0.35);
}

.tl-match-room__player-card--b .tl-match-room__player-card-avatar {
  border-color: hsl(210, 100%, 50%);
  box-shadow: 0 0 12px hsla(210, 100%, 50%, 0.35);
}

.tl-match-room__player-card:hover .tl-match-room__player-card-avatar {
  transform: scale(1.08);
}

/* Player info */
.tl-match-room__player-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1;
}

.tl-match-room__player-card-nick {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.tl-match-room__player-card-elo {
  font-size: 0.65rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.45);
  letter-spacing: 0.05em;
}

/* Captain badge */
.tl-match-room__player-card-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: linear-gradient(135deg, hsl(45, 100%, 55%), hsl(35, 100%, 45%));
  color: #000;
  border-radius: 6px;
  flex-shrink: 0;
  z-index: 1;
  animation: badge-glow 2.5s ease-in-out infinite;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 8px hsla(45, 100%, 55%, 0.4);
  }
  50% {
    box-shadow: 0 0 16px hsla(45, 100%, 55%, 0.7);
  }
}

/* Legacy Team Players (keep for compatibility) */
.tl-match-room__team-players {
  background: hsla(0, 0%, 10%, 0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid hsla(0, 0%, 25%, 0.3);
}

.tl-match-room__team-header {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.tl-match-room__team-header--a {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(30, 100%, 45%));
  color: #000;
}

.tl-match-room__team-header--b {
  background: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 45%));
  color: #fff;
}

.tl-match-room__players-list {
  padding: 0.5rem;
}

.tl-match-room__player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.tl-match-room__player:hover {
  background: hsla(0, 0%, 100%, 0.05);
}

.tl-match-room__player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid;
  object-fit: cover;
}

.tl-match-room__player-avatar--a {
  border-color: hsl(24, 100%, 50%);
}

.tl-match-room__player-avatar--b {
  border-color: hsl(210, 100%, 50%);
}

.tl-match-room__player-info {
  flex: 1;
  min-width: 0;
}

.tl-match-room__player-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-match-room__player-role {
  font-size: 0.65rem;
  font-weight: 600;
}

.tl-match-room__player-role--a {
  color: hsl(24, 100%, 50%);
}

.tl-match-room__player-role--b {
  color: hsl(210, 100%, 50%);
}

/* Maps */
.tl-match-room__maps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-match-room__map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: hsla(0, 0%, 15%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tl-match-room__map:hover {
  background: hsla(0, 0%, 18%, 0.6);
  box-shadow: 0 0 15px hsla(0, 0%, 0%, 0.3);
}

.tl-match-room__map--banned {
  opacity: 0.5;
  background: hsla(0, 0%, 10%, 0.5);
  cursor: default;
}

.tl-match-room__map--picked {
  background: linear-gradient(135deg, hsla(140, 70%, 45%, 0.2), hsla(140, 60%, 35%, 0.1));
  border-color: hsl(140, 70%, 45%);
  box-shadow: 0 0 15px hsla(140, 70%, 45%, 0.2);
  cursor: default;
}

.tl-match-room__map-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.tl-match-room__map-name--banned {
  text-decoration: line-through;
  color: hsla(0, 0%, 100%, 0.5);
}

.tl-match-room__map-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-match-room__map-status--banned {
  color: hsl(0, 70%, 50%);
}

.tl-match-room__map-status--picked {
  color: hsl(140, 70%, 50%);
}

.tl-match-room__map-status--waiting {
  color: hsla(0, 0%, 100%, 0.3);
}

/* Veto Log */
.tl-match-room__veto-log {
  background: hsla(0, 0%, 10%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.tl-match-room__veto-log-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(24, 100%, 50%);
  margin-bottom: 0.75rem;
}

.tl-match-room__veto-log-entries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.tl-match-room__veto-log-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: hsla(0, 0%, 15%, 0.5);
  border-radius: 4px;
  font-size: 0.85rem;
}

.tl-match-room__veto-log-num {
  color: hsla(0, 0%, 100%, 0.5);
}

.tl-match-room__veto-log-team {
  font-weight: 700;
}

.tl-match-room__veto-log-team--a {
  color: hsl(24, 100%, 50%);
}

.tl-match-room__veto-log-team--b {
  color: hsl(210, 100%, 50%);
}

.tl-match-room__veto-log-action {
  color: hsla(0, 0%, 100%, 0.6);
}

.tl-match-room__veto-log-map {
  font-weight: 700;
  color: #fff;
}

/* Connect String */
.tl-match-room__connect {
  background: linear-gradient(135deg, #0A0A0B, #111);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tl-match-room__connect-label {
  font-size: 0.85rem;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 0.5rem;
}

.tl-match-room__connect-string {
  display: block;
  font-size: 1.1rem;
  font-family: monospace;
  color: hsl(140, 70%, 50%);
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: hsla(0, 0%, 0%, 0.3);
  border-radius: 4px;
  word-break: break-all;
}

.tl-match-room__connect-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 45%));
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-match-room__connect-btn:hover {
  box-shadow: 0 0 20px hsla(210, 100%, 50%, 0.4);
  transform: translateY(-2px);
}

/* Live Updates */
.tl-match-room__live-updates {
  background: hsla(0, 0%, 10%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
}

.tl-match-room__live-updates-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(0, 70%, 50%);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-match-room__live-updates-title::before {
  content: '';
  width: 10px;
  height: 10px;
  background: hsl(0, 70%, 50%);
  border-radius: 50%;
  animation: live-dot 1s ease-in-out infinite;
}

@keyframes live-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px hsl(0, 70%, 50%); }
  50% { opacity: 0.5; box-shadow: 0 0 10px hsl(0, 70%, 50%); }
}

.tl-match-room__round-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.tl-match-room__round {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: hsla(0, 0%, 15%, 0.5);
  border-radius: 4px;
  font-size: 0.85rem;
}

.tl-match-room__round-num {
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.6);
}

.tl-match-room__round-winner {
  font-weight: 700;
}

.tl-match-room__round-winner--a {
  color: hsl(24, 100%, 50%);
}

.tl-match-room__round-winner--b {
  color: hsl(210, 100%, 50%);
}

.tl-match-room__round-score {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.8rem;
}

/* Stats Section */
.tl-match-room__stats {
  background: hsla(0, 0%, 10%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tl-match-room__stats-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(24, 100%, 50%);
  margin-bottom: 1rem;
}

.tl-match-room__stats-table-container {
  overflow-x: auto;
}

.tl-match-room__stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

/* Fixed column widths for consistent alignment between tables */
.tl-match-room__stats-table th:nth-child(1),
.tl-match-room__stats-table td:nth-child(1) { width: 35%; } /* Player */
.tl-match-room__stats-table th:nth-child(2),
.tl-match-room__stats-table td:nth-child(2) { width: 8%; } /* K */
.tl-match-room__stats-table th:nth-child(3),
.tl-match-room__stats-table td:nth-child(3) { width: 8%; } /* D */
.tl-match-room__stats-table th:nth-child(4),
.tl-match-room__stats-table td:nth-child(4) { width: 8%; } /* A */
.tl-match-room__stats-table th:nth-child(5),
.tl-match-room__stats-table td:nth-child(5) { width: 10%; } /* K/D */
.tl-match-room__stats-table th:nth-child(6),
.tl-match-room__stats-table td:nth-child(6) { width: 10%; } /* HS% */
.tl-match-room__stats-table th:nth-child(7),
.tl-match-room__stats-table td:nth-child(7) { width: 11%; } /* ADR */
.tl-match-room__stats-table th:nth-child(8),
.tl-match-room__stats-table td:nth-child(8) { width: 10%; } /* MVP */

.tl-match-room__stats-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-match-room__stats-table th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: hsla(0, 0%, 100%, 0.5);
  border-bottom: 2px solid hsla(24, 100%, 50%, 0.3);
}

.tl-match-room__stats-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid hsla(0, 0%, 25%, 0.3);
  color: hsla(0, 0%, 100%, 0.8);
}

.tl-match-room__stats-table tbody tr {
  transition: background 0.2s ease;
}

.tl-match-room__stats-table tbody tr:hover {
  background: hsla(0, 0%, 100%, 0.05);
}

.tl-match-room__stats-row--a td:first-child {
  border-left: 3px solid hsl(24, 100%, 50%);
}

.tl-match-room__stats-row--b td:first-child {
  border-left: 3px solid hsl(210, 100%, 50%);
}

.tl-match-room__stats-name {
  font-weight: 700;
  color: #fff;
}

.tl-match-room__stats-team {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
}

.tl-match-room__stats-team--a {
  background: hsla(24, 100%, 50%, 0.2);
  color: hsl(24, 100%, 50%);
}

.tl-match-room__stats-team--b {
  background: hsla(210, 100%, 50%, 0.2);
  color: hsl(210, 100%, 50%);
}

.tl-match-room__stats-kills {
  color: hsl(140, 70%, 50%);
  font-weight: 700;
}

.tl-match-room__stats-deaths {
  color: hsl(0, 70%, 50%);
  font-weight: 700;
}

/* Back Button */
.tl-match-room__back {
  text-align: center;
  margin-top: 2rem;
}

.tl-match-room__back-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(24, 100%, 50%);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tl-match-room__back-link:hover {
  color: hsl(45, 100%, 55%);
  text-shadow: 0 0 10px hsla(24, 100%, 50%, 0.3);
}

/* Connection Countdown */
.tl-match-room__connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 400px;
  margin: 1rem auto 0;
}

.tl-match-room__connection-box {
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.tl-match-room__connection-box--a {
  background: hsla(24, 100%, 50%, 0.1);
  border: 1px solid hsla(24, 100%, 50%, 0.3);
}

.tl-match-room__connection-box--b {
  background: hsla(210, 100%, 50%, 0.1);
  border: 1px solid hsla(210, 100%, 50%, 0.3);
}

.tl-match-room__connection-label {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 0.25rem;
}

.tl-match-room__connection-count {
  font-size: 1.5rem;
  font-weight: 700;
}

.tl-match-room__connection-count--a {
  color: hsl(24, 100%, 50%);
}

.tl-match-room__connection-count--b {
  color: hsl(210, 100%, 50%);
}

/* ============================================
   MATCH ROOM - LIGHT MODE
   ============================================ */

.light .tl-match-room {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
}

.light .tl-match-room__title {
  color: #1a1a1a;
}

.light .tl-match-room__team-name {
  color: #1a1a1a;
}

.light .tl-match-room__vs {
  color: #666;
}

.light .tl-match-room__tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.light .tl-match-room__tab:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light .tl-match-room__tab--active {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.15) 0%, hsla(24, 100%, 50%, 0.08) 100%);
  border-color: hsla(24, 100%, 50%, 0.5);
  color: hsl(24, 100%, 45%);
}

.light .tl-match-room__veto {
  background: rgba(0, 0, 0, 0.03);
}

.light .tl-match-room__veto-title {
  color: #1a1a1a;
}

.light .tl-match-room__veto-status {
  color: #666;
}

.light .tl-match-room__veto-turn {
  color: #333;
}

.light .tl-match-room__countdown-value {
  color: hsl(24, 100%, 45%);
  text-shadow: 0 0 20px hsla(24, 100%, 50%, 0.3);
}

.light .tl-match-room__side-title {
  color: #333;
}

.light .tl-match-room__player-card {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__player-card:hover {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__player-card-index {
  color: #999;
  background: rgba(0, 0, 0, 0.05);
}

.light .tl-match-room__player-card-nick {
  color: #1a1a1a;
}

.light .tl-match-room__player-card-elo {
  color: #666;
}

.light .tl-match-room__map {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__map:hover {
  border-color: hsla(24, 100%, 50%, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light .tl-match-room__map--banned {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.light .tl-match-room__map--picked {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
  border-color: rgba(34, 197, 94, 0.4);
}

.light .tl-match-room__map-name {
  color: #1a1a1a;
}

.light .tl-match-room__map-name--banned {
  color: #999;
}

.light .tl-match-room__veto-log {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__veto-log-title {
  color: hsl(24, 100%, 45%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light .tl-match-room__veto-log-entry {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.light .tl-match-room__veto-log-num {
  color: #999;
}

.light .tl-match-room__veto-log-action {
  color: #666;
}

.light .tl-match-room__veto-log-map {
  color: #1a1a1a;
}

.light .tl-match-room__connect {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__connect-label {
  color: #666;
}

.light .tl-match-room__connect-string {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__live-updates {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__live-updates-title {
  color: #1a1a1a;
}

.light .tl-match-room__round {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light .tl-match-room__round-num {
  color: #999;
}

.light .tl-match-room__round-score {
  color: #666;
}

.light .tl-match-room__stats {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__stats-title {
  color: #1a1a1a;
}

.light .tl-match-room__stats-table th {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__stats-table td {
  color: #333;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.light .tl-match-room__stats-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.light .tl-match-room__stats-name {
  color: #1a1a1a;
}

.light .tl-match-room__connection-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .tl-match-room__connection-label {
  color: #666;
}

/* ============================================
   MATCH QUEUE STATUS
   ============================================ */

.tl-match-room__queue-status {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.tl-match-room__queue-icon {
  margin-bottom: 1.5rem;
}

.tl-loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 4px solid hsla(0, 0%, 100%, 0.1);
  border-top-color: hsl(24, 100%, 50%);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tl-match-room__queue-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(24, 100%, 50%);
  margin-bottom: 1rem;
}

.tl-match-room__queue-position {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.tl-match-room__queue-position strong {
  font-size: 1.5rem;
  color: hsl(24, 100%, 50%);
}

.tl-match-room__queue-message {
  font-size: 0.95rem;
  color: hsla(0, 0%, 100%, 0.7);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tl-match-room__queue-hint {
  font-size: 0.85rem;
  color: hsla(0, 0%, 100%, 0.5);
  font-style: italic;
}

/* Light mode queue status */
.light .tl-match-room__queue-title {
  color: hsl(24, 100%, 45%);
}

.light .tl-match-room__queue-position {
  color: #1a1a1a;
}

.light .tl-match-room__queue-message {
  color: #666;
}

.light .tl-match-room__queue-hint {
  color: #999;
}

.light .tl-loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: hsl(24, 100%, 50%);
}

/* Light mode scrollbar */
.light ::-webkit-scrollbar-track {
  background: #e8e8e8;
}

.light ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF6B00 0%, #cc5500 100%);
  border-color: #e8e8e8;
}

.light * {
  scrollbar-color: #FF6B00 #e8e8e8;
}

/* ============================================
   MATCH ADMIN STYLES
   ============================================ */

.tl-match-admin {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A0A0B 0%, #0D0D0F 50%, #0A0A0B 100%);
}

.tl-match-admin--modal-open {
  height: 100vh;
  overflow: hidden;
}

.tl-match-admin__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tl-match-admin__header {
  margin-bottom: 2rem;
}

.tl-match-admin__title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tl-match-admin__title .icon {
  color: hsl(24, 100%, 50%);
}

.tl-match-admin__subtitle {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 1rem;
}

/* League Cards */
.tl-match-admin__leagues {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tl-match-admin__leagues {
    grid-template-columns: repeat(3, 1fr);
  }
}

.league-card {
  background: linear-gradient(135deg, hsla(0, 0%, 10%, 0.8), hsla(0, 0%, 8%, 0.9));
  border: 1px solid hsla(24, 100%, 50%, 0.2);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.league-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.league-card:hover {
  border-color: hsla(24, 100%, 50%, 0.4);
  box-shadow: 0 0 25px hsla(24, 100%, 50%, 0.15);
  transform: translateY(-2px);
}

.league-card:hover::before {
  transform: scaleX(1);
}

.league-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.league-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(30, 100%, 45%));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.league-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.league-logo-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
}

.league-info {
  flex: 1;
}

.league-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.league-type {
  font-size: 0.8rem;
  font-weight: 600;
}

.league-type.ranked {
  color: hsl(140, 70%, 50%);
}

.league-type.practice {
  color: hsl(45, 100%, 55%);
}


/* Matches Panel */
.matches-panel {
  background: linear-gradient(135deg, hsla(0, 0%, 10%, 0.8), hsla(0, 0%, 8%, 0.9));
  border: 1px solid hsla(24, 100%, 50%, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.matches-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsla(24, 100%, 50%, 0.2);
  position: relative;
}

.matches-panel-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.matches-panel-header .header-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), transparent);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: hsla(0, 0%, 100%, 0.5);
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Matches List */
.matches-list {
  padding: 0.5rem;
}

.match-admin-item {
  padding: 1rem 1.25rem;
  margin: 0.5rem;
  background: hsla(0, 0%, 15%, 0.5);
  border: 1px solid hsla(0, 0%, 25%, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.match-admin-item:hover {
  background: hsla(0, 0%, 18%, 0.6);
  border-color: hsla(24, 100%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(0, 0%, 0%, 0.3);
}

.match-admin-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .match-admin-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.match-admin-info {
  flex: 1;
}

.match-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.status-badge-live {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.3), hsla(0, 70%, 40%, 0.2));
  color: hsl(0, 70%, 60%);
  border: 1px solid hsla(0, 70%, 50%, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 5px hsla(0, 70%, 50%, 0.3); }
  50% { box-shadow: 0 0 15px hsla(0, 70%, 50%, 0.6); }
}

.status-badge-veto {
  background: linear-gradient(135deg, hsla(270, 70%, 50%, 0.3), hsla(270, 70%, 40%, 0.2));
  color: hsl(270, 70%, 70%);
  border: 1px solid hsla(270, 70%, 50%, 0.5);
}

.status-badge-ready {
  background: linear-gradient(135deg, hsla(140, 70%, 45%, 0.3), hsla(140, 70%, 35%, 0.2));
  color: hsl(140, 70%, 60%);
  border: 1px solid hsla(140, 70%, 45%, 0.5);
}

.status-badge-upcoming {
  background: linear-gradient(135deg, hsla(210, 100%, 50%, 0.3), hsla(210, 100%, 40%, 0.2));
  color: hsl(210, 100%, 70%);
  border: 1px solid hsla(210, 100%, 50%, 0.5);
}

.status-badge-finished {
  background: linear-gradient(135deg, hsla(0, 0%, 50%, 0.3), hsla(0, 0%, 40%, 0.2));
  color: hsla(0, 0%, 100%, 0.6);
  border: 1px solid hsla(0, 0%, 50%, 0.5);
}

.status-badge-on_hold {
  background: linear-gradient(135deg, hsla(35, 100%, 50%, 0.3), hsla(25, 100%, 45%, 0.2));
  color: hsl(35, 100%, 65%);
  border: 1px solid hsla(35, 100%, 50%, 0.5);
  animation: hold-pulse 2s ease-in-out infinite;
}

@keyframes hold-pulse {
  0%, 100% { box-shadow: 0 0 5px hsla(35, 100%, 50%, 0.3); }
  50% { box-shadow: 0 0 12px hsla(35, 100%, 50%, 0.5); }
}

.status-badge-warmup {
  background: linear-gradient(135deg, hsla(45, 100%, 50%, 0.3), hsla(45, 100%, 40%, 0.2));
  color: hsl(45, 100%, 65%);
  border: 1px solid hsla(45, 100%, 50%, 0.5);
}

.admin-btn-warning {
  background: linear-gradient(135deg, hsl(35, 100%, 50%), hsl(25, 100%, 45%)) !important;
  color: #000 !important;
}

.admin-btn-warning:hover {
  background: linear-gradient(135deg, hsl(35, 100%, 55%), hsl(25, 100%, 50%)) !important;
}

.league-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(24, 100%, 50%);
  background: hsla(24, 100%, 50%, 0.1);
  border-radius: 4px;
}

.server-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: hsla(0, 0%, 100%, 0.5);
}


/* Match Teams Display */
.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.team-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-mini-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  background: hsla(0, 0%, 20%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.9rem;
}

.team-mini-logo.placeholder {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.3), hsla(24, 100%, 40%, 0.2));
  color: hsl(24, 100%, 50%);
}

.team-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-team-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.vs-text {
  color: hsla(0, 0%, 100%, 0.3);
  font-size: 0.9rem;
}

.match-time {
  font-size: 0.85rem;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Admin Actions */
.match-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.admin-btn-primary {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(30, 100%, 45%));
  color: #000;
}

.admin-btn-primary:hover {
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.4);
  transform: translateY(-2px);
}

.admin-btn-secondary {
  background: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 45%));
  color: #fff;
}

.admin-btn-secondary:hover {
  box-shadow: 0 0 20px hsla(210, 100%, 50%, 0.4);
  transform: translateY(-2px);
}

.admin-btn-gray {
  background: hsla(0, 0%, 30%, 0.5);
  color: hsla(0, 0%, 100%, 0.8);
  border: 1px solid hsla(0, 0%, 40%, 0.3);
}

.admin-btn-gray:hover {
  background: hsla(0, 0%, 35%, 0.6);
  color: #fff;
}


/* Admin Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay--substitute {
  background: hsla(225, 35%, 4%, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-modal {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg)));
  border: 1px solid hsla(24, 100%, 50%, 0.3);
  box-shadow: 0 0 50px hsla(24, 100%, 50%, 0.2);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.admin-modal--scrollable {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.admin-modal--substitute {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  clip-path: none;
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsla(24, 100%, 50%, 0.2);
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), transparent);
}

.admin-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
}

.admin-modal-header .text-sm,
.admin-modal-header p {
  color: hsl(var(--tl-text-muted));
}

.admin-modal-body {
  padding: 1.5rem;
}

.admin-modal-body--scrollable {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-modal-body--substitute {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Command Grid */
.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.command-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.command-btn:hover {
  transform: translateY(-2px);
}

.command-icon {
  font-size: 1.5rem;
}

.command-btn.pause {
  background: linear-gradient(135deg, hsl(45, 100%, 50%), hsl(40, 100%, 45%));
  color: #000;
}

.command-btn.pause:hover {
  box-shadow: 0 0 20px hsla(45, 100%, 50%, 0.4);
}

.command-btn.unpause {
  background: linear-gradient(135deg, hsl(140, 70%, 45%), hsl(140, 60%, 35%));
}

.command-btn.unpause:hover {
  box-shadow: 0 0 20px hsla(140, 70%, 45%, 0.4);
}

.command-btn.restore {
  background: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 45%));
}

.command-btn.restore:hover {
  box-shadow: 0 0 20px hsla(210, 100%, 50%, 0.4);
}

.command-btn.message {
  background: linear-gradient(135deg, hsl(270, 70%, 50%), hsl(280, 70%, 45%));
}

.command-btn.message:hover {
  box-shadow: 0 0 20px hsla(270, 70%, 50%, 0.4);
}

.command-btn.start {
  background: linear-gradient(135deg, hsl(250, 70%, 50%), hsl(260, 70%, 45%));
}

.command-btn.start:hover {
  box-shadow: 0 0 20px hsla(250, 70%, 50%, 0.4);
}

.command-btn.playout {
  background: linear-gradient(135deg, hsl(180, 70%, 45%), hsl(190, 70%, 40%));
}

.command-btn.playout:hover {
  box-shadow: 0 0 20px hsla(180, 70%, 45%, 0.4);
}

.command-btn.end-match {
  width: 100%;
  flex-direction: row;
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 70%, 40%));
  margin-bottom: 1rem;
}

.command-btn.end-match:hover {
  box-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
}

/* New unified button styles (no emoji) */
.command-btn--blue {
  background: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 45%));
}
.command-btn--blue:hover {
  box-shadow: 0 0 20px hsla(210, 100%, 50%, 0.4);
}

.command-btn--green {
  background: linear-gradient(135deg, hsl(140, 70%, 45%), hsl(140, 60%, 35%));
}
.command-btn--green:hover {
  box-shadow: 0 0 20px hsla(140, 70%, 45%, 0.4);
}

.command-btn--orange {
  background: linear-gradient(135deg, hsl(35, 100%, 50%), hsl(30, 100%, 45%));
  color: #000;
}
.command-btn--orange:hover {
  box-shadow: 0 0 20px hsla(35, 100%, 50%, 0.4);
}

.command-btn--purple {
  background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(280, 70%, 50%));
}
.command-btn--purple:hover {
  box-shadow: 0 0 20px hsla(270, 70%, 55%, 0.4);
}

.command-btn--cyan {
  background: linear-gradient(135deg, hsl(185, 70%, 45%), hsl(195, 70%, 40%));
}
.command-btn--cyan:hover {
  box-shadow: 0 0 20px hsla(185, 70%, 45%, 0.4);
}

.command-btn--red {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 70%, 40%));
}
.command-btn--red:hover {
  box-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
}

.command-btn--danger {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 70%, 40%));
}
.command-btn--danger:hover {
  box-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
}

.command-btn--full {
  width: 100%;
  flex-direction: row;
  margin-bottom: 1rem;
}

/* Admin section titles */
.admin-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: hsl(var(--tl-text-muted));
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-section-title--danger {
  color: hsl(0, 70%, 60%);
}

/* Command Result */
.command-result {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.command-result.success {
  background: hsla(140, 70%, 45%, 0.2);
  border: 1px solid hsla(140, 70%, 45%, 0.4);
  color: hsl(140, 70%, 60%);
}

.command-result.error {
  background: hsla(0, 70%, 50%, 0.2);
  border: 1px solid hsla(0, 70%, 50%, 0.4);
  color: hsl(0, 70%, 60%);
}

.close-modal-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--tl-text-muted));
  background: hsl(var(--tl-bg-elevated));
  border: 1px solid hsl(var(--tl-border));
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.close-modal-btn:hover {
  background: hsl(var(--tl-bg-secondary));
  color: hsl(var(--tl-text));
}

/* ============================================
   MODAL FORM STYLES
   ============================================ */

.tl-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tl-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-form-input,
.tl-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  background: hsla(0, 0%, 8%, 0.8);
  border: 1px solid hsla(0, 0%, 25%, 0.5);
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}

.tl-form-input:focus,
.tl-form-select:focus {
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
}

.tl-form-input::placeholder {
  color: hsla(0, 0%, 100%, 0.3);
}

.tl-form-select option {
  background: #121212;
  color: #fff;
}

.tl-form-hint {
  font-size: 0.7rem;
  color: hsla(0, 0%, 100%, 0.4);
  margin-top: -0.25rem;
}

/* Modal Actions */
.tl-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tl-modal-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tl-modal-btn--cancel {
  background: hsla(0, 0%, 20%, 0.8);
  color: hsla(0, 0%, 100%, 0.7);
  border: 1px solid hsla(0, 0%, 30%, 0.5);
}

.tl-modal-btn--cancel:hover {
  background: hsla(0, 0%, 25%, 0.9);
  color: #fff;
}

.tl-modal-btn--primary {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  color: #000;
}

.tl-modal-btn--primary:hover {
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.4);
  transform: translateY(-2px);
}

.tl-modal-btn--danger {
  background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 80%, 40%));
  color: #fff;
}

.tl-modal-btn--danger:hover {
  box-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
  transform: translateY(-2px);
}

/* Modal Text */
.tl-modal-text {
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tl-modal-text strong {
  color: hsl(24, 100%, 50%);
  font-weight: 700;
}

/* Danger Modal Header */
.admin-modal-header--danger {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.2), transparent);
  border-bottom-color: hsla(0, 70%, 50%, 0.3);
}

/* ============================================
   CREATE TEAM PAGE (mr-* classes)
   ============================================ */

.mr-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #0A0A0B 0%, #0D0D0F 50%, #0A0A0B 100%);
  color: #fff;
}

.mr-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.mr-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.mr-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%), hsl(24, 100%, 50%));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mr-title-shimmer 3s linear infinite;
}

@keyframes mr-title-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.mr-page-subtitle {
  font-size: 1.1rem;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Alert */
.mr-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.mr-alert--success {
  background: linear-gradient(135deg, hsla(140, 70%, 45%, 0.15), hsla(140, 60%, 35%, 0.1));
  border: 1px solid hsla(140, 70%, 45%, 0.3);
  color: hsl(140, 70%, 55%);
}

.mr-alert--error {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.15), hsla(0, 60%, 40%, 0.1));
  border: 1px solid hsla(0, 70%, 50%, 0.3);
  color: hsl(0, 70%, 65%);
}

.mr-alert__icon {
  font-size: 1.2rem;
}

/* Form Card */
.mr-card--form {
  position: relative;
  background: #121212;
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.mr-card--form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  opacity: 0.7;
}

.mr-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mr-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mr-form-required {
  color: hsl(24, 100%, 50%);
}

.mr-input-wrapper {
  position: relative;
}

.mr-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: #1C1C1C;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
  outline: none;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.mr-input::placeholder {
  color: hsla(0, 0%, 100%, 0.3);
}

.mr-input:focus {
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.2);
}

.mr-input-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), hsla(45, 100%, 55%, 0.05));
  transition: opacity 0.3s ease;
}

.mr-input:focus ~ .mr-input-glow {
  opacity: 1;
}

.mr-form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mr-form-hint {
  font-size: 0.8rem;
  color: hsla(0, 0%, 100%, 0.4);
}

.mr-form-hint-secondary {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.3);
  margin-top: 0.25rem;
}

.mr-form-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.5);
  font-family: monospace;
}

/* Logo Preview */
.mr-logo-preview {
  margin-top: 1rem;
}

.mr-logo-preview-image {
  width: 80px;
  height: 80px;
  margin-top: 0.5rem;
  padding: 4px;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  border-radius: 8px;
}

.mr-logo-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #121212;
  border-radius: 6px;
}

/* Info Box */
.mr-info-box {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(135deg, hsla(210, 80%, 50%, 0.08), hsla(210, 80%, 50%, 0.03));
  border: 1px solid hsla(210, 80%, 50%, 0.2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.mr-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(210, 80%, 50%), hsl(200, 80%, 60%));
  opacity: 0.5;
}

.mr-info-box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mr-info-box-icon {
  font-size: 1.1rem;
}

.mr-info-box-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(210, 80%, 65%);
}

.mr-info-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-info-box-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: hsla(210, 50%, 70%, 0.9);
}

.mr-info-box-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: hsl(210, 80%, 50%);
}

/* Form Actions */
.mr-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.05);
}

.mr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mr-btn--primary {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(35, 100%, 50%));
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 4px 20px hsla(24, 100%, 50%, 0.3);
}

.mr-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(24, 100%, 50%, 0.5);
}

.mr-btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.mr-btn-text {
  position: relative;
  z-index: 1;
}

.mr-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
  animation: mr-btn-shimmer 2s infinite;
}

@keyframes mr-btn-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.mr-btn--ghost {
  background: transparent;
  color: hsla(0, 0%, 100%, 0.6);
  padding: 0.875rem 1.25rem;
}

.mr-btn--ghost:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .mr-main {
    padding: 1.5rem 1rem;
  }

  .mr-page-title {
    font-size: 1.75rem;
  }

  .mr-card--form {
    padding: 1.5rem;
  }

  .mr-form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .mr-btn--primary {
    width: 100%;
  }
}

/* ============================================
   MY TEAM PAGE - LIGHT MODE
   ============================================ */

/* Light mode for my-team page */
.tl-myteam.light-mode {
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

.light-mode .tl-myteam__team-header {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.08) 0%, hsla(0, 0%, 98%, 0.95) 100%);
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .tl-myteam__team-name {
  background: linear-gradient(135deg, #1a1a1a 0%, hsl(24, 100%, 45%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-mode .tl-myteam__card {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.98) 0%, hsla(0, 0%, 96%, 0.95) 100%);
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .tl-myteam__card-title {
  color: #1a1a1a;
  border-bottom-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .tl-myteam__tab {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .tl-myteam__tab:hover {
  color: rgba(0, 0, 0, 0.8);
}

.light-mode .tl-myteam__tab--active {
  color: hsl(24, 100%, 45%);
}

.light-mode .tl-myteam__match-tab {
  color: rgba(0, 0, 0, 0.6);
  background: hsla(0, 0%, 90%, 0.8);
  border-color: hsla(0, 0%, 80%, 0.5);
}

.light-mode .tl-myteam__match-tab:hover {
  background: hsla(24, 100%, 50%, 0.1);
  color: rgba(0, 0, 0, 0.9);
}

.light-mode .tl-myteam__match-tab--active {
  color: hsl(24, 100%, 45%);
}

.light-mode .tl-myteam__member {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 96%, 0.95));
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .tl-myteam__member:hover {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.08), hsla(0, 0%, 98%, 0.95));
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .tl-myteam__member-name {
  color: #1a1a1a;
}

.light-mode .tl-myteam__member-role {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .tl-myteam__match-request,
.light-mode .tl-myteam__upcoming-match,
.light-mode .tl-myteam__completed-match {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 96%, 0.95));
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .tl-myteam__match-request:hover,
.light-mode .tl-myteam__upcoming-match:hover,
.light-mode .tl-myteam__completed-match:hover {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.06), hsla(0, 0%, 98%, 0.98));
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .tl-myteam__match-request-info,
.light-mode .tl-myteam__upcoming-match-teams,
.light-mode .tl-myteam__completed-match-teams {
  color: #1a1a1a;
}

.light-mode .tl-myteam__match-request-time,
.light-mode .tl-myteam__upcoming-match-time,
.light-mode .tl-myteam__completed-match-time {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .tl-myteam__management-title {
  color: #1a1a1a;
}

.light-mode .tl-myteam__management-member {
  background: hsla(0, 0%, 96%, 0.8);
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .tl-myteam__management-name {
  color: #1a1a1a;
}

.light-mode .tl-myteam__management-role {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .tl-myteam__label {
  color: rgba(0, 0, 0, 0.7);
}

.light-mode .tl-myteam__input {
  color: #1a1a1a;
  background: hsla(0, 0%, 98%, 0.9);
  border-color: hsla(0, 0%, 0%, 0.15);
}

.light-mode .tl-myteam__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.light-mode .tl-myteam__hint {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .tl-myteam__invitation {
  background: linear-gradient(135deg, hsla(45, 100%, 50%, 0.1), hsla(0, 0%, 98%, 0.9));
  border-color: hsla(45, 100%, 50%, 0.3);
}

.light-mode .tl-myteam__invitation-name {
  color: #1a1a1a;
}

.light-mode .tl-myteam__info-label {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .tl-myteam__info-value {
  color: #1a1a1a;
}

.light-mode .tl-myteam__alert--success {
  background: linear-gradient(135deg, hsla(140, 70%, 40%, 0.15), hsla(140, 60%, 45%, 0.1));
  color: hsl(140, 70%, 35%);
}

.light-mode .tl-myteam__alert--error {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.15), hsla(0, 60%, 45%, 0.1));
  color: hsl(0, 70%, 40%);
}

.light-mode .tl-myteam__empty {
  color: rgba(0, 0, 0, 0.5);
}

/* ============================================
   MATCH ADMIN PAGE - LIGHT MODE
   ============================================ */

.tl-match-admin.light-mode {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
}

.light-mode .tl-match-admin__title {
  color: #1a1a1a;
}

.light-mode .tl-match-admin__subtitle {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .league-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 96%, 0.98));
  border-color: hsla(24, 100%, 50%, 0.25);
}

.light-mode .league-card:hover {
  border-color: hsla(24, 100%, 50%, 0.5);
  box-shadow: 0 0 25px hsla(24, 100%, 50%, 0.15);
}

.light-mode .league-name {
  color: #1a1a1a;
}

.light-mode .matches-panel {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 96%, 0.98));
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .matches-panel-header {
  border-bottom-color: hsla(24, 100%, 50%, 0.2);
}

.light-mode .matches-panel-header h2 {
  color: #1a1a1a;
}

.light-mode .empty-state {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .match-admin-item {
  background: hsla(0, 0%, 96%, 0.8);
  border-color: hsla(0, 0%, 0%, 0.1);
}

.light-mode .match-admin-item:hover {
  background: hsla(0, 0%, 98%, 0.9);
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .match-team-name {
  color: #1a1a1a;
}

.light-mode .vs-text {
  color: rgba(0, 0, 0, 0.3);
}

.light-mode .match-time {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .server-badge {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .team-mini-logo {
  background: hsla(0, 0%, 90%, 0.8);
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .admin-btn-gray {
  background: hsla(0, 0%, 85%, 0.8);
  color: rgba(0, 0, 0, 0.8);
  border-color: hsla(0, 0%, 70%, 0.5);
}

.light-mode .admin-btn-gray:hover {
  background: hsla(0, 0%, 80%, 0.9);
  color: #1a1a1a;
}

.light-mode .admin-modal {
  background: linear-gradient(135deg, #fff, #f5f5f5);
  border-color: hsla(24, 100%, 50%, 0.3);
}

.light-mode .admin-modal-header {
  border-bottom-color: hsla(24, 100%, 50%, 0.2);
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.08), transparent);
}

.light-mode .admin-modal-header h3 {
  color: #1a1a1a;
}

.light-mode .command-result {
  color: #1a1a1a;
}

/* Modal Form - Light Mode */
.light-mode .tl-form-label,
.light .tl-form-label {
  color: rgba(0, 0, 0, 0.7);
}

.light-mode .tl-form-input,
.light-mode .tl-form-select,
.light .tl-form-input,
.light .tl-form-select {
  color: #1a1a1a;
  background: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.15);
}

.light-mode .tl-form-input:focus,
.light-mode .tl-form-select:focus,
.light .tl-form-input:focus,
.light .tl-form-select:focus {
  border-color: hsl(24, 100%, 50%);
  background: #fff;
}

.light-mode .tl-form-input::placeholder,
.light .tl-form-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .tl-form-select option,
.light .tl-form-select option {
  background: #fff;
  color: #1a1a1a;
}

.light-mode .tl-form-hint,
.light .tl-form-hint {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .tl-modal-btn--cancel,
.light .tl-modal-btn--cancel {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.light-mode .tl-modal-btn--cancel:hover,
.light .tl-modal-btn--cancel:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Modal text - Light Mode */
.light-mode .tl-modal-text,
.light .tl-modal-text {
  color: rgba(0, 0, 0, 0.7);
}

.light-mode .admin-modal-body,
.light .admin-modal-body {
  color: #333;
}

.light-mode .admin-modal-body p,
.light .admin-modal-body p {
  color: rgba(0, 0, 0, 0.7);
}

.light-mode .close-modal-btn,
.light .close-modal-btn {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.light-mode .close-modal-btn:hover,
.light .close-modal-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}

/* My Team Card text in light mode */
.light-mode .tl-myteam__card p,
.light .tl-myteam__card p {
  color: rgba(0, 0, 0, 0.6) !important;
}

.light-mode .tl-myteam__card-title,
.light .tl-myteam__card-title {
  color: #1a1a1a;
}

/* ============================================
   CREATE TEAM PAGE - LIGHT MODE
   ============================================ */

.mr-body.light-mode {
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
  color: #1a1a1a;
}

.light-mode .mr-page-title {
  background: linear-gradient(135deg, #1a1a1a, hsl(24, 100%, 45%), #1a1a1a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-mode .mr-page-subtitle {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .mr-card--form {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .mr-form-label {
  color: rgba(0, 0, 0, 0.8);
}

.light-mode .mr-input {
  color: #1a1a1a;
  background: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.15);
}

.light-mode .mr-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.light-mode .mr-input:focus {
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.15);
}

.light-mode .mr-form-hint {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .mr-form-hint-secondary {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .mr-form-counter {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .mr-info-box {
  background: linear-gradient(135deg, hsla(210, 80%, 50%, 0.08), hsla(210, 80%, 50%, 0.03));
  border-color: hsla(210, 80%, 50%, 0.25);
}

.light-mode .mr-info-box-title {
  color: hsl(210, 80%, 45%);
}

.light-mode .mr-info-box-list li {
  color: hsla(210, 50%, 35%, 0.9);
}

.light-mode .mr-info-box-list li::before {
  color: hsl(210, 80%, 45%);
}

.light-mode .mr-form-actions {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.light-mode .mr-btn--ghost {
  color: rgba(0, 0, 0, 0.6);
}

.light-mode .mr-btn--ghost:hover {
  color: #1a1a1a;
}

.light-mode .mr-alert--success {
  background: linear-gradient(135deg, hsla(140, 70%, 45%, 0.12), hsla(140, 60%, 35%, 0.08));
  border-color: hsla(140, 70%, 45%, 0.35);
  color: hsl(140, 70%, 30%);
}

.light-mode .mr-alert--error {
  background: linear-gradient(135deg, hsla(0, 70%, 50%, 0.12), hsla(0, 60%, 40%, 0.08));
  border-color: hsla(0, 70%, 50%, 0.35);
  color: hsl(0, 70%, 35%);
}

/* ============================================
   ARTICLES PAGE STYLES
   ============================================ */

/* Title Gradient */
.articles-title-gradient {
  background: linear-gradient(135deg, #FF5500, #FFAA00, #FF5500);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: articles-shimmer 3s linear infinite;
}

@keyframes articles-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Search */
.articles-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s ease;
}

.articles-search-container:focus-within {
  border-color: #FF5500;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.15);
}

.articles-search-icon {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.articles-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.articles-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.articles-search-clear {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF5500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.articles-search-clear:hover {
  color: #FFAA00;
}

/* Empty State */
.articles-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.articles-btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: linear-gradient(135deg, #FF5500, #FFAA00);
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.3s ease;
  text-decoration: none;
}

.articles-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(255, 85, 0, 0.4);
}

/* Section Title */
.articles-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Featured Article */
.articles-featured-card {
  position: relative;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.articles-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF5500, #FFAA00);
  z-index: 10;
}

.articles-featured-card:hover {
  border-color: rgba(255, 85, 0, 0.3);
  box-shadow: 0 20px 40px -10px rgba(255, 85, 0, 0.2);
  transform: translateY(-4px);
}

.articles-featured-image-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.articles-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.articles-featured-card:hover .articles-featured-image {
  transform: scale(1.05);
}

.articles-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.articles-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.articles-featured-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.articles-featured-card:hover .articles-featured-title {
  color: #FF5500;
}

.articles-featured-title-noimage {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  padding: 2rem 2rem 0;
  transition: color 0.3s ease;
}

.articles-featured-card:hover .articles-featured-title-noimage {
  color: #FF5500;
}

.articles-featured-excerpt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-featured-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.articles-featured-meta-noimage {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 2rem 2rem;
}

/* List Articles */
.articles-list-card {
  position: relative;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.articles-list-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FF5500, #FFAA00);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.articles-list-card:hover {
  border-color: rgba(255, 85, 0, 0.2);
  box-shadow: 0 10px 30px -5px rgba(255, 85, 0, 0.15);
  transform: translateX(4px);
}

.articles-list-card:hover::before {
  opacity: 1;
}

.articles-list-image-container {
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .articles-list-image-container {
    width: 33.333%;
    height: 140px;
  }
}

.articles-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.articles-list-card:hover .articles-list-image {
  transform: scale(1.05);
}

.articles-list-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.articles-list-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.articles-list-card:hover .articles-list-title {
  color: #FF5500;
}

.articles-list-excerpt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-list-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Pagination */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.articles-pagination-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: all 0.3s ease;
  text-decoration: none;
}

.articles-pagination-btn:hover:not(:disabled) {
  border-color: #FF5500;
  color: #FF5500;
}

.articles-pagination-btn:disabled,
.articles-pagination-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.articles-pagination-page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.articles-pagination-page:hover {
  border-color: #FF5500;
  color: #FF5500;
}

.articles-pagination-page--active {
  background: linear-gradient(135deg, #FF5500, #FFAA00);
  color: #000;
  border-color: transparent;
  font-weight: 700;
}

/* Light mode for articles */
.light-mode .articles-search-container {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .articles-search-input {
  color: #1a1a1a;
}

.light-mode .articles-search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .articles-search-icon {
  color: rgba(0, 0, 0, 0.4);
}

.light-mode .articles-empty-state {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .articles-featured-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .articles-featured-title-noimage {
  color: #1a1a1a;
}

.light-mode .articles-featured-meta-noimage {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .articles-list-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .articles-list-title {
  color: #1a1a1a;
}

.light-mode .articles-list-excerpt {
  color: rgba(0, 0, 0, 0.6);
}

.light-mode .articles-list-meta {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .articles-section-title {
  color: #1a1a1a;
}

.light-mode .articles-pagination-btn,
.light-mode .articles-pagination-page {
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .articles-pagination-btn:hover:not(:disabled),
.light-mode .articles-pagination-page:hover {
  border-color: #FF5500;
  color: #FF5500;
}


/* ========================================
   ARTICLE DETAIL PAGE STYLES
   ======================================== */

.article-detail-page {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  min-height: 100vh;
}

.article-detail-card {
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.05) 0%, rgba(17, 17, 17, 0.95) 100%);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  overflow: hidden;
  position: relative;
}

.article-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF5500, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.article-detail-image {
  height: 300px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .article-detail-image {
    height: 400px;
  }
}

.article-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-detail-card:hover .article-detail-image img {
  transform: scale(1.02);
}

.article-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
}

.article-meta-badge {
  background: rgba(255, 85, 0, 0.2);
  border: 1px solid rgba(255, 85, 0, 0.3);
  color: #FF5500;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.article-author {
  color: #9ca3af;
  font-size: 0.875rem;
}

.article-edit-button {
  background: transparent;
  border: 1px solid rgba(255, 85, 0, 0.5);
  color: #FF5500;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.article-edit-button:hover {
  background: rgba(255, 85, 0, 0.2);
}

.article-detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .article-detail-title {
    font-size: 2.5rem;
  }
}

.article-detail-excerpt {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.75;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid #FF5500;
  font-style: italic;
}

.article-detail-content {
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.8;
}

.article-detail-content h2 {
  color: #FF5500 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.3) !important;
}

.article-detail-content h3 {
  color: #FF5500 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.3) !important;
}

.article-detail-content h4 {
  color: #FF5500 !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.2) !important;
}

.article-detail-content strong,
.article-detail-content b {
  color: #FF5500 !important;
  font-weight: 700 !important;
}

.article-detail-content em,
.article-detail-content i:not(.fas):not(.fab):not(.far):not(.fa) {
  color: #FF7700 !important;
  font-style: italic;
}

.article-detail-content mark {
  background: rgba(255, 85, 0, 0.3) !important;
  color: #FF5500 !important;
  font-weight: 700 !important;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.article-detail-content p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

.article-detail-content a {
  color: #FF5500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-detail-content a:hover {
  color: #FF7700;
}

.article-detail-content ul,
.article-detail-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-detail-content li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.article-detail-content blockquote {
  border-left: 3px solid #FF5500;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #9ca3af;
}

.article-detail-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.article-detail-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 85, 0, 0.2);
}

.article-footer-link {
  color: #FF5500;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.article-footer-link:hover {
  color: #FF7700;
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

.article-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.2) 0%, rgba(255, 119, 0, 0.1) 100%);
  border: 1px solid rgba(255, 85, 0, 0.4);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.article-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.article-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.article-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

@media (min-width: 768px) {
  .article-cta-title {
    font-size: 1.75rem;
  }
}

.article-cta-text {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.article-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #FF5500 0%, #FF7700 100%);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.article-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.article-cta-button:hover::before {
  left: 100%;
}

.article-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.4);
}

.article-cta-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.3) 0%, transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* Light mode for article detail - body has both classes */
.article-detail-page.light-mode {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.article-detail-page.light-mode .article-detail-card {
  background: #ffffff !important;
  border-color: rgba(255, 85, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-detail-page.light-mode .article-detail-card::before {
  background: linear-gradient(90deg, transparent, #FF5500, transparent);
}

.article-detail-page.light-mode .article-image-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 50%);
}

.article-detail-page.light-mode .article-meta-badge {
  background: rgba(255, 85, 0, 0.1);
  border-color: rgba(255, 85, 0, 0.3);
  color: #FF5500;
}

.article-detail-page.light-mode .article-detail-title {
  color: #1a1a1a !important;
  text-shadow: none;
}

.article-detail-page.light-mode .article-detail-excerpt {
  color: #4b5563;
  border-left-color: #FF5500;
}

.article-detail-page.light-mode .article-detail-content {
  color: #374151;
}

.article-detail-page.light-mode .article-detail-content h2 {
  color: #FF5500 !important;
  border-bottom-color: rgba(255, 85, 0, 0.4) !important;
}

.article-detail-page.light-mode .article-detail-content h3 {
  color: #FF5500 !important;
  border-bottom-color: rgba(255, 85, 0, 0.4) !important;
}

.article-detail-page.light-mode .article-detail-content h4 {
  color: #FF5500 !important;
  border-bottom-color: rgba(255, 85, 0, 0.3) !important;
}

.article-detail-page.light-mode .article-detail-content strong,
.article-detail-page.light-mode .article-detail-content b {
  color: #FF5500 !important;
}

.article-detail-page.light-mode .article-detail-content em,
.article-detail-page.light-mode .article-detail-content i:not(.fas):not(.fab):not(.far):not(.fa) {
  color: #E64A00 !important;
}

.article-detail-page.light-mode .article-detail-content p {
  color: #4b5563;
}

.article-detail-page.light-mode .article-detail-content li {
  color: #4b5563;
}

.article-detail-page.light-mode .article-detail-content a {
  color: #FF5500;
}

.article-detail-page.light-mode .article-detail-content a:hover {
  color: #E64A00;
}

.article-detail-page.light-mode .article-detail-content blockquote {
  color: #6b7280;
  border-left-color: #FF5500;
  background: rgba(255, 85, 0, 0.05);
}

.article-detail-page.light-mode .article-detail-content img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-detail-page.light-mode .article-detail-footer {
  border-top-color: rgba(255, 85, 0, 0.2);
}

.article-detail-page.light-mode .article-author {
  color: #6b7280;
}

.article-detail-page.light-mode .article-edit-button {
  border-color: rgba(255, 85, 0, 0.5);
  color: #FF5500;
}

.article-detail-page.light-mode .article-edit-button:hover {
  background: rgba(255, 85, 0, 0.1);
}

.article-detail-page.light-mode .article-footer-link {
  color: #FF5500;
}

.article-detail-page.light-mode .article-footer-link:hover {
  color: #E64A00;
}

.article-detail-page.light-mode .article-cta {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.08) 0%, rgba(255, 119, 0, 0.03) 100%);
  border-color: rgba(255, 85, 0, 0.2);
}

.article-detail-page.light-mode .article-cta-title {
  color: #1a1a1a;
}

.article-detail-page.light-mode .article-cta-text {
  color: #4b5563;
}

.article-detail-page.light-mode .article-detail-content mark {
  background: rgba(255, 85, 0, 0.15);
  color: #E64A00;
}

/* ========================================
   ARTICLE EDITOR PAGE STYLES
   ======================================== */

.article-editor-page {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%);
  min-height: 100vh;
}

.article-editor-header {
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 85, 0, 0.3);
  backdrop-filter: blur(10px);
}

.editor-admin-badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff5500, #ff8c00);
  color: black;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  animation: shimmer-badge 2s infinite;
}

@keyframes shimmer-badge {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.editor-nav-link-back {
  color: #999;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.editor-nav-link-back:hover {
  color: #ff5500;
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

.editor-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff5500;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

.editor-logout-btn {
  font-size: 0.875rem;
  padding: 4px 12px;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff4444;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.editor-logout-btn:hover {
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.editor-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff5500, #ff8c00, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.editor-subtitle {
  color: #888;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.editor-form-container {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: 12px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 0 30px rgba(255, 85, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.editor-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ff5500;
  margin-bottom: 0.75rem;
}

.editor-form-label-small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 0.5rem;
}

.editor-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.editor-input:focus {
  outline: none;
  border-color: #ff5500;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.editor-input::placeholder {
  color: #555;
}

.editor-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s ease;
}

.editor-textarea:focus {
  outline: none;
  border-color: #ff5500;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.editor-textarea::placeholder {
  color: #555;
}

.editor-file-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
}

.editor-file-input::file-selector-button {
  padding: 8px 16px;
  margin-right: 16px;
  background: linear-gradient(135deg, #ff5500, #ff8c00);
  border: none;
  border-radius: 4px;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-file-input::file-selector-button:hover {
  filter: brightness(1.1);
}

.editor-form-hint {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
}

.editor-url-section {
  border-top: 1px solid rgba(255, 85, 0, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.editor-image-preview {
  max-width: 200px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 85, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.editor-toolbar-btn {
  padding: 6px 12px;
  font-size: 0.875rem;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 4px;
  color: #ff5500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-toolbar-btn:hover {
  background: rgba(255, 85, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

.editor-toolbar-btn-highlight {
  background: rgba(255, 85, 0, 0.3);
  color: white;
}

.editor-toolbar-btn-link {
  background: rgba(0, 100, 255, 0.2);
  border-color: rgba(0, 100, 255, 0.5);
  color: #66b3ff;
}

.editor-toolbar-btn-link:hover {
  background: rgba(0, 100, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 100, 255, 0.3);
}

.editor-toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 85, 0, 0.3);
  margin: 0 4px;
  align-self: center;
}

.editor-content-textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: white;
  font-family: monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 400px;
  transition: all 0.3s ease;
}

.editor-content-textarea:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.editor-content-textarea::placeholder {
  color: #555;
}

.editor-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ff5500;
  cursor: pointer;
}

.editor-checkbox-label {
  margin-left: 10px;
  font-size: 0.875rem;
  color: #ccc;
}

.editor-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 85, 0, 0.2);
}

.editor-cancel-link {
  color: #888;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.editor-cancel-link:hover {
  color: #ff5500;
}

.editor-submit-btn {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff5500, #ff8c00);
  border: none;
  color: black;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.editor-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer-btn 2s infinite;
}

@keyframes shimmer-btn {
  0% { left: -100%; }
  100% { left: 100%; }
}

.editor-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.4);
}

.editor-preview-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: white;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.editor-tips-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.1), rgba(255, 140, 0, 0.05));
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 12px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.editor-tips-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff5500;
  margin-bottom: 1rem;
}

.editor-tips-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ff8c00;
  margin-bottom: 0.75rem;
}

.editor-tips-list {
  font-size: 0.875rem;
  color: #aaa;
  list-style: none;
  padding: 0;
}

.editor-tips-list li {
  margin-bottom: 0.5rem;
}

.editor-tips-list strong {
  color: #ff5500;
}

.article-editor-footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(255, 85, 0, 0.2);
  margin-top: 3rem;
}

.editor-warning-box {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

.editor-warning-title {
  color: #ffaa00;
  font-weight: 600;
  font-size: 0.875rem;
}

.editor-warning-text {
  color: #cca300;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Light mode for article editor - body has both classes */
.article-editor-page.light-mode {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f5f5f5 100%) !important;
}

.article-editor-page.light-mode .article-editor-header {
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom-color: rgba(255, 85, 0, 0.2);
}

.article-editor-page.light-mode .editor-nav-link-back {
  color: #666;
}

.article-editor-page.light-mode .editor-nav-link-back:hover {
  color: #ff5500;
}

.article-editor-page.light-mode .editor-logout-btn {
  background: rgba(255, 0, 0, 0.1);
  color: #cc0000;
}

.article-editor-page.light-mode .editor-subtitle {
  color: #666;
}

.article-editor-page.light-mode .editor-form-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.98)) !important;
  border-color: rgba(255, 85, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-editor-page.light-mode .editor-input {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 85, 0, 0.2);
  color: #1a1a1a !important;
}

.article-editor-page.light-mode .editor-input::placeholder {
  color: #999;
}

.article-editor-page.light-mode .editor-textarea {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 85, 0, 0.2);
  color: #1a1a1a !important;
}

.article-editor-page.light-mode .editor-textarea::placeholder {
  color: #999;
}

.article-editor-page.light-mode .editor-file-input {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 85, 0, 0.2);
  color: #1a1a1a !important;
}

.article-editor-page.light-mode .editor-form-hint {
  color: #888;
}

.article-editor-page.light-mode .editor-toolbar {
  background: rgba(245, 245, 245, 0.95) !important;
  border-color: rgba(255, 85, 0, 0.2);
}

.article-editor-page.light-mode .editor-toolbar-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 85, 0, 0.3);
  color: #333 !important;
}

.article-editor-page.light-mode .editor-content-textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 85, 0, 0.2);
  color: #1a1a1a !important;
}

.article-editor-page.light-mode .editor-content-textarea::placeholder {
  color: #999;
}

.article-editor-page.light-mode .editor-checkbox-label {
  color: #444;
}

.article-editor-page.light-mode .editor-form-actions {
  border-top-color: rgba(255, 85, 0, 0.15);
}

.article-editor-page.light-mode .editor-cancel-link {
  color: #666;
}

.article-editor-page.light-mode .editor-tips-container {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.05), rgba(255, 140, 0, 0.02)) !important;
  border-color: rgba(255, 85, 0, 0.2);
}

.article-editor-page.light-mode .editor-tips-list {
  color: #555;
}

.article-editor-page.light-mode .article-editor-footer {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top-color: rgba(255, 85, 0, 0.15);
}

.article-editor-page.light-mode .editor-warning-box {
  background: rgba(255, 170, 0, 0.08) !important;
}

.article-editor-page.light-mode .editor-warning-text {
  color: #996600;
}

/* ========================================
   ADMIN ARTICLES PAGE STYLES
   ======================================== */

.admin-articles-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0A0A0B 0%, #0D0D0F 50%, #0A0A0B 100%);
  color: #fff;
}

.admin-articles-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-articles-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-articles-page-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff5500, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-articles-page-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.admin-articles-new-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff5500, #ff8c00);
  border: none;
  color: #000;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-articles-new-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer-btn 2s infinite;
}

.admin-articles-new-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.4);
}

/* Alert Messages */
.admin-articles-alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-articles-alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.admin-articles-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Table */
.admin-articles-table-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.admin-articles-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 85, 0, 0.1);
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}

.admin-articles-table-th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff5500;
}

.admin-articles-table-body {
  display: flex;
  flex-direction: column;
}

.admin-articles-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.1);
  transition: all 0.3s ease;
}

.admin-articles-table-row:hover {
  background: rgba(255, 85, 0, 0.05);
}

.admin-articles-table-row:last-child {
  border-bottom: none;
}

.admin-articles-table-td {
  display: flex;
  align-items: center;
}

.admin-articles-title-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.admin-articles-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.admin-articles-excerpt-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-articles-author {
  font-size: 0.875rem;
  color: #fff;
}

.admin-articles-status {
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
}

.admin-articles-status-published {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.admin-articles-status-draft {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.admin-articles-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-articles-actions-cell {
  gap: 1rem;
}

.admin-articles-action-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
}

.admin-articles-edit {
  color: #ff5500;
}

.admin-articles-edit:hover {
  color: #ff8c00;
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

.admin-articles-delete {
  color: #ef4444;
}

.admin-articles-delete:hover {
  color: #f87171;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Empty State */
.admin-articles-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: 12px;
}

.admin-articles-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.admin-articles-empty-text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

/* Modal */
.admin-articles-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.admin-articles-modal-overlay.active {
  display: flex;
}

.admin-articles-modal {
  background: linear-gradient(135deg, #0D0D0F, #111);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.admin-articles-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-articles-modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.admin-articles-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.admin-articles-modal-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-articles-modal-body {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.admin-articles-modal-article-title {
  font-weight: 700;
  color: #ff5500;
}

.admin-articles-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-articles-modal-btn-cancel {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-articles-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-articles-modal-btn-delete {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-articles-modal-btn-delete:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .admin-articles-table-header,
  .admin-articles-table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .admin-articles-table-th:not(:first-child) {
    display: none;
  }

  .admin-articles-table-td {
    padding: 0.25rem 0;
  }

  .admin-articles-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Light mode for admin articles */
.admin-articles-page.light-mode {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 50%, #f5f5f5 100%) !important;
}

.admin-articles-page.light-mode .admin-articles-page-subtitle {
  color: #666;
}

.admin-articles-page.light-mode .admin-articles-table-container {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 85, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-articles-page.light-mode .admin-articles-table-header {
  background: rgba(255, 85, 0, 0.08);
}

.admin-articles-page.light-mode .admin-articles-table-row {
  border-bottom-color: rgba(255, 85, 0, 0.1);
}

.admin-articles-page.light-mode .admin-articles-table-row:hover {
  background: rgba(255, 85, 0, 0.05);
}

.admin-articles-page.light-mode .admin-articles-title-text {
  color: #1a1a1a;
}

.admin-articles-page.light-mode .admin-articles-excerpt-text {
  color: #666;
}

.admin-articles-page.light-mode .admin-articles-author {
  color: #333;
}

.admin-articles-page.light-mode .admin-articles-date {
  color: #666;
}

.admin-articles-page.light-mode .admin-articles-empty-state {
  background: rgba(255, 255, 255, 0.95);
}

.admin-articles-page.light-mode .admin-articles-empty-title {
  color: #1a1a1a;
}

.admin-articles-page.light-mode .admin-articles-empty-text {
  color: #666;
}

.admin-articles-page.light-mode .admin-articles-modal {
  background: linear-gradient(135deg, #fff, #f5f5f5);
  border-color: rgba(255, 85, 0, 0.2);
}

.admin-articles-page.light-mode .admin-articles-modal-title {
  color: #1a1a1a;
}

.admin-articles-page.light-mode .admin-articles-modal-subtitle {
  color: #666;
}

.admin-articles-page.light-mode .admin-articles-modal-body {
  color: #333;
}

.admin-articles-page.light-mode .admin-articles-modal-btn-cancel {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.admin-articles-page.light-mode .admin-articles-alert-success {
  background: rgba(34, 197, 94, 0.1);
}

.admin-articles-page.light-mode .admin-articles-alert-error {
  background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   MATCH CARD V2 - ENHANCED TIP BOXES
   ============================================ */

.tl-match-card-v2 {
  position: relative;
  background: linear-gradient(145deg, #121218, #0a0a0e);
  border: 1px solid hsla(24, 100%, 50%, 0.15);
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

.tl-match-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    hsl(24, 100%, 50%),
    hsl(45, 100%, 55%),
    hsl(24, 100%, 50%)
  );
  background-size: 200% 100%;
  animation: gradient-flow-v2 3s linear infinite;
}

@keyframes gradient-flow-v2 {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.tl-match-card-v2__bg-effect {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, hsla(24, 100%, 50%, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: bg-pulse-v2 4s ease-in-out infinite;
}

@keyframes bg-pulse-v2 {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(5deg); }
}

.tl-match-card-v2:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: hsla(24, 100%, 50%, 0.4);
  box-shadow:
    0 20px 50px hsla(24, 100%, 50%, 0.2),
    0 0 0 1px hsla(24, 100%, 50%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.05);
}

.tl-match-card-v2--locked {
  opacity: 0.9;
}

.tl-match-card-v2--locked::before {
  background: linear-gradient(90deg, #444, #666, #444);
}

/* Match Status Badge V2 */
.tl-match-card-v2__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  z-index: 10;
}

.tl-match-card-v2__status--live {
  background: linear-gradient(135deg, #ff3333, #cc0000);
  color: #fff;
  animation: live-glow-v2 1.5s ease-in-out infinite;
}

@keyframes live-glow-v2 {
  0%, 100% { box-shadow: 0 0 10px hsla(0, 100%, 50%, 0.5); }
  50% { box-shadow: 0 0 25px hsla(0, 100%, 50%, 0.8), 0 0 40px hsla(0, 100%, 50%, 0.4); }
}

.tl-match-card-v2__status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: dot-pulse-v2 1s ease-in-out infinite;
}

@keyframes dot-pulse-v2 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tl-match-card-v2__status--finished {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* Match Header V2 */
.tl-match-card-v2__header {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.tl-match-card-v2__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.15), hsla(0, 0%, 20%, 0.5));
  border: 1px solid hsla(24, 100%, 50%, 0.25);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-match-card-v2__league {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(24, 100%, 55%);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tl-match-card-v2__league:hover {
  color: hsl(24, 100%, 65%);
}

.tl-match-card-v2__separator {
  color: hsla(0, 0%, 100%, 0.3);
  font-size: 0.6rem;
}

.tl-match-card-v2__date-wrapper {
  display: inline-block;
  position: relative;
}

.tl-match-card-v2__date {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: hsla(0, 0%, 100%, 0.8);
}


/* Teams Container */
.tl-match-card-v2__teams {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Team Box - The Star of the Show */
.tl-team-box {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem;
  background: linear-gradient(145deg, #1a1a22, #0e0e12);
  border: 2px solid hsla(0, 0%, 30%, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  overflow: hidden;
}

.tl-team-box--right {
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}

.tl-team-box__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, hsla(24, 100%, 50%, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tl-team-box:hover:not(:disabled) .tl-team-box__glow {
  opacity: 1;
}

.tl-team-box:hover:not(:disabled) {
  border-color: hsla(24, 100%, 50%, 0.5);
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px hsla(24, 100%, 50%, 0.15),
    inset 0 1px 0 hsla(255, 255, 255, 0.1);
}

.tl-team-box:disabled {
  cursor: default;
}

/* Selected State */
.tl-team-box--selected {
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.2), hsla(45, 100%, 50%, 0.1));
  border-color: hsl(24, 100%, 50%);
  box-shadow:
    0 0 25px hsla(24, 100%, 50%, 0.25),
    inset 0 0 20px hsla(24, 100%, 50%, 0.1);
}

.tl-team-box--selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
}

.tl-team-box--selected .tl-team-box__glow {
  opacity: 1;
  background: radial-gradient(circle at 50% 100%, hsla(24, 100%, 50%, 0.2), transparent 50%);
}

/* Winner State */
.tl-team-box--winner {
  background: linear-gradient(145deg, hsla(140, 70%, 40%, 0.25), hsla(140, 80%, 30%, 0.15));
  border-color: hsl(140, 70%, 45%);
  box-shadow: 0 0 20px hsla(140, 70%, 50%, 0.2);
}

.tl-team-box--winner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Team Box Content */
.tl-team-box__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tl-team-box__rank-badge {
  padding: 0.25rem 0.625rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.6);
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.tl-team-box--selected .tl-team-box__rank-badge {
  background: hsla(24, 100%, 50%, 0.2);
  border-color: hsla(24, 100%, 50%, 0.4);
  color: hsl(24, 100%, 60%);
}

.tl-team-box__name {
  font-size: clamp(0.65rem, 2.5vw, 0.9rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  transition: all 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  padding: 0 0.25rem;
}

.tl-team-box--selected .tl-team-box__name {
  background: linear-gradient(135deg, hsl(24, 100%, 55%), hsl(45, 100%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-team-box__hint {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.4);
  transition: color 0.3s ease;
}

.tl-team-box:hover .tl-team-box__hint {
  color: hsl(24, 100%, 55%);
}

.tl-team-box--selected .tl-team-box__hint {
  color: hsl(24, 100%, 60%);
}


.tl-team-box__winner-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  animation: winner-pulse 2s ease-in-out infinite;
}

@keyframes winner-pulse {
  0%, 100% { box-shadow: 0 0 10px hsla(140, 70%, 50%, 0.4); }
  50% { box-shadow: 0 0 20px hsla(140, 70%, 50%, 0.7); }
}

.tl-team-box__selected-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(24, 100%, 60%);
  background: hsla(24, 100%, 50%, 0.15);
  border: 1px solid hsla(24, 100%, 50%, 0.3);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* Percent Display */
.tl-team-box__percent {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
}

.tl-team-box__percent-value {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-team-box--selected .tl-team-box__percent-value {
  background: linear-gradient(135deg, hsl(24, 100%, 55%), hsl(45, 100%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* VS Separator */
.tl-match-card-v2__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.tl-match-card-v2__vs-text {
  font-size: 0.875rem;
  font-weight: 900;
  color: hsla(0, 0%, 100%, 0.3);
  text-shadow: 0 0 10px hsla(24, 100%, 50%, 0.3);
}

.tl-match-card-v2__vs-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, hsl(24, 100%, 50%), transparent);
  margin-top: 0.5rem;
}

/* Points Table V2 */
.tl-match-card-v2__points {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.tl-points-table {
  background: linear-gradient(145deg, hsla(0, 0%, 15%, 0.5), hsla(0, 0%, 10%, 0.8));
  border: 1px solid hsla(24, 100%, 50%, 0.15);
  padding: 1rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tl-points-table__header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(24, 100%, 55%);
  text-align: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsla(24, 100%, 50%, 0.2);
}

.tl-points-table__grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-points-table__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.375rem 0;
}

.tl-points-table__team {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsla(0, 0%, 100%, 0.7);
  text-transform: uppercase;
}

.tl-points-table__win {
  font-size: 0.8rem;
  font-weight: 800;
  color: #22c55e;
  text-shadow: 0 0 8px hsla(140, 70%, 50%, 0.4);
  min-width: 50px;
  text-align: center;
}

.tl-points-table__loss {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ef4444;
  text-shadow: 0 0 8px hsla(0, 70%, 50%, 0.4);
  min-width: 50px;
  text-align: center;
}

/* Progress Bar V2 */
.tl-match-card-v2__stats {
  padding-top: 1rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.05);
  position: relative;
  z-index: 1;
}

.tl-progress-bar-v2 {
  display: flex;
  height: 24px;
  background: hsla(0, 0%, 10%, 0.5);
  overflow: hidden;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  margin-bottom: 0.75rem;
}

.tl-progress-bar-v2__fill {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tl-progress-bar-v2__fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(255, 255, 255, 0.2), transparent);
  animation: progress-shimmer-v2 2s ease-in-out infinite;
}

@keyframes progress-shimmer-v2 {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}


.tl-progress-bar-v2__fill--a {
  background: linear-gradient(90deg, hsl(210, 80%, 50%), hsl(210, 70%, 45%));
  box-shadow: inset 0 1px 0 hsla(255, 255, 255, 0.2);
}

.tl-progress-bar-v2__fill--b {
  background: linear-gradient(90deg, hsl(0, 70%, 45%), hsl(0, 60%, 40%));
  box-shadow: inset 0 1px 0 hsla(255, 255, 255, 0.2);
}

.tl-progress-bar-v2__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
  padding: 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tl-match-card-v2__total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.5);
}

.tl-match-card-v2__total-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tl-match-card-v2__total-btn:hover {
  color: hsl(24, 100%, 60%);
  transform: translateY(-1px);
}

.tl-match-card-v2__total-btn:focus-visible {
  outline: 2px solid hsla(24, 100%, 50%, 0.5);
  outline-offset: 4px;
}

.tl-prediction-modal-overlay {
  align-items: center;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.tl-prediction-modal {
  width: min(980px, 100%);
  max-width: 980px;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
}

.tl-prediction-modal__body,
.tl-prediction-modal__content,
.tl-prediction-group__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tl-prediction-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tl-prediction-modal__content {
  min-height: 0;
}

.tl-prediction-modal__summary {
  padding: 0.875rem 1rem;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid hsla(24, 100%, 50%, 0.16);
  color: hsl(var(--tl-text-muted));
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.tl-prediction-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.tl-prediction-group {
  padding: 1rem;
  background: linear-gradient(145deg, hsla(0, 0%, 100%, 0.03), hsla(0, 0%, 100%, 0.01));
  border: 1px solid hsla(var(--tl-border), 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  max-height: min(56vh, 560px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tl-prediction-group--a {
  border-color: hsla(210, 80%, 55%, 0.35);
}

.tl-prediction-group--b {
  border-color: hsla(0, 70%, 55%, 0.35);
}

.tl-prediction-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsla(var(--tl-border), 0.45);
  flex-shrink: 0;
}

.tl-prediction-group__header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(var(--tl-text));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-prediction-group__header span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--tl-text-muted));
  flex-shrink: 0;
}

.tl-prediction-group__list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}

.tl-prediction-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: hsla(0, 0%, 100%, 0.035);
  border: 1px solid hsla(var(--tl-border), 0.4);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  min-width: 0;
}

.tl-prediction-user__avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.22), hsla(45, 100%, 55%, 0.1));
  border: 1px solid hsla(24, 100%, 50%, 0.3);
  color: hsl(var(--tl-text));
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.tl-prediction-user__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-prediction-user__meta {
  min-width: 0;
  overflow: hidden;
}

.tl-prediction-user__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--tl-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-prediction-group__empty,
.tl-prediction-modal__state {
  margin: 0;
  padding: 0.875rem 1rem;
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid hsla(var(--tl-border), 0.35);
  color: hsl(var(--tl-text-muted));
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.tl-prediction-modal__state--error {
  border-color: hsla(0, 70%, 55%, 0.35);
  color: hsl(0, 70%, 65%);
}

.tl-prediction-modal__footer {
  padding-top: 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tl-prediction-modal {
    max-height: calc(100vh - 1.5rem);
  }

  .tl-prediction-modal__grid {
    grid-template-columns: 1fr;
  }

  .tl-prediction-group {
    max-height: min(36vh, 420px);
  }
}

.tl-match-card-v2__total-icon {
  font-size: 0.875rem;
}

/* ============================================
   MATCH CARD V2 - LIGHT MODE
   ============================================ */

body.light-mode .tl-match-card-v2 {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-color: hsla(24, 100%, 50%, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .tl-match-card-v2:hover {
  box-shadow:
    0 20px 50px hsla(24, 100%, 50%, 0.15),
    0 0 0 1px hsla(24, 100%, 50%, 0.3);
}

body.light-mode .tl-match-card-v2__bg-effect {
  background: radial-gradient(ellipse, hsla(24, 100%, 50%, 0.04) 0%, transparent 70%);
}

body.light-mode .tl-match-card-v2__meta {
  background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.1), hsla(0, 0%, 95%, 0.8));
  border-color: hsla(24, 100%, 50%, 0.2);
}

body.light-mode .tl-match-card-v2__league {
  color: hsl(24, 100%, 45%);
}

body.light-mode .tl-match-card-v2__separator {
  color: hsla(0, 0%, 0%, 0.3);
}

body.light-mode .tl-match-card-v2__date {
  color: #333;
}

body.light-mode .tl-team-box {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-color: hsla(0, 0%, 70%, 0.3);
}

body.light-mode .tl-team-box:hover:not(:disabled) {
  border-color: hsla(24, 100%, 50%, 0.6);
  box-shadow:
    0 10px 30px hsla(24, 100%, 50%, 0.1),
    inset 0 1px 0 hsla(255, 255, 255, 0.8);
}

body.light-mode .tl-team-box--selected {
  background: linear-gradient(145deg, hsla(24, 100%, 50%, 0.15), hsla(45, 100%, 50%, 0.08));
  border-color: hsl(24, 100%, 50%);
}

body.light-mode .tl-team-box--winner {
  background: linear-gradient(145deg, hsla(140, 70%, 50%, 0.15), hsla(140, 80%, 40%, 0.1));
  border-color: hsl(140, 70%, 45%);
}

body.light-mode .tl-team-box__rank-badge {
  color: #666;
  background: hsla(0, 0%, 0%, 0.05);
  border-color: hsla(0, 0%, 0%, 0.1);
}

body.light-mode .tl-team-box--selected .tl-team-box__rank-badge {
  background: hsla(24, 100%, 50%, 0.15);
  border-color: hsla(24, 100%, 50%, 0.3);
  color: hsl(24, 100%, 45%);
}

body.light-mode .tl-team-box__name {
  color: #1a1a1a;
}

body.light-mode .tl-team-box--selected .tl-team-box__name {
  background: linear-gradient(135deg, hsl(24, 100%, 45%), hsl(45, 100%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .tl-team-box__hint {
  color: #888;
}

body.light-mode .tl-team-box:hover .tl-team-box__hint {
  color: hsl(24, 100%, 45%);
}

body.light-mode .tl-team-box__percent-value {
  background: linear-gradient(135deg, #333, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .tl-team-box--selected .tl-team-box__percent-value {
  background: linear-gradient(135deg, hsl(24, 100%, 45%), hsl(45, 100%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .tl-match-card-v2__vs-text {
  color: #aaa;
}

body.light-mode .tl-points-table {
  background: linear-gradient(145deg, hsla(0, 0%, 95%, 0.8), hsla(0, 0%, 90%, 0.9));
  border-color: hsla(24, 100%, 50%, 0.15);
}

body.light-mode .tl-points-table__team {
  color: #444;
}

body.light-mode .tl-match-card-v2__stats {
  border-top-color: hsla(0, 0%, 0%, 0.08);
}

body.light-mode .tl-progress-bar-v2 {
  background: hsla(0, 0%, 90%, 0.8);
}

body.light-mode .tl-match-card-v2__total {
  color: #666;
}

body.light-mode .tl-match-card-v2__total-btn:hover {
  color: hsl(24, 100%, 45%);
}

body.light-mode .tl-prediction-modal__summary {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
}

body.light-mode .tl-prediction-group {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.9));
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tl-prediction-group__header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tl-prediction-group__header h4,
body.light-mode .tl-prediction-user__name {
  color: #1a1a1a;
}

body.light-mode .tl-prediction-group__header span,
body.light-mode .tl-prediction-group__empty,
body.light-mode .tl-prediction-modal__state {
  color: #666;
}

body.light-mode .tl-prediction-user,
body.light-mode .tl-prediction-group__empty,
body.light-mode .tl-prediction-modal__state {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tl-prediction-user__avatar {
  color: #1a1a1a;
}


/* ============================================
   LEAGUE LEADERBOARD PAGE
   ============================================ */

.lb-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #0A0A0B 0%, #0D0D0F 50%, #0A0A0B 100%);
  color: #fff;
}

.lb-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.lb-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lb-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%), hsl(24, 100%, 50%));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lb-shimmer 3s linear infinite;
}

@keyframes lb-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.lb-subtitle {
  font-size: 1.1rem;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Filters */
.lb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.lb-search {
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
  background: #1C1C1C;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
  color: #fff;
  min-width: 200px;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.lb-search:focus {
  outline: none;
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.2);
}

.lb-search::placeholder {
  color: hsla(0, 0%, 100%, 0.4);
}

/* Custom Dropdown */
.lb-dropdown {
  position: relative;
  min-width: 200px;
}

.lb-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
  background: #1C1C1C;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.lb-dropdown-btn:hover,
.lb-dropdown-btn:focus {
  outline: none;
  border-color: hsl(24, 100%, 50%);
  box-shadow: 0 0 20px hsla(24, 100%, 50%, 0.2);
}

.lb-dropdown-arrow {
  color: hsl(24, 100%, 50%);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lb-dropdown-arrow-open {
  transform: rotate(180deg);
}

.lb-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1C1C1C;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 4px;
  z-index: 50;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lb-dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.lb-dropdown-item:hover {
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(30, 100%, 55%));
  color: #fff;
}

.lb-dropdown-item-active {
  background: hsla(24, 100%, 50%, 0.2);
  color: hsl(24, 100%, 50%);
}

/* Card */
.lb-card {
  position: relative;
  background: #121212;
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.lb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  opacity: 0.8;
  z-index: 10;
}

/* Empty State */
.lb-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.lb-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: grayscale(50%);
}

.lb-empty p {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 1rem;
}

/* Table */
.lb-table-wrapper {
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-th {
  padding: 1rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.5);
  border-bottom: 2px solid hsla(24, 100%, 50%, 0.3);
  background: linear-gradient(135deg, #1C1C1C 0%, #121212 100%);
}

.lb-th-center {
  text-align: center;
}

.lb-th-left {
  text-align: left;
}

.lb-sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lb-sort-button--center {
  justify-content: center;
}

.lb-sort-button--left {
  justify-content: flex-start;
}

.lb-sort-button:hover,
.lb-sort-button:focus-visible {
  color: #fff;
  outline: none;
}

.lb-sort-button-active {
  color: hsl(24, 100%, 50%);
}

.lb-sort-indicator {
  min-width: 0.75rem;
  text-align: center;
  opacity: 0.9;
}

/* Table Rows */
.lb-row {
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.lb-row:hover {
  background: linear-gradient(90deg, hsla(24, 100%, 50%, 0.08), transparent);
}

.lb-row:hover .lb-td:first-child {
  border-left: 3px solid hsl(24, 100%, 50%);
}

.lb-td {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.lb-td:first-child {
  border-left: 3px solid transparent;
}

.lb-td-center {
  text-align: center;
}

.lb-td-player {
  text-align: left;
}

/* Rank */
.lb-rank {
  font-weight: 700;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Player Info */
.lb-player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(#121212, #121212) padding-box,
              linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%)) border-box;
}

.lb-player-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.lb-player-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lb-username {
  font-weight: 700;
  color: #fff;
}

.lb-player-alias {
  font-size: 0.78rem;
  color: hsla(0, 0%, 100%, 0.55);
}

.lb-league-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: hsla(24, 100%, 50%, 0.15);
  color: hsl(24, 100%, 50%);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

/* Stats */
.lb-maps {
  font-weight: 700;
  color: #fff;
}

.lb-kd {
  font-size: 1.1rem;
  font-weight: 800;
}

.lb-kd-positive {
  color: hsl(140, 70%, 50%);
}

.lb-kd-negative {
  color: hsl(0, 70%, 55%);
}

.lb-adr {
  font-weight: 700;
  color: hsl(210, 90%, 60%);
}

.lb-hs {
  font-weight: 700;
  color: hsl(45, 100%, 55%);
}

.lb-kr {
  font-weight: 700;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* Pagination */
.lb-pagination {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  background: #121212;
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.lb-pagination::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  opacity: 0.5;
}

.lb-pagination-info {
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.5);
}

.lb-pagination-current,
.lb-pagination-total,
.lb-pagination-players {
  font-weight: 700;
}

.lb-pagination-current {
  color: hsl(24, 100%, 50%);
}

.lb-pagination-total,
.lb-pagination-players {
  color: #fff;
}

.lb-pagination-buttons {
  display: flex;
  gap: 0.75rem;
}

.lb-pagination-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(0, 0%, 100%, 0.7);
  background: #1C1C1C;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  text-decoration: none;
}

.lb-pagination-btn:hover {
  border-color: hsl(24, 100%, 50%);
  color: hsl(24, 100%, 50%);
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .lb-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .lb-select,
  .lb-search {
    min-width: 100%;
  }

  .lb-th,
  .lb-td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .lb-avatar {
    width: 32px;
    height: 32px;
  }

  .lb-player-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .lb-pagination {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   LEAGUE LEADERBOARD - LIGHT MODE
   ============================================ */

body.light-mode .lb-body,
.lb-body.light-mode {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  color: #1a1a1a;
}

body.light-mode .lb-subtitle {
  color: #666;
}

body.light-mode .lb-search {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

body.light-mode .lb-search:focus {
  border-color: hsl(24, 100%, 50%);
}

body.light-mode .lb-search::placeholder {
  color: #999;
}

/* Light mode custom dropdown */
body.light-mode .lb-dropdown-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

body.light-mode .lb-dropdown-btn:hover,
body.light-mode .lb-dropdown-btn:focus {
  border-color: hsl(24, 100%, 50%);
}

body.light-mode .lb-dropdown-arrow {
  color: hsl(24, 100%, 45%);
}

body.light-mode .lb-dropdown-menu {
  background: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .lb-dropdown-item {
  color: #1a1a1a;
}

body.light-mode .lb-dropdown-item:hover {
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(30, 100%, 55%));
  color: #fff;
}

body.light-mode .lb-dropdown-item-active {
  background: hsla(24, 100%, 50%, 0.15);
  color: hsl(24, 100%, 45%);
}

body.light-mode .lb-card {
  background: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .lb-empty p {
  color: #666;
}

body.light-mode .lb-th {
  color: #666;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-mode .lb-sort-button:hover,
body.light-mode .lb-sort-button:focus-visible {
  color: #1a1a1a;
}

body.light-mode .lb-sort-button-active {
  color: hsl(24, 100%, 45%);
}

body.light-mode .lb-row {
  border-bottom-color: #e0e0e0;
}

body.light-mode .lb-row:hover {
  background: linear-gradient(90deg, hsla(24, 100%, 50%, 0.05), transparent);
}

body.light-mode .lb-td {
  color: #1a1a1a;
}

body.light-mode .lb-rank {
  color: #666;
}

body.light-mode .lb-avatar {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%)) border-box;
}

body.light-mode .lb-username {
  color: #1a1a1a;
}

body.light-mode .lb-player-alias {
  color: #666;
}

body.light-mode .lb-maps {
  color: #1a1a1a;
}

body.light-mode .lb-pagination {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-mode .lb-pagination-info {
  color: #666;
}

body.light-mode .lb-pagination-total,
body.light-mode .lb-pagination-players {
  color: #1a1a1a;
}

body.light-mode .lb-pagination-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #333;
}

body.light-mode .lb-pagination-btn:hover {
  border-color: hsl(24, 100%, 50%);
  color: hsl(24, 100%, 50%);
}

/* Stats Cards for Leaderboards */
.lb-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .lb-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lb-stat-box {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  background: #1C1C1C;
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  opacity: 0.5;
  transition: all 0.3s ease;
}

.lb-stat-box:hover {
  box-shadow: 0 10px 30px hsla(24, 100%, 50%, 0.15), 0 0 0 1px hsla(24, 100%, 50%, 0.3);
}

.lb-stat-box:hover::before {
  opacity: 1;
  height: 4px;
  box-shadow: 0 0 15px hsla(24, 100%, 50%, 0.5);
}

.lb-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 0.5rem;
}

.lb-stat-value {
  font-size: 1.875rem;
  font-weight: 900;
  color: #fff;
}

.lb-stat-value--green {
  background: linear-gradient(135deg, hsl(140, 70%, 50%), hsl(160, 70%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-stat-value--orange {
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Points styling */
.lb-points {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-correct {
  font-weight: 700;
  color: hsl(140, 70%, 50%);
}

.lb-total-tips {
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Light mode stats */
body.light-mode .lb-stat-box {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-mode .lb-stat-label {
  color: #666;
}

body.light-mode .lb-stat-value {
  color: #1a1a1a;
}

body.light-mode .lb-total-tips {
  color: #666;
}

/* Losses styling */
.lb-losses {
  font-weight: 700;
  color: hsl(0, 70%, 55%);
}

/* Empty state */
.lb-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}

.lb-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: hsla(0, 0%, 100%, 0.3);
}

.lb-empty p {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 1rem;
}

body.light-mode .lb-empty-icon {
  color: #999;
}

body.light-mode .lb-empty p {
  color: #666;
}

/* Action buttons */
.lb-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.lb-action-btn {
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.lb-action-btn--edit {
  color: hsl(24, 100%, 50%);
}

.lb-action-btn--edit:hover {
  color: hsl(24, 100%, 60%);
}

.lb-action-btn--delete {
  color: hsl(0, 70%, 55%);
}

.lb-action-btn--delete:hover {
  color: hsl(0, 70%, 65%);
}

/* Clickable row */
.lb-row--clickable {
  cursor: pointer;
}

/* Expand icon */
.lb-expand-icon {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.4);
  transition: transform 0.2s ease;
}

.lb-expand-icon--open {
  transform: rotate(180deg);
}

body.light-mode .lb-expand-icon {
  color: #999;
}

/* Roster row */
.lb-roster-row {
  background: #0a0a0a;
}

.lb-roster-cell {
  padding: 0 !important;
}

.lb-roster {
  background: linear-gradient(135deg, #0d0d0d, #121212);
  padding: 1.25rem 1.5rem;
  border-top: 1px solid hsla(24, 100%, 50%, 0.2);
}

.lb-roster-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 1rem;
}

.lb-roster-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lb-roster-member {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(24, 100%, 50%, 0.1);
  border: 1px solid hsla(24, 100%, 50%, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lb-roster-member:hover {
  background: hsla(24, 100%, 50%, 0.2);
  border-color: hsla(24, 100%, 50%, 0.5);
  transform: translateY(-1px);
}

.lb-roster-leader {
  color: hsl(45, 100%, 55%);
}

.lb-roster-player {
  color: hsl(24, 100%, 50%);
}

/* Light mode roster */
body.light-mode .lb-roster-row {
  background: #f5f5f5;
}

body.light-mode .lb-roster {
  background: linear-gradient(135deg, #f0f0f0, #fafafa);
  border-top-color: hsla(24, 100%, 50%, 0.3);
}

body.light-mode .lb-roster-title {
  color: #666;
}

body.light-mode .lb-roster-member {
  color: #1a1a1a;
  background: hsla(24, 100%, 50%, 0.08);
}

/* ============================================
   MATCH PUBLIC PAGE
   ============================================ */

/* Animations */
@keyframes mp-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes mp-glow-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes mp-badge-pulse { 0%, 100% { box-shadow: 0 0 5px hsla(var(--tl-orange), 0.3); } 50% { box-shadow: 0 0 20px hsla(var(--tl-orange), 0.6); } }

.mp { min-height: 100vh; background: linear-gradient(180deg, hsl(var(--tl-bg)) 0%, hsl(var(--tl-bg-card)) 100%); padding: 1.5rem 1rem; }
.mp-container { max-width: 1100px; margin: 0 auto; }

/* Header */
.mp-header { position: relative; background: linear-gradient(135deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg)) 100%); padding: 2.5rem 2rem; margin-bottom: 1.5rem; border: 1px solid hsla(var(--tl-orange), 0.2); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.mp-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, hsla(var(--tl-orange), 0.1) 0%, transparent 40%, hsla(var(--tl-orange), 0.05) 100%); pointer-events: none; }
.mp-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, hsl(var(--tl-orange)), hsl(45, 100%, 50%), hsl(var(--tl-orange)), transparent); animation: mp-shimmer 3s linear infinite; background-size: 200% 100%; }
.mp-header-glow { position: absolute; top: -100%; left: -30%; width: 80%; height: 300%; background: radial-gradient(ellipse, hsla(var(--tl-orange), 0.1) 0%, transparent 60%); pointer-events: none; animation: mp-glow-pulse 4s ease-in-out infinite; }

.mp-meta { text-align: center; margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; }
.mp-league { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 800; background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(45, 100%, 50%), hsl(var(--tl-orange))); background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: mp-shimmer 3s linear infinite; }
.mp-date { font-size: 0.9rem; color: hsl(var(--tl-text-muted)); }
.mp-status { display: inline-block; padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.mp-status.live { background: linear-gradient(90deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.5)); color: #ef4444; animation: mp-badge-pulse 1.5s infinite; }
.mp-status.finished { background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.4)); color: #22c55e; }
.mp-status.upcoming { background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4)); color: #3b82f6; }

.mp-teams { display: flex; align-items: center; justify-content: center; gap: 2.5rem; }
.mp-team { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); flex: 1; max-width: 200px; }
.mp-team:hover { transform: translateY(-8px) scale(1.02); }
.mp-team-logo-wrap { position: relative; }
.mp-team-logo { width: 130px; height: 130px; object-fit: contain; border: 2px solid hsl(var(--tl-border)); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 1; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.mp-team:hover .mp-team-logo { border-color: hsl(var(--tl-orange)); box-shadow: 0 0 40px hsla(var(--tl-orange), 0.5); }
.mp-team-logo-glow { position: absolute; inset: -8px; background: linear-gradient(135deg, hsla(var(--tl-orange), 0.4), hsla(45, 100%, 50%, 0.2)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); opacity: 0; transition: opacity 0.4s ease; filter: blur(8px); }
.mp-team:hover .mp-team-logo-glow { opacity: 1; }
.mp-team-logo-ph { width: 130px; height: 130px; background: hsl(var(--tl-bg)); border: 2px solid hsl(var(--tl-border)); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: hsl(var(--tl-text-muted)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.mp-team-name { font-size: 1.2rem; font-weight: 800; color: hsl(var(--tl-text)); text-align: center; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.05em; }
.mp-team:hover .mp-team-name { color: hsl(var(--tl-orange)); text-shadow: 0 0 20px hsla(var(--tl-orange), 0.5); }
.mp-team.winner .mp-team-name { background: linear-gradient(90deg, #22c55e, #4ade80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mp-score-box { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.mp-scores { display: flex; align-items: center; gap: 1.25rem; }
.mp-score { font-size: 4rem; font-weight: 900; min-width: 60px; text-align: center; line-height: 1; transition: all 0.3s ease; }
.mp-score.win { background: linear-gradient(180deg, #22c55e, #16a34a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5)); }
.mp-score.lose { color: hsl(var(--tl-text-muted)); }
.mp-score-div { font-size: 2rem; color: hsl(var(--tl-text-muted)); font-weight: 300; }
.mp-format { font-size: 0.8rem; color: hsl(var(--tl-orange)); background: hsla(var(--tl-orange), 0.1); padding: 0.35rem 1rem; font-weight: 700; border: 1px solid hsla(var(--tl-orange), 0.3); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* Ranking Points Card */
.mp-ranking-card { background: linear-gradient(135deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg)) 100%); border: 1px solid hsl(var(--tl-border)); margin-bottom: 1.5rem; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.mp-ranking-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--tl-border)); font-size: 0.8rem; font-weight: 700; color: hsl(var(--tl-orange)); text-transform: uppercase; letter-spacing: 0.08em; }
.mp-ranking-header i { font-size: 0.75rem; }

/* Scenarios layout (upcoming/live) */
.mp-ranking-scenarios { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1rem; }
.mp-ranking-header-row { display: grid; grid-template-columns: 140px 80px 80px 80px; gap: 0.75rem; align-items: center; padding: 0.5rem 0; margin-bottom: 0.25rem; }
.mp-ranking-row { display: grid; grid-template-columns: 140px 80px 80px 80px; gap: 0.75rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid hsla(var(--tl-border), 0.3); }
.mp-ranking-row:last-of-type { border-bottom: none; }
.mp-ranking-team-info { display: flex; align-items: center; gap: 0.75rem; }
.mp-ranking-logo { width: 32px; height: 32px; object-fit: contain; border: 1px solid hsl(var(--tl-border)); clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); flex-shrink: 0; }
.mp-ranking-logo-ph { width: 32px; height: 32px; background: hsl(var(--tl-bg)); border: 1px solid hsl(var(--tl-border)); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: hsl(var(--tl-text-muted)); clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); flex-shrink: 0; }
.mp-ranking-name { font-size: 0.85rem; font-weight: 700; color: hsl(var(--tl-text)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-ranking-cell { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.mp-ranking-pts { font-size: 0.8rem; font-weight: 600; color: hsl(var(--tl-text-muted)); }
.mp-ranking-pos { font-size: 0.7rem; font-weight: 600; color: hsl(var(--tl-text-muted)); }
.mp-ranking-change { font-size: 0.85rem; font-weight: 800; }
.mp-ranking-change.positive { color: #22c55e; }
.mp-ranking-change.negative { color: #ef4444; }
.mp-ranking-new-pos { font-size: 0.7rem; font-weight: 600; color: hsl(var(--tl-text-muted)); }
.mp-ranking-label { font-size: 0.65rem; font-weight: 600; color: hsl(var(--tl-text-muted)); text-transform: uppercase; text-align: center; letter-spacing: 0.03em; }
.mp-ranking-label.win { color: #22c55e; }
.mp-ranking-label.lose { color: #ef4444; }

/* Finished match layout */
.mp-ranking-finished { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1rem; }
.mp-ranking-finished .mp-ranking-row { display: grid; grid-template-columns: 140px 80px; gap: 0.75rem; align-items: center; padding: 0.6rem 0; margin-bottom: 0.25rem; border-bottom: 1px solid hsla(var(--tl-border), 0.3); }
.mp-ranking-finished .mp-ranking-row:last-child { margin-bottom: 0; border-bottom: none; }
.mp-ranking-result { display: flex; align-items: center; }
.mp-ranking-finished .mp-ranking-change { font-size: 1rem; font-weight: 800; }

@media (max-width: 600px) {
  .mp-ranking-row { grid-template-columns: 1fr 70px 70px 70px; gap: 0.25rem; }
  .mp-ranking-labels { grid-template-columns: 1fr 70px 70px 70px; gap: 0.25rem; }
  .mp-ranking-name { font-size: 0.75rem; }
  .mp-ranking-logo, .mp-ranking-logo-ph { width: 28px; height: 28px; }
  .mp-ranking-change { font-size: 0.75rem; }
  .mp-ranking-pts { font-size: 0.7rem; }
}

/* Cards */
.mp-card { background: linear-gradient(135deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg)) 100%); border: 1px solid hsl(var(--tl-border)); margin-bottom: 1.5rem; overflow: hidden; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.mp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid hsl(var(--tl-border)); }
.mp-card-title { font-size: 0.9rem; font-weight: 700; color: hsl(var(--tl-orange)); text-transform: uppercase; letter-spacing: 0.1em; }

/* Map Pool */
.mp-mappool { padding: 0; }
.mp-mappool-list { display: flex; flex-direction: column; }
.mp-mappool-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.75rem 1.5rem; border-bottom: 1px solid hsl(var(--tl-border)); transition: all 0.2s; }
.mp-mappool-row:last-child { border-bottom: none; }
.mp-mappool-row:hover { background: hsl(var(--tl-bg-elevated)); }
.mp-mappool-row.picked { background: linear-gradient(90deg, hsla(var(--tl-orange), 0.15), transparent 30%, transparent 70%, hsla(var(--tl-orange), 0.15)); border-left: 3px solid hsl(var(--tl-orange)); }
.mp-mappool-row.greyed { opacity: 0.4; }
.mp-mappool-side { display: flex; align-items: center; gap: 0.5rem; }
.mp-mappool-side.right { justify-content: flex-end; }
.mp-mappool-logo { width: 20px; height: 20px; border-radius: 3px; }
.mp-mappool-wr { font-size: 0.85rem; font-weight: 700; }
.mp-mappool-wr.good { color: #22c55e; }
.mp-mappool-wr.bad { color: #ef4444; }
.mp-mappool-wr.neutral { color: hsl(var(--tl-text-muted)); }
.mp-mappool-stats { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.mp-mappool-side.right .mp-mappool-stats { align-items: center; }
.mp-mappool-played { font-size: 0.65rem; color: hsl(var(--tl-text-muted)); font-weight: 500; }
.mp-mappool-badge { font-size: 0.65rem; font-weight: 800; padding: 0.15rem 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.mp-mappool-badge.ban { color: #ef4444; background: rgba(239,68,68,0.2); }
.mp-mappool-badge.pick { color: #22c55e; background: rgba(34,197,94,0.2); }
.mp-mappool-center { text-align: center; min-width: 120px; }
.mp-mappool-mapname { font-size: 0.9rem; font-weight: 700; color: hsl(var(--tl-text)); }
.mp-mappool-score { display: flex; align-items: center; justify-content: center; gap: 0.3rem; font-size: 1rem; font-weight: 800; margin-top: 0.15rem; }
.mp-mappool-score .win { color: #22c55e; }
.mp-mappool-score .lose { color: #ef4444; }

/* Player Comparison */
.mp-compare { padding: 1.5rem; }
.mp-compare-container { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; }
.mp-compare-side { display: flex; flex-direction: column; gap: 0.6rem; }
.mp-compare-team-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; margin-bottom: 0.75rem; font-weight: 800; font-size: 1rem; color: hsl(var(--tl-text)); text-transform: uppercase; letter-spacing: 0.1em; background: linear-gradient(90deg, hsla(var(--tl-orange), 0.1), transparent); border-left: 3px solid hsl(var(--tl-orange)); }
.mp-compare-team-logo { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }

.mp-compare-player { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1rem; background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)) 0%, hsl(var(--tl-bg-card)) 100%); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 2px solid transparent; position: relative; overflow: hidden; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.mp-compare-player::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, hsla(var(--tl-orange), 0.1), transparent); transition: left 0.4s ease; }
.mp-compare-player:hover::before { left: 150%; }
.mp-compare-player:hover { background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)) 0%, hsla(var(--tl-orange), 0.1) 100%); border-color: hsla(var(--tl-orange), 0.3); transform: translateX(4px); }
.mp-compare-player.selected { border-color: hsl(var(--tl-orange)); background: linear-gradient(135deg, hsla(var(--tl-orange), 0.15) 0%, hsla(var(--tl-orange), 0.05) 100%); box-shadow: 0 0 25px hsla(var(--tl-orange), 0.3); }
.mp-compare-avatar { width: 48px; height: 48px; object-fit: cover; object-position: center top; border: 2px solid hsl(var(--tl-border)); transition: all 0.3s ease; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.mp-compare-player.selected .mp-compare-avatar { border-color: hsl(var(--tl-orange)); box-shadow: 0 0 15px hsla(var(--tl-orange), 0.4); }
.mp-compare-avatar.placeholder { display: flex; align-items: center; justify-content: center; background: hsl(var(--tl-bg)); color: hsla(var(--tl-text), 0.2); font-size: 1.5rem; }
.mp-compare-name { font-size: 0.9rem; font-weight: 700; color: hsl(var(--tl-text)); transition: color 0.3s ease; }
.mp-compare-player:hover .mp-compare-name, .mp-compare-player.selected .mp-compare-name { color: hsl(var(--tl-orange)); }

.mp-compare-center { display: flex; align-items: center; justify-content: center; min-height: 420px; }
.mp-compare-result { background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)) 0%, hsl(var(--tl-bg-card)) 100%); padding: 1.5rem; min-width: 300px; border: 1px solid hsla(var(--tl-orange), 0.3); position: relative; overflow: hidden; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.mp-compare-result::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(45, 100%, 50%), hsl(var(--tl-orange))); background-size: 200% 100%; animation: mp-shimmer 2s linear infinite; }
.mp-compare-result::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(45, 100%, 50%), hsl(var(--tl-orange))); background-size: 200% 100%; animation: mp-shimmer 2s linear infinite reverse; }

.mp-compare-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid hsl(var(--tl-border)); }
.mp-compare-header-player { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 800; color: hsl(var(--tl-text)); }
.mp-compare-header-player.right { flex-direction: row-reverse; text-align: right; }
.mp-compare-header-avatar { width: 36px; height: 36px; object-fit: cover; object-position: top; border: 2px solid hsla(var(--tl-orange), 0.5); clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.mp-compare-header-vs { font-size: 0.8rem; color: hsl(var(--tl-orange)); font-weight: 900; display: flex; align-items: center; text-shadow: 0 0 10px hsla(var(--tl-orange), 0.5); }

.mp-compare-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center; padding: 0.5rem 0; transition: all 0.2s ease; }
.mp-compare-row:hover { background: hsla(var(--tl-orange), 0.05); }
.mp-compare-val { font-size: 1.1rem; font-weight: 800; transition: all 0.3s ease; }
.mp-compare-val.left { text-align: left; }
.mp-compare-val.right { text-align: right; }
.mp-compare-val.better { color: #22c55e; text-shadow: 0 0 15px rgba(34, 197, 94, 0.5); }
.mp-compare-val.worse { color: hsl(var(--tl-text-muted)); }
.mp-compare-label { font-size: 0.7rem; color: hsl(var(--tl-text-muted)); text-transform: uppercase; text-align: center; min-width: 45px; font-weight: 600; letter-spacing: 0.05em; }

.mp-compare-empty { text-align: center; color: hsl(var(--tl-text-muted)); padding: 2.5rem; background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)) 0%, transparent 100%); border: 1px dashed hsl(var(--tl-border)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.mp-compare-empty svg { width: 56px; height: 56px; margin: 0 auto 1rem; opacity: 0.3; fill: hsl(var(--tl-orange)); }
.mp-compare-empty p { font-size: 0.9rem; font-weight: 500; }

/* Stats Table */
.mp-stats { padding: 0; overflow-x: auto; }
.mp-stats-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mp-stats-tab { padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 700; background: hsl(var(--tl-bg-elevated)); color: hsl(var(--tl-text-muted)); border: 1px solid transparent; cursor: pointer; transition: all 0.3s ease; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.mp-stats-tab:hover { background: hsl(var(--tl-bg-card)); color: hsl(var(--tl-text)); border-color: hsl(var(--tl-border)); }
.mp-stats-tab.active { background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(30, 100%, 55%)); color: #000; font-weight: 800; box-shadow: 0 0 20px hsla(var(--tl-orange), 0.5); border-color: hsl(var(--tl-orange)); }
.mp-tab-score { font-size: 0.7rem; opacity: 0.8; margin-left: 0.25rem; }
.mp-map-details { display: block; font-size: 0.75rem; color: hsl(var(--tl-text-muted)); margin-top: 0.25rem; font-weight: 500; }

.mp-stats-content { padding: 1.25rem 1.5rem; }
.mp-stats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mp-stats-table th { text-align: left; padding: 0.75rem 1rem; color: hsl(var(--tl-text-muted)); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 2px solid hsl(var(--tl-border)); white-space: nowrap; background: hsl(var(--tl-bg-elevated)); }
.mp-stats-table td { padding: 0.75rem 1rem; color: hsl(var(--tl-text)); border-bottom: 1px solid hsl(var(--tl-border)); }
.mp-stats-table tr { transition: all 0.2s ease; }
.mp-stats-table tbody tr:hover { background: linear-gradient(90deg, hsla(var(--tl-orange), 0.05), transparent); }

.mp-stats-team-header td { padding: 0 !important; border-bottom: none !important; }
.mp-stats-team-section { font-weight: 800; background: linear-gradient(90deg, hsla(var(--tl-orange), 0.15), hsla(var(--tl-orange), 0.05)); padding: 0.75rem 1rem; border-left: 3px solid hsl(var(--tl-orange)); display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0; }
.mp-stats-team-section img { width: 20px; height: 20px; border-radius: 3px; }
.mp-stats-team-section span { font-size: 0.85rem; color: hsl(var(--tl-orange)); }
.mp-stats-table th:not(:first-child), .mp-stats-table td:not(:first-child) { text-align: center; }

.mp-stats-player { display: flex; align-items: center; gap: 0.75rem; }
.mp-stats-avatar { width: 32px; height: 32px; object-fit: cover; object-position: center top; border: 2px solid hsl(var(--tl-border)); clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); transition: all 0.3s ease; }
.mp-stats-table tbody tr:hover .mp-stats-avatar { border-color: hsla(var(--tl-orange), 0.5); }
.mp-stats-avatar-placeholder { width: 32px; height: 32px; background: hsl(var(--tl-bg)); border: 2px solid hsl(var(--tl-border)); display: flex; align-items: center; justify-content: center; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); color: hsla(var(--tl-text), 0.2); font-size: 1rem; }
.mp-stats-name { font-weight: 600; color: hsl(var(--tl-text)); }
.mp-kd.pos { color: #22c55e; }
.mp-kd.neg { color: #ef4444; }

/* Empty State */
.mp-empty { text-align: center; padding: 2rem; color: hsl(var(--tl-text-muted)); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  .mp-header { padding: 1.5rem 1rem; }
  .mp-teams { gap: 1rem; }
  .mp-team-logo, .mp-team-logo-ph { width: 70px; height: 70px; }
  .mp-score { font-size: 2.5rem; }
  .mp-compare-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .mp-compare-center { min-height: auto; order: -1; }
  .mp-compare-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .mp-compare-player { flex: 1; min-width: 140px; max-width: 180px; }
}

/* ==========================================
   PLAYER PROFILE
   ========================================== */
.pp { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; min-height: 100vh; }

/* Hero Header */
.pp-hero { position: relative; background: linear-gradient(135deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg-elevated)) 100%); overflow: hidden; margin-bottom: 1.5rem; border: 1px solid hsla(var(--tl-border), 0.5); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.pp-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, hsla(var(--tl-orange), 0.08) 0%, transparent 50%); pointer-events: none; }
.pp-hero-glow { position: absolute; top: -50%; right: -30%; width: 60%; height: 200%; background: radial-gradient(ellipse, hsla(var(--tl-orange), 0.15) 0%, transparent 60%); pointer-events: none; animation: pp-glow-pulse 4s ease-in-out infinite; }
.pp-hero-team-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 380px; height: 380px; background-size: contain; background-position: center; background-repeat: no-repeat; opacity: 0.15; pointer-events: none; }
@keyframes pp-glow-pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }
.pp-hero-content { position: relative; display: flex; align-items: stretch; gap: 0; }

/* Photo Container */
.pp-photo-container { width: 220px; min-height: 280px; background: linear-gradient(180deg, hsl(var(--tl-bg)) 0%, hsla(var(--tl-orange), 0.1) 100%); display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.pp-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(20%) contrast(1.05); transition: all 0.4s ease; }
.pp-photo-container:hover .pp-photo { filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }
.pp-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, hsla(var(--tl-bg-card), 0.9), transparent); pointer-events: none; }
.pp-silhouette { font-size: 8rem; color: hsla(var(--tl-text), 0.15); line-height: 1; margin-bottom: -1rem; }

/* Player Info */
.pp-info { flex: 1; padding: 1.5rem 2.5rem; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 2rem; }
.pp-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem; background: linear-gradient(135deg, hsla(var(--tl-orange), 0.2), hsla(var(--tl-yellow), 0.1)); border: 1px solid hsla(var(--tl-orange), 0.4); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; color: hsl(var(--tl-orange)); text-transform: uppercase; width: fit-content; margin-bottom: 1rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-nickname { font-size: 2.75rem; font-weight: 900; color: hsl(var(--tl-text)); margin-bottom: 0.25rem; letter-spacing: -0.02em; background: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 55%), hsl(24, 100%, 50%)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: pp-name-glow 3s ease-in-out infinite; }
@keyframes pp-name-glow { 0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); } 50% { filter: brightness(1.1) drop-shadow(0 2px 20px hsla(var(--tl-orange), 0.3)); } }
.pp-realname { font-size: 1rem; color: hsl(var(--tl-text-muted)); margin-bottom: 1rem; font-weight: 500; }
.pp-realname-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.pp-edit-btn { background: transparent; border: 1px solid hsl(var(--tl-border)); color: hsl(var(--tl-text-muted)); width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.75rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-edit-btn:hover { border-color: hsl(var(--tl-orange)); color: hsl(var(--tl-orange)); }

/* Team Link */
.pp-team-badge { display: inline-block; padding: 0.35rem 1rem; background: linear-gradient(135deg, hsla(var(--tl-orange), 0.15), hsla(var(--tl-orange), 0.05)); border: 1px solid hsla(var(--tl-orange), 0.3); color: hsl(var(--tl-orange)); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; margin-top: 0.75rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-team-badge:hover { background: linear-gradient(135deg, hsla(var(--tl-orange), 0.25), hsla(var(--tl-orange), 0.1)); border-color: hsla(var(--tl-orange), 0.5); transform: translateY(-2px); }
.pp-team-row { margin-bottom: 1.25rem; }
.pp-team-link { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem; background: linear-gradient(135deg, hsla(var(--tl-orange), 0.1), hsla(var(--tl-orange), 0.05)); border: 1px solid hsla(var(--tl-orange), 0.25); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pp-team-link:hover { background: linear-gradient(135deg, hsla(var(--tl-orange), 0.2), hsla(var(--tl-orange), 0.1)); border-color: hsla(var(--tl-orange), 0.5); transform: translateX(4px); box-shadow: 0 4px 20px hsla(var(--tl-orange), 0.15); }
.pp-team-logo-wrapper { width: 36px; height: 36px; background: hsla(var(--tl-orange), 0.15); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-team-logo { width: 100%; height: 100%; object-fit: cover; }
.pp-team-name { font-weight: 700; color: hsl(var(--tl-orange)); font-size: 0.95rem; }
.pp-team-status { font-size: 0.7rem; font-weight: 600; color: #22c55e; background: rgba(34, 197, 94, 0.15); padding: 0.2rem 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 3px 100%, 0 calc(100% - 3px)); }

/* Social Links */
/* Social Links */
.pp-socials { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.pp-social-box { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: hsla(var(--tl-bg-elevated), 0.6); border: 1px solid hsla(var(--tl-border), 0.4); color: hsl(var(--tl-text-muted)); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1.25rem; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-social-box:hover { transform: translateY(-4px) scale(1.05); }
.pp-social-box.faceit { color: #FF5500; }
.pp-social-box.faceit:hover { background: linear-gradient(135deg, hsla(24, 100%, 50%, 0.2), hsla(24, 100%, 40%, 0.1)); border-color: hsla(24, 100%, 50%, 0.6); box-shadow: 0 8px 25px hsla(24, 100%, 50%, 0.3), 0 0 20px hsla(24, 100%, 50%, 0.15); }
.pp-social-box.instagram { color: #E1306C; }
.pp-social-box.instagram:hover { background: linear-gradient(135deg, hsla(340, 75%, 54%, 0.2), hsla(35, 90%, 55%, 0.15)); border-color: hsla(340, 75%, 54%, 0.6); box-shadow: 0 8px 25px hsla(340, 75%, 54%, 0.3), 0 0 20px hsla(340, 75%, 54%, 0.15); }
.pp-social-box.twitter { color: hsl(var(--tl-text)); }
.pp-social-box.twitter:hover { background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.15), hsla(0, 0%, 100%, 0.05)); border-color: hsla(0, 0%, 100%, 0.4); color: #fff; box-shadow: 0 8px 25px hsla(0, 0%, 100%, 0.15), 0 0 20px hsla(0, 0%, 100%, 0.1); }
.pp-social-box.twitch { color: #9146FF; }
.pp-social-box.twitch:hover { background: linear-gradient(135deg, hsla(264, 100%, 64%, 0.2), hsla(264, 100%, 50%, 0.1)); border-color: hsla(264, 100%, 64%, 0.6); box-shadow: 0 8px 25px hsla(264, 100%, 64%, 0.3), 0 0 20px hsla(264, 100%, 64%, 0.15); }

.pp-add-social { border: 2px dashed hsl(var(--tl-border)); background: transparent; cursor: pointer; color: hsl(var(--tl-text-muted)); font-size: 1rem; }
.pp-add-social:hover { border-color: hsl(var(--tl-orange)); color: hsl(var(--tl-orange)); background: hsla(var(--tl-orange), 0.05); }
.pp-add-social:hover { border-color: hsl(var(--tl-orange)); color: hsl(var(--tl-orange)); background: transparent; }

/* Socials Sidebar */
.pp-socials-sidebar { padding: 1.5rem 1rem; background: linear-gradient(180deg, hsla(0,0%,0%,0.15), hsla(0,0%,0%,0.05)); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; min-width: 80px; border-left: 1px solid hsla(var(--tl-border), 0.3); }

/* Tabs */
.pp-tabs { display: flex; gap: 0; background: linear-gradient(135deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg-elevated))); overflow: hidden; border: 1px solid hsla(var(--tl-border), 0.5); border-bottom: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.pp-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.1rem 1.5rem; text-align: center; font-weight: 700; font-size: 0.9rem; color: hsl(var(--tl-text-muted)); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; background: transparent; border-bottom: 3px solid transparent; position: relative; }
.pp-tab::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); transition: all 0.3s ease; transform: translateX(-50%); }
.pp-tab:hover { color: hsl(var(--tl-text)); background: hsla(var(--tl-orange), 0.05); }
.pp-tab.active { color: hsl(var(--tl-orange)); background: hsla(var(--tl-orange), 0.1); }
.pp-tab.active::after { width: 100%; }

/* Tab Content */
.pp-content { background: linear-gradient(180deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg-elevated))); padding: 1.75rem; display: none; border: 1px solid hsla(var(--tl-border), 0.5); border-top: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.pp-content.active { display: block; animation: pp-content-fade 0.3s ease; }
@keyframes pp-content-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Stats Grid */
.pp-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.pp-stat-card { background: linear-gradient(145deg, hsl(var(--tl-bg-elevated)), hsla(var(--tl-bg), 0.5)); border: 1px solid hsla(var(--tl-border), 0.4); padding: 1.25rem; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pp-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, hsla(var(--tl-orange), 0.3), transparent); opacity: 0; transition: opacity 0.3s ease; }
.pp-stat-card:hover { transform: translateY(-3px); border-color: hsla(var(--tl-orange), 0.3); box-shadow: 0 8px 25px hsla(0, 0%, 0%, 0.2); }
.pp-stat-card:hover::before { opacity: 1; }
.pp-stat-card-highlight { background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)); border-color: rgba(34, 197, 94, 0.3); }
.pp-stat-card-highlight .pp-stat-card-value { color: #22c55e; }
.pp-stat-card-loss { background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)); border-color: rgba(239, 68, 68, 0.3); }
.pp-stat-card-loss .pp-stat-card-value { color: #ef4444; }
.pp-stat-card-accent { background: linear-gradient(145deg, hsla(var(--tl-orange), 0.1), hsla(var(--tl-orange), 0.05)); border-color: hsla(var(--tl-orange), 0.3); }
.pp-stat-card-accent .pp-stat-card-value { background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pp-stat-card-value { font-size: 1.75rem; font-weight: 900; color: hsl(var(--tl-text)); line-height: 1; }
.pp-stat-card-label { font-size: 0.7rem; color: hsl(var(--tl-text-muted)); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; font-weight: 600; }

/* League Section */
.pp-league-section { margin-bottom: 2rem; }
.pp-league-header { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--tl-orange)); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid hsla(var(--tl-orange), 0.3); }

/* Match List */
.pp-matches { display: flex; flex-direction: column; gap: 0.5rem; }
.pp-match { display: flex; align-items: center; padding: 0.75rem 1rem; background: hsl(var(--tl-bg-elevated)); border: 1px solid hsla(var(--tl-border), 0.6); transition: all 0.3s ease; text-decoration: none; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pp-match:hover { background: hsla(var(--tl-bg-elevated), 0.8); border-color: hsla(var(--tl-orange), 0.4); box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.15); }
.pp-match.loss { opacity: 0.6; }
.pp-match-date { font-size: 0.75rem; color: hsl(var(--tl-text-muted)); font-weight: 500; min-width: 55px; flex-shrink: 0; }
.pp-match-center { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex: 1; }
.pp-match-team { display: flex; align-items: center; gap: 0.5rem; min-width: 100px; text-decoration: none; transition: opacity 0.2s; }
.pp-match-team:hover { opacity: 0.8; }
.pp-match-team.left { justify-content: flex-end; text-align: right; }
.pp-match-team.right { justify-content: flex-start; text-align: left; }
.pp-match-team-name { font-weight: 600; color: hsl(var(--tl-text)); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 85px; }
.pp-match-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.pp-match-score { font-size: 0.95rem; color: hsl(var(--tl-text)); font-weight: 700; padding: 0.2rem 0.5rem; background: hsla(var(--tl-bg), 0.5); border: 1px solid hsla(var(--tl-border), 0.4); min-width: 45px; text-align: center; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-match-link { padding: 0.5rem 1rem; background: hsla(var(--tl-orange), 0.1); color: hsl(var(--tl-orange)); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; text-align: center; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.pp-match-link:hover { background: hsl(var(--tl-orange)); color: white; }

/* Team History */
.pp-team-history { display: flex; flex-direction: column; gap: 0.75rem; }
.pp-team-entry { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)), hsla(var(--tl-bg), 0.5)); border: 1px solid hsla(var(--tl-border), 0.4); transition: all 0.3s ease; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pp-team-entry:hover { border-color: hsla(var(--tl-orange), 0.3); transform: translateX(4px); }
.pp-team-entry-current { background: linear-gradient(135deg, hsla(var(--tl-orange), 0.1), hsla(var(--tl-orange), 0.05)); border-color: hsla(var(--tl-orange), 0.3); }
.pp-team-entry-logo { width: 56px; height: 56px; background: hsla(var(--tl-bg), 0.5); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; border: 1px solid hsla(var(--tl-border), 0.3); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-team-entry-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-team-entry-info { flex: 1; }
.pp-team-entry-name { font-weight: 800; color: hsl(var(--tl-text)); font-size: 1.1rem; margin-bottom: 0.25rem; text-decoration: none; display: block; }
.pp-team-entry-name:hover { color: hsl(var(--tl-orange)); }
.pp-team-entry-dates { font-size: 0.85rem; color: hsl(var(--tl-text-muted)); }
.pp-team-entry-badge { padding: 0.35rem 1rem; background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }

/* Trophies */
.pp-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.pp-trophy { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: linear-gradient(135deg, hsl(var(--tl-bg-elevated)), hsla(var(--tl-bg), 0.5)); border: 1px solid hsla(var(--tl-border), 0.4); transition: all 0.3s ease; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pp-trophy:hover { border-color: hsla(var(--tl-yellow), 0.5); transform: translateY(-3px); box-shadow: 0 8px 25px hsla(var(--tl-yellow), 0.1); }
.pp-trophy-icon { width: 52px; height: 52px; background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 15px hsla(var(--tl-orange), 0.3); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-trophy-info { flex: 1; }
.pp-trophy-name { font-weight: 800; color: hsl(var(--tl-text)); font-size: 0.95rem; margin-bottom: 0.25rem; }
.pp-trophy-date { font-size: 0.8rem; color: hsl(var(--tl-text-muted)); }

/* Empty State */
.pp-empty { text-align: center; padding: 3.5rem; color: hsl(var(--tl-text-muted)); font-size: 0.95rem; }

/* Upload button for admins */
.pp-upload-btn { position: absolute; bottom: 1rem; right: 1rem; background: hsla(var(--tl-orange), 0.9); border: none; color: white; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-upload-btn:hover { background: hsl(var(--tl-orange)); transform: scale(1.05); }

/* Modal */
.pp-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 1000; }
.pp-modal-overlay.active { display: flex; }
.pp-modal { background: hsl(var(--tl-bg-card)); padding: 2rem; max-width: 450px; width: 90%; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.pp-modal-title { font-size: 1.25rem; font-weight: 700; color: hsl(var(--tl-text)); margin-bottom: 1.5rem; }
.pp-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.pp-modal-input { width: 100%; padding: 0.75rem 1rem; border: 2px solid hsl(var(--tl-border)); background: hsl(var(--tl-bg-elevated)); color: hsl(var(--tl-text)); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-modal-input:focus { border-color: hsl(var(--tl-orange)); outline: none; }
.pp-modal-hint { font-size: 0.8rem; color: hsl(var(--tl-text-muted)); }
.pp-modal-btns { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.pp-modal-btn { flex: 1; padding: 0.75rem 1rem; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pp-modal-btn.primary { background: hsl(var(--tl-orange)); color: white; }
.pp-modal-btn.primary:hover { filter: brightness(1.1); }
.pp-modal-btn.secondary { background: hsl(var(--tl-bg-elevated)); color: hsl(var(--tl-text-muted)); }

/* Responsive */
@media (max-width: 768px) {
  .pp-hero-content { flex-direction: column; }
  .pp-photo-container { width: 100%; height: 320px; min-height: unset; }
  .pp-photo { object-position: center 20%; }
  .pp-socials-sidebar { flex-direction: row; justify-content: center; border-left: none; border-top: 1px solid hsla(var(--tl-border), 0.3); padding: 1rem; gap: 0.75rem; min-width: unset; }
  .pp-info { padding: 1.25rem; }
  .pp-social-box { width: 42px; height: 42px; }
  .pp-social-box svg { width: 18px; height: 18px; }
  .pp-match-team { min-width: 80px; }
  .pp-match-team-name { max-width: 70px; font-size: 0.8rem; }
  .pp-match-logo { width: 24px; height: 24px; }
  .pp-nickname { font-size: 1.75rem; }
  .pp-realname { font-size: 0.9rem; }
  .pp-tabs { flex-wrap: wrap; }
  .pp-tab { flex: 1 1 45%; }
  .pp-hero-team-bg { width: 300px; height: 300px; }
}

/* ========================================
   TEAM PROFILE PAGE
======================================== */
.tp { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }

/* Hero Header */
.tp-hero { position: relative; background: linear-gradient(135deg, hsl(var(--tl-bg-card)) 0%, hsl(var(--tl-bg-elevated)) 100%); overflow: hidden; margin-bottom: 1.5rem; border: 1px solid hsla(var(--tl-border), 0.5); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.tp-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, hsla(var(--tl-orange), 0.08) 0%, transparent 50%); pointer-events: none; }
.tp-hero-glow { position: absolute; top: -50%; right: -30%; width: 60%; height: 200%; background: radial-gradient(ellipse, hsla(var(--tl-orange), 0.15) 0%, transparent 60%); pointer-events: none; }
.tp-hero-content { position: relative; display: flex; align-items: stretch; gap: 0; }
.tp-logo-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.tp-logo { width: 140px; height: 140px; overflow: hidden; background: hsl(var(--tl-bg)); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3); border: 3px solid hsla(var(--tl-orange), 0.3); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.tp-logo img { width: 100%; height: 100%; object-fit: cover; }
.tp-logo-placeholder { font-size: 4rem; }
.tp-info { flex: 1; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.tp-name { font-size: 2.5rem; font-weight: 800; color: hsl(var(--tl-text)); margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.tp-rank-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); color: white; font-weight: 700; font-size: 1rem; box-shadow: 0 4px 12px hsla(var(--tl-orange), 0.4); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.tp-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.tp-stat { text-align: center; }
.tp-stat-value { font-size: 2rem; font-weight: 800; color: hsl(var(--tl-text)); line-height: 1; }
.tp-stat-value.orange { color: hsl(var(--tl-orange)); }
.tp-stat-value.green { color: #22c55e; }
.tp-stat-value.red { color: #ef4444; }
.tp-stat-label { font-size: 0.75rem; color: hsl(var(--tl-text-muted)); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* Tabs */
.tp-tabs { display: flex; gap: 0; background: linear-gradient(135deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg-elevated))); overflow: hidden; border: 1px solid hsla(var(--tl-border), 0.5); border-bottom: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.tp-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.1rem 1.5rem; text-align: center; font-weight: 700; font-size: 0.9rem; color: hsl(var(--tl-text-muted)); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; background: transparent; border-bottom: 3px solid transparent; position: relative; }
.tp-tab::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: linear-gradient(90deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); transition: all 0.3s ease; transform: translateX(-50%); }
.tp-tab:hover { color: hsl(var(--tl-text)); background: hsla(var(--tl-orange), 0.05); }
.tp-tab.active { color: hsl(var(--tl-orange)); background: hsla(var(--tl-orange), 0.1); }
.tp-tab.active::after { width: 100%; }
.tp-tab i { margin-right: 0.5rem; }

/* Tab Content */
.tp-content { background: linear-gradient(180deg, hsl(var(--tl-bg-card)), hsl(var(--tl-bg-elevated))); padding: 1.75rem; display: none; border: 1px solid hsla(var(--tl-border), 0.5); border-top: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.tp-content.active { display: block; animation: pp-content-fade 0.3s ease; }

/* Roster List */
.tp-roster { display: flex; flex-direction: column; gap: 0.5rem; }
.tp-player { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: hsl(var(--tl-bg-elevated)); text-decoration: none; transition: all 0.2s; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.tp-player:hover { background: hsl(var(--tl-bg)); transform: translateX(4px); }
.tp-player-img { width: 60px; height: 75px; background: linear-gradient(180deg, hsl(var(--tl-bg)) 0%, hsla(var(--tl-orange), 0.1) 100%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; position: relative; flex-shrink: 0; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.tp-player-silhouette { font-size: 2.5rem; color: hsla(var(--tl-text), 0.2); line-height: 1; margin-bottom: -0.25rem; }
.tp-player-role { position: absolute; top: 0.25rem; right: 0.25rem; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
.tp-player-role.captain { background: linear-gradient(135deg, hsl(var(--tl-orange)), hsl(var(--tl-yellow))); color: white; }
.tp-player-role.co-captain { background: #6366f1; color: white; }
.tp-player-info { flex: 1; min-width: 0; }
.tp-player-name { font-weight: 700; font-size: 1.1rem; color: hsl(var(--tl-text)); margin-bottom: 0.25rem; }
.tp-player-tag { font-size: 0.8rem; color: hsl(var(--tl-text-muted)); }
.tp-player-stats { display: flex; gap: 1.5rem; margin-left: auto; }
.tp-player-stat { text-align: center; min-width: 60px; }
.tp-player-stat-value { font-size: 1.1rem; font-weight: 700; color: hsl(var(--tl-text)); }
.tp-player-stat-value.kd-good { color: #22c55e; }
.tp-player-stat-value.kd-bad { color: #ef4444; }
.tp-player-stat-label { font-size: 0.65rem; color: hsl(var(--tl-text-muted)); text-transform: uppercase; letter-spacing: 0.05em; }
.tp-player-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tp-upload-btn { background: hsla(var(--tl-orange), 0.1); border: none; color: hsl(var(--tl-orange)); width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; margin-left: 0.5rem; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.tp-upload-btn:hover { background: hsl(var(--tl-orange)); color: white; }

/* Photo Upload Modal */
.tp-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 1000; }
.tp-modal-overlay.active { display: flex; }
.tp-modal { background: hsl(var(--tl-bg-card)); padding: 2rem; max-width: 450px; width: 90%; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.tp-modal-title { font-size: 1.25rem; font-weight: 700; color: hsl(var(--tl-text)); margin-bottom: 1.5rem; }
.tp-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.tp-modal-input { width: 100%; padding: 0.75rem 1rem; border: 2px solid hsl(var(--tl-border)); background: hsl(var(--tl-bg-elevated)); color: hsl(var(--tl-text)); font-size: 0.95rem; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.tp-modal-input:focus { border-color: hsl(var(--tl-orange)); outline: none; }
.tp-modal-hint { font-size: 0.8rem; color: hsl(var(--tl-text-muted)); }
.tp-modal-btns { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.tp-modal-btn { flex: 1; padding: 0.75rem 1rem; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.tp-modal-btn.primary { background: hsl(var(--tl-orange)); color: white; }
.tp-modal-btn.primary:hover { filter: brightness(1.1); }
.tp-modal-btn.secondary { background: hsl(var(--tl-bg-elevated)); color: hsl(var(--tl-text-muted)); }
.tp-modal-btn.secondary:hover { background: hsl(var(--tl-bg)); }

/* Match List - same style as player profile */
.tp-matches { display: flex; flex-direction: column; gap: 0.5rem; }
.tp-match { display: flex; align-items: center; padding: 0.75rem 1rem; background: hsl(var(--tl-bg-elevated)); border: 1px solid hsla(var(--tl-border), 0.6); transition: all 0.3s ease; text-decoration: none; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.tp-match:hover { background: hsla(var(--tl-bg-elevated), 0.8); border-color: hsla(var(--tl-orange), 0.4); box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.15); }
.tp-match.loss { opacity: 0.6; }
.tp-match-date { font-size: 0.75rem; color: hsl(var(--tl-text-muted)); font-weight: 500; min-width: 55px; flex-shrink: 0; }
.tp-match-center { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex: 1; }
.tp-match-teams { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex: 1; }
.tp-match-team { display: flex; align-items: center; gap: 0.5rem; min-width: 100px; font-weight: 600; color: hsl(var(--tl-text)); font-size: 0.85rem; text-decoration: none; transition: opacity 0.2s; }
.tp-match-team:hover { opacity: 0.8; }
.tp-match-team.left { justify-content: flex-end; text-align: right; }
.tp-match-team.right { justify-content: flex-start; text-align: left; }
.tp-match-team-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.tp-match-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.tp-match-score { font-size: 0.95rem; color: hsl(var(--tl-text)); font-weight: 700; padding: 0.2rem 0.5rem; background: hsla(var(--tl-bg), 0.5); border: 1px solid hsla(var(--tl-border), 0.4); min-width: 45px; text-align: center; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.tp-match-link { padding: 0.5rem 1rem; background: hsla(var(--tl-orange), 0.1); color: hsl(var(--tl-orange)); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; text-align: center; clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px)); }
.tp-match-link:hover { background: hsl(var(--tl-orange)); color: white; }
.tp-league-section { margin-bottom: 1.5rem; }
.tp-league-header { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--tl-orange)); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid hsla(var(--tl-orange), 0.3); }

/* Ranking Graph */
.tp-graph-container { background: hsl(var(--tl-bg-elevated)); padding: 1.5rem; margin-top: 1.5rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.tp-graph-title { font-size: 1rem; font-weight: 600; color: hsl(var(--tl-text)); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.tp-graph-title i { color: hsl(var(--tl-orange)); }

/* Empty state */
.tp-empty { text-align: center; padding: 3rem; color: hsl(var(--tl-text-muted)); }
.tp-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

/* Back link */
.tp-back { display: inline-flex; align-items: center; gap: 0.5rem; color: hsl(var(--tl-text-muted)); text-decoration: none; margin-bottom: 1rem; font-size: 0.9rem; transition: color 0.2s; }
.tp-back:hover { color: hsl(var(--tl-orange)); }

/* Responsive */
@media (max-width: 768px) {
  .tp-hero-content { flex-direction: column; text-align: center; }
  .tp-logo-wrap { padding: 1.5rem; }
  .tp-info { padding: 1.25rem; }
  .tp-stats { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .tp-match { flex-direction: column; text-align: center; gap: 0.5rem; padding: 1rem; }
  .tp-match-teams { justify-content: center; width: 100%; }
  .tp-match-date { min-width: unset; }
  .tp-player { flex-wrap: wrap; justify-content: center; text-align: center; }
  .tp-player-info { width: 100%; }
  .tp-player-stats { width: 100%; justify-content: center; margin-top: 0.5rem; margin-left: 0; }
  .tp-hero .pp-socials-sidebar { flex-direction: row; justify-content: center; border-left: none; border-top: 1px solid hsla(var(--tl-border), 0.3); padding: 1rem; gap: 0.75rem; min-width: unset; }
}