/* =========================
   tournament.css - V2 (Tech Blue Theme)
   ========================= */

/* ---------------------------
   Imports / Variables
   --------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --page-bg: #1A212E;
  --section-bg: #131821;
  --card-bg: #1F2735;
  --card-2: #2B3342;

  --accent-main: #00A6FF;       
  --accent-secondary: #00FFE0;  
  --accent: var(--accent-main);
  --accent-2: #7ABFFF;

  --glow-blue: rgba(0, 166, 255, 0.7);
  --glow-white: rgba(255, 255, 255, 0.2);
  --accent-glow: var(--glow-blue);

  --text: #F0F8FF;
  --muted: #A3B3C8;
  --border: rgba(255,255,255,0.08);

  --radius: 10px;
  --btn-radius: 8px;
  --anim-smooth: 0.3s;
}

/* ---------------------------
   Reset / Base
   --------------------------- */
body {
  margin:0;
  background-color: var(--page-bg);
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-size:15px;
  letter-spacing:0.2px;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeSlideUp {
  from { opacity:0; transform: translateY(25px); }
  to { opacity:1; transform: translateY(0); }
}

/* ---------------------------
   Layout Containers
   --------------------------- */
.container {
  width: min(1180px, 92%);
  margin: 26px auto;
  padding-bottom: 48px;
}

/* ---------------------------
   Hero Section
   --------------------------- */
#hero-section {
  width:100%;
  min-height:340px;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
#hero-section::before {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,10,18,0.35), rgba(6,10,18,0.55));
}
.hero-content { position:relative; z-index:2; text-align:center; padding:28px 20px; animation: fadeSlideUp 0.6s ease forwards; }
.hero-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color:var(--accent-main); margin:0 0 6px 0; transition: color var(--anim-smooth) ease; text-shadow: var(--hero-text-shadow); }
.hero-content p { margin:0 auto; max-width:760px; color: var(--hero-text-strong, var(--text)); text-shadow: var(--hero-text-shadow); }

h2 { margin:0 0 10px 0; color:var(--text); font-weight:500; transition: color var(--anim-smooth) ease; }
h2:hover { color: var(--accent-main); }

/* ---------------------------
   CURRENT TOURNAMENTS (SCROLL)
   --------------------------- */
#current-tournaments { padding: var(--section-pad-y) 0; margin-top: var(--section-gap); animation: fadeSlideUp 0.6s ease forwards; }

#current-tournaments .card-scroll { 
    display: flex; 
    gap: 24px; 
    justify-content: flex-start; 
    padding: 20px 16px; 
    overflow-x: auto; 
    flex-wrap: nowrap; 
    -webkit-overflow-scrolling: touch; 
}
#current-tournaments .card-scroll::-webkit-scrollbar { height:10px; }
#current-tournaments .card-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, rgba(0,166,255,0.4), rgba(0,255,224,0.4)); border-radius:999px; border:2px solid transparent; background-clip: padding-box; }


/* =========================================
   NEW MODERN CARD (NO EXTERNAL FONTS)
   ========================================= */

.tournament-card {
    min-width: 300px; 
    max-width: 340px;
    background-color: var(--card-bg); 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevents shrinking in flex container */
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 166, 255, 0.15); 
    border-color: var(--accent-main);
}

/* Image Section */
.card-image-container {
    position: relative;
    height: 160px;
    width: 100%;
    /* Fix for hover gap/interruption: Ensure background is dark */
    background-color: var(--card-bg); 
    overflow: hidden;
    /* Create a stacking context to clip the child properly */
    z-index: 1; 
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    /* Fix to prevent sub-pixel bleeding */
    transform-origin: center;
    backface-visibility: hidden; 
}

.tournament-card:hover .card-img {
    transform: scale(1.1);
}

.card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--card-bg), transparent);
    /* Ensure gradient sits above image but below text */
    pointer-events: none;
}

/* Badges */
.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(19, 24, 33, 0.85); 
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    z-index: 2;
    border: 1px solid var(--border);
}

.badge-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-main); 
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 0 10px var(--glow-blue);
}

/* Content Section */
.card-content {
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: -1px; /* Overlap slightly to fix any gap */
    background-color: var(--card-bg);
}

.title-area {
    margin-top: -10px;
    margin-bottom: 16px;
}

.tourney-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.tourney-host {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.02);
}

.info-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Icon filters for color without SVG code */
.icon-accent { filter: drop-shadow(0 0 1px var(--accent-main)); }
.icon-gold { filter: sepia(100%) saturate(500%) hue-rotate(5deg); }

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.prize-value {
    color: var(--accent-secondary); 
    text-shadow: 0 0 10px rgba(0, 255, 224, 0.2);
}

/* Teams Progress */
.teams-section {
    margin-bottom: 20px;
    margin-top: auto; 
}

.teams-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--muted);
}

.teams-count {
    color: var(--text);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-main); 
    border-radius: 10px;
    box-shadow: 0 0 10px var(--glow-blue);
}

/* Footer Buttons */
.card-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
}

.btn {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
}

.btn-primary:hover {
    background: var(--accent-main);
    color: #fff;
    box-shadow: 0 0 15px var(--glow-blue);
    transform: translateY(-2px);
}

/* =========================================
   HORIZONTAL ROW CARD (For Future/Past)
   ========================================= */

.vertical-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 0;
}

.tourney-row-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeSlideUp 0.6s ease forwards;
}

.tourney-row-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* --- Row Card Image Container (Default/Mobile) --- */
.tr-image-section {
  position: relative;
  height: 180px; /* Mobile Only: Fixed height */
  overflow: hidden;
  background-color: var(--section-bg);
  width: 100%;
}

/* --- Row Card Image --- */
.tr-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block; 
}

.tourney-row-card:hover .tr-img {
  transform: scale(1.08);
}

.tr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 33, 46, 0.85), transparent);
  pointer-events: none;
  z-index: 1;
}

/* --- Badges inside Row Card --- */
.tr-game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(19, 24, 33, 0.85); 
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    z-index: 2;
    border: 1px solid var(--border);
}

.tr-status {
  position: absolute;
  top: 12px;
  right: 12px; 
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tr-status.open {
  background: rgba(0, 166, 255, 0.15);
  border: 1px solid rgba(0, 166, 255, 0.4);
  color: var(--accent-main);
}
.tr-status.closed {
  background: rgba(163, 179, 200, 0.15);
  border: 1px solid rgba(163, 179, 200, 0.3);
  color: var(--muted);
}
.tr-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
.tr-status.open .tr-status-dot {
  box-shadow: 0 0 6px currentColor;
}

/* --- Row Card Content --- */
.tr-content-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to left, var(--card-bg), rgba(31, 39, 53, 0.95));
}

.tr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tr-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text);
}

.tr-slogan {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-main);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 6px;
}

.tr-date-badge {
  text-align: right;
  display: none; 
}
@media(min-width: 500px) {
    .tr-date-badge { display: block; }
}

.tr-date-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.tr-date-val {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text);
}

/* Stats Row (Pills) */
.tr-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 600px) {
  .tr-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.tr-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
}

.tr-stat-icon {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.tr-stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.tr-stat-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.tr-stat-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* Footer Section */
.tr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.tr-footer-info {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-btn {
  background: var(--accent-main);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Shine effect on button */
.tr-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}
.tourney-row-card:hover .tr-btn::after {
  left: 100%;
}

.tr-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 15px var(--glow-blue);
  transform: translateX(-2px);
}

/* Specific styling for PAST cards (grayscale, different button) */
.tourney-row-card.past {
  opacity: 0.85;
}
.tourney-row-card.past:hover {
  opacity: 1;
}
.tourney-row-card.past .tr-image-section {
  filter: grayscale(80%);
  transition: filter 0.3s;
}
.tourney-row-card.past:hover .tr-image-section {
  filter: grayscale(0%);
}
.tourney-row-card.past .tr-btn {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
}
.tourney-row-card.past .tr-btn:hover {
  background: var(--card-2);
  color: var(--text);
  border-color: var(--text);
  box-shadow: none;
}

/* =========================================
   TOOLTIP STYLES (Replaces info-icon)
   ========================================= */

/* Tooltip Wrapper around existing icon */
.tooltip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

/* Tooltip Text */
.tooltip-wrapper .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    
    /* Position */
    position: absolute;
    z-index: 100;
    bottom: 140%; 
    left: 50%;
    transform: translateX(-50%);
    
    /* Style */
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Prevent flickering */
}

/* Arrow */
.tooltip-wrapper .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

/* Hover State */
.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* =========================================
   DESKTOP OVERRIDES (Placed last to ensure priority)
   ========================================= */
@media (min-width: 800px) {
  .tourney-row-card {
    flex-direction: row;
    align-items: stretch; /* Ensures both sides are equal height */
    min-height: 200px;
  }
  
  .tr-image-section {
    width: 35%;
    flex-shrink: 0;
    /* IMPORTANT: Override fixed mobile height with auto/stretch */
    height: auto; 
    position: relative;
    border-right: 1px solid var(--border);
  }

  /* ADDED: Ensure content section grows to fill remaining space */
  .tr-content-section {
    flex: 1;
    width: auto; /* Allow growth */
  }
}

.article-info { margin-top: 30px; padding: 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); animation: fadeSlideUp 0.7s ease forwards; }
.article-info h2 { color: var(--accent-main); margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px dashed var(--border); }
.article-info p { margin-bottom: 15px; line-height: 1.7; color: var(--muted); font-size: 16px; }

.article-tabs { margin-top: 30px; }
.tab-buttons { display: flex; gap: 6px; border-bottom: 1px solid var(--border); padding-left: 6px; }
.tab-buttons button { width: 38px; height: 38px; border: 1px solid var(--border); border-bottom: none; border-radius: 6px 6px 0 0; background: var(--card-bg); color: var(--muted); font-weight: 600; cursor: pointer; transition: background var(--anim-smooth), color var(--anim-smooth); }
.tab-buttons button:hover { background: rgba(0, 166, 255, 0.1); color: var(--accent-main); }
.tab-buttons button.active, .tab-buttons button[aria-selected="true"] { background: var(--page-bg); color: var(--accent-main); font-weight: 700; border-color: var(--accent-main); border-bottom: none; position: relative; z-index: 2; }
.tab-content { border: 1px solid var(--accent-main); border-radius: 0 8px 8px 8px; margin-top: -1px; background: var(--page-bg); padding: 20px; }
.tab-content .article-info { display: none; padding: 0; border: none; background: transparent; }
.tab-content .article-info.active { display: block; }

@media (max-width: 900px) {
  .ft-content { padding: 10px; margin: 8px 0; }
  .ft-content img { width: 100px; margin-right: 12px; }
}
@media (max-width: 600px) {
  .ft-content { display: flex; flex-direction: row; align-items: stretch; margin: 6px 0; min-height: 90px; padding: 8px; }
  .ft-content img { flex: 0 0 25%; height: auto; border-radius: 6px 0 0 6px; }
  .tournament-card { min-width: 280px; max-width: 300px; }
}

@media (max-width: 768px) {
  .container {
    width: 94%;
    margin: 18px auto;
    padding-bottom: 30px;
  }

  #hero-section {
    min-height: 260px;
    background-attachment: scroll;
  }

  #current-tournaments .card-scroll {
    padding: 14px 8px;
    gap: 14px;
  }

  .tournament-card {
    min-width: 260px;
    max-width: 280px;
  }

  .card-content {
    padding: 0 16px 16px;
  }

  .tr-content-section {
    padding: 14px;
  }

  .tr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tr-title h3 {
    font-size: 1.2rem;
  }

  .tr-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tr-btn {
    justify-content: center;
  }

  .tab-content {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 96%;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.92rem;
  }

  .tournament-card {
    min-width: 84vw;
    max-width: 84vw;
  }

  .title-area {
    margin-bottom: 12px;
  }

  .tourney-title {
    font-size: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tr-stats-grid {
    gap: 8px;
  }

  .tr-stat-pill {
    padding: 5px 8px;
    gap: 6px;
  }

  .tr-footer-info {
    font-size: 0.72rem;
    gap: 8px;
  }

  .tooltip-wrapper .tooltip-text {
    width: min(170px, 76vw);
    font-size: 0.7rem;
  }
}


.tournaments-empty {
  padding: 32px 24px;
  margin: 12px 0;
  width: 100%;
  min-height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.tournaments-empty__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tournaments-empty__subtitle {
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
}

/* =====================================================
   RU TOURNAMENTS REDESIGN (SCOPED)
   ===================================================== */
.tournaments-ru-page {
  --tour-accent-a: #43ecff;
  --tour-accent-b: #57ffbe;
  --tour-panel: rgba(8, 24, 39, 0.9);
  --tour-panel-2: rgba(7, 19, 31, 0.94);
  --tour-border: rgba(106, 232, 255, 0.28);
  background:
    radial-gradient(1100px 560px at 12% 10%, rgba(67, 236, 255, 0.12), transparent 58%),
    radial-gradient(900px 520px at 88% 86%, rgba(87, 255, 190, 0.1), transparent 54%),
    linear-gradient(180deg, #04101a, #071723 40%, #05121d);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.tournaments-ru-page main {
  padding-bottom: 24px;
}

.tournaments-ru-page #hero-section {
  width: min(1360px, calc(100% - 32px));
  min-height: clamp(280px, 42vw, 430px);
  margin: 16px auto 0;
  border-radius: 22px;
  border: 1px solid var(--tour-border);
  background-attachment: scroll;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.tournaments-ru-page #hero-section::before {
  background:
    linear-gradient(185deg, rgba(5, 16, 28, 0.4), rgba(5, 16, 28, 0.72)),
    radial-gradient(circle at 12% 10%, rgba(67, 236, 255, 0.24), transparent 50%);
}

.tournaments-ru-page #hero-section::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 255, 190, 0.26), rgba(87, 255, 190, 0));
  filter: blur(8px);
  pointer-events: none;
}

.tournaments-ru-page .hero-content h2 {
  color: #eaf8ff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

.tournaments-ru-page .hero-content p {
  color: #b8d1e4;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.tournaments-ru-page .container {
  width: min(1360px, calc(100% - 32px));
  margin: 18px auto 0;
  padding-bottom: 64px;
}

.tournaments-ru-page .tour-intro {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--tour-border);
  padding: 22px 20px;
  margin-bottom: 10px;
  background:
    linear-gradient(145deg, rgba(8, 28, 45, 0.95), rgba(6, 18, 32, 0.9)),
    radial-gradient(circle at 94% 5%, rgba(87, 255, 190, 0.2), transparent 38%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

.tournaments-ru-page .tour-intro::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 236, 255, 0.22), rgba(67, 236, 255, 0));
  filter: blur(6px);
  pointer-events: none;
}

.tournaments-ru-page .tour-intro__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(106, 232, 255, 0.45);
  background: rgba(7, 24, 38, 0.72);
  color: #c9f9ff;
  padding: 6px 11px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tournaments-ru-page .tour-intro__title {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  color: #eefaff;
  letter-spacing: -0.01em;
}

.tournaments-ru-page .tour-intro__text {
  margin: 0;
  max-width: 820px;
  color: #a9c2d6;
  font-size: 0.97rem;
  line-height: 1.6;
}

.tournaments-ru-page .tour-intro__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournaments-ru-page .tour-intro__chips span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(106, 232, 255, 0.32);
  background: rgba(8, 29, 46, 0.72);
  color: #d6f5ff;
  font-size: 0.76rem;
  font-weight: 600;
}

.tournaments-ru-page #current-tournaments,
.tournaments-ru-page .future-tournament,
.tournaments-ru-page #past-tournaments,
.tournaments-ru-page .article-tabs {
  margin-top: 22px;
}

.tournaments-ru-page #current-tournaments > h2,
.tournaments-ru-page .future-tournament > h2,
.tournaments-ru-page #past-tournaments > h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.tournaments-ru-page #current-tournaments .card-scroll {
  gap: 14px;
  padding: 6px 2px 10px;
}

.tournaments-ru-page .tournament-card {
  min-width: 320px;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid var(--tour-border);
  background:
    linear-gradient(170deg, var(--tour-panel), var(--tour-panel-2)),
    radial-gradient(circle at 92% 8%, rgba(106, 232, 255, 0.14), transparent 40%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.tournaments-ru-page .tournament-card:hover {
  border-color: rgba(106, 232, 255, 0.58);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.tournaments-ru-page .card-content {
  padding: 0 18px 18px 18px;
}

.tournaments-ru-page .tourney-title {
  font-size: 1.1rem;
}

.tournaments-ru-page .info-item,
.tournaments-ru-page .tr-stat-pill {
  border-color: rgba(106, 232, 255, 0.16);
  background: rgba(7, 25, 40, 0.62);
}

.tournaments-ru-page .btn-primary {
  border-color: rgba(106, 232, 255, 0.7);
  color: #c9f8ff;
}

.tournaments-ru-page .btn-primary:hover {
  background: linear-gradient(90deg, var(--tour-accent-a), var(--tour-accent-b));
  border-color: transparent;
  color: #052130;
  box-shadow: 0 0 0 3px rgba(67, 236, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tournaments-ru-page .tourney-row-card {
  border-radius: 16px;
  border: 1px solid var(--tour-border);
  background:
    linear-gradient(170deg, var(--tour-panel), var(--tour-panel-2)),
    radial-gradient(circle at 92% 8%, rgba(106, 232, 255, 0.1), transparent 38%);
}

.tournaments-ru-page .tourney-row-card:hover {
  border-color: rgba(106, 232, 255, 0.52);
  transform: translateY(-3px);
}

.tournaments-ru-page .tr-content-section {
  background: linear-gradient(to left, rgba(7, 24, 39, 0.96), rgba(6, 19, 31, 0.92));
}

.tournaments-ru-page .tr-btn {
  background: linear-gradient(90deg, var(--tour-accent-a), var(--tour-accent-b));
  color: #052130;
}

.tournaments-ru-page .tr-btn:hover {
  background: linear-gradient(90deg, #66f0ff, #7fffc9);
  box-shadow: 0 0 0 3px rgba(67, 236, 255, 0.16), 0 8px 20px rgba(0, 0, 0, 0.34);
}

.tournaments-ru-page .tourney-row-card.past .tr-btn {
  border-color: rgba(152, 170, 188, 0.6);
}

.tournaments-ru-page .article-tabs {
  border: 1px solid rgba(106, 232, 255, 0.22);
  border-radius: 16px;
  padding: 12px 12px 8px;
  background:
    linear-gradient(170deg, rgba(8, 27, 43, 0.82), rgba(7, 19, 32, 0.85)),
    radial-gradient(circle at 92% 7%, rgba(106, 232, 255, 0.12), transparent 38%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.tournaments-ru-page .tab-buttons {
  border-bottom-color: rgba(106, 232, 255, 0.24);
}

.tournaments-ru-page .tab-buttons button {
  border-color: rgba(106, 232, 255, 0.24);
  background: rgba(8, 27, 43, 0.85);
}

.tournaments-ru-page .tab-buttons button.active,
.tournaments-ru-page .tab-buttons button[aria-selected="true"] {
  border-color: rgba(106, 232, 255, 0.58);
}

.tournaments-ru-page .tab-content {
  border-color: rgba(106, 232, 255, 0.32);
  background: rgba(6, 19, 31, 0.84);
  border-radius: 0 12px 12px 12px;
}

@media (max-width: 900px) {
  .tournaments-ru-page #hero-section {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 16px;
  }

  .tournaments-ru-page .container {
    width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .tournaments-ru-page .tour-intro {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .tournaments-ru-page .tour-intro__title {
    font-size: 1.55rem;
  }

  .tournaments-ru-page .tournament-card {
    min-width: 280px;
    max-width: 300px;
  }

  .tournaments-ru-page .article-tabs {
    border-radius: 14px;
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .tournaments-ru-page #hero-section {
    min-height: 220px;
  }

  .tournaments-ru-page .container {
    width: calc(100% - 16px);
  }

  .tournaments-ru-page .tournament-card {
    min-width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .tournaments-ru-page .tour-intro__chips span {
    font-size: 0.68rem;
    padding: 4px 8px;
  }
}
