/* style.css - Ultra Premium Gosh-Style Design System for BIGWINNER */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --bg-dark: #060812;
  --bg-sidebar: #0d0f1b;
  --bg-header: rgba(6, 8, 18, 0.88);
  --bg-card: #12162b;
  --bg-card-hover: #1b203d;
  
  /* Luminous Brighter Neon Gosh Lights */
  --neon-purple: #00ffaa; /* Vivid Neon Mint Green */
  --neon-blue: #00f0ff;   /* Vivid Neon Cyan */
  --neon-emerald: #00ffaa;
  --neon-rose: #ff2a5f;
  --neon-cyan: #00f0ff;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #00ffaa 0%, #00f0ff 100%);
  --secondary-gradient: linear-gradient(135deg, #ff2a5f 0%, #ff5e87 100%);
  --cyber-gradient: linear-gradient(90deg, #ffffff 0%, #00f0ff 100%);
  
  /* Borders & Glass */
  --border-glass: rgba(255, 255, 255, 0.04);
  --border-glass-hover: rgba(0, 255, 170, 0.15);
  --border-neon-purple: rgba(0, 255, 170, 0.2);
  --border-neon-cyan: rgba(0, 240, 255, 0.25);
  
  /* Text */
  --text-main: #f3f4f6;
  --text-muted: #a3a3c2;
  --text-dim: #5c5c7a;
  
  /* Shadows */
  --shadow-neon-glow: 0 0 25px rgba(0, 255, 170, 0.25);
  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.3);
  --shadow-lux: 0 20px 50px rgba(0, 0, 0, 0.85);
  
  /* Sizes */
  --sidebar-width: 260px;
  --header-height: 70px;

  font-family: 'Poppins', 'Inter', 'Noto Sans KR', sans-serif;
  overflow: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 252, 86, 0.2) transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(25, 252, 86, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(25, 252, 86, 0.4);
  box-shadow: 0 0 10px rgba(25, 252, 86, 0.5);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Cinematic Opening Loader */
.intro-loader {
  position: fixed;
  inset: 0;
  background: #030406;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.intro-loader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.guarantee-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.guarantee-content h3 span {
  color: #00f0ff;
}

.intro-logo {
  font-size: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: introLogoReveal 1.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

.intro-logo span {
  color: inherit;
}

.intro-spinner {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.intro-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--cyber-gradient);
  animation: introBarMove 1.2s infinite ease-in-out;
}

@keyframes introLogoReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introBarMove {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Background Ambient Orbs */
.bg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}
.orb-1 {
  top: -10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--neon-purple) 0%, transparent 80%);
}
.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 80%);
}

/* App Layout Grid (3 Columns) */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* 1. Left Sidebar */
aside {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 0 8px 24px;
}

.logo {
  font-size: 26px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo span {
  color: inherit;
}

.menu-group {
  margin-bottom: 24px;
}

.menu-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-left: 12px;
  margin-bottom: 10px;
}

.menu-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-left i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.menu-item:hover a {
  color: #fff;
  background: rgba(25, 252, 86, 0.05);
}

.menu-item:hover .menu-item-left i {
  transform: scale(1.1);
  color: var(--neon-purple);
}

.menu-item.active a {
  color: #000000;
  background: #00ffaa;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.35);
}

.menu-item.active .menu-item-left i {
  color: #000000;
}

/* Recommended List Item Style */
.recommended-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

.rec-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.rec-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rec-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-game {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.rec-viewers i {
  color: var(--neon-purple);
  font-size: 12px;
}

.recommended-item.active a {
  background: rgba(25, 252, 86, 0.08);
  border-left: 3px solid var(--neon-purple);
  border-radius: 0 10px 10px 0;
  color: #fff;
}

.sidebar-banner {
  margin-top: auto;
  background: rgba(25, 252, 86, 0.03);
  border: 1px solid var(--border-neon-purple);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.banner-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: #00ffaa;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 252, 86, 0.3);
}

/* 2. Middle Main Section */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background-color: var(--bg-dark);
}

/* Header */
header {
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 9;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

.search-box {
  position: relative;
  width: 320px;
  margin: 0 auto; /* Center Alignment */
}

.search-box i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.search-box input {
  width: 100%;
  padding: 8px 36px 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--neon-purple);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(25, 252, 86, 0.15);
}

/* Gosh Style Green Login Button */
.login-btn {
  background: #00ffaa;
  color: #000000;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(25, 252, 86, 0.45);
  background: #1aff5a;
}

/* Workspace Wrapper */
.content-wrapper {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Center Top: Neon Player Container */
.main-player-section {
  width: 100%;
}

.neon-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  background: #030406;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border-neon-purple);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  padding: 16px;
}

.player-wrapper {
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Tabs Component Area */
.player-tabs-area {
  background: #000000;
  border: 1.5px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.tab-header {
  display: flex;
  background: #000000;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

/* Tab specific colorful styles */
.tab-btn[data-tab="profile"].active {
  color: #ff2a5f; /* Neon Rose for Profile */
  background: rgba(255, 42, 95, 0.04);
}
.tab-btn[data-tab="profile"].active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #ff2a5f;
  box-shadow: 0 0 10px #ff2a5f;
}

.tab-btn[data-tab="country"].active {
  color: #00f0ff; /* Cyan for Country */
  background: rgba(0, 240, 255, 0.04);
}
.tab-btn[data-tab="country"].active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.tab-btn[data-tab="chat"].active {
  color: #00ffaa; /* Mint Green for Chat */
  background: rgba(0, 255, 170, 0.04);
}
.tab-btn[data-tab="chat"].active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #00ffaa;
  box-shadow: 0 0 10px #00ffaa;
}

.tab-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

/* Profile Tab Design */
.profile-tab-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.profile-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: 12px;
  height: 100%;
}

.profile-desc p {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tag-item {
  font-size: 10px;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.profile-stats {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.profile-stats i {
  color: #00f0ff;
}



/* Chat Tab Design */
.chat-section-tab {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.chat-messages-tab {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  position: relative;
  z-index: 2;
}

.chat-input-area-tab {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.chat-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 4px 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-input-wrapper:focus-within {
  border-color: #00ff55; /* 네온 그린 포커스 */
  background: rgba(0, 255, 85, 0.02);
  box-shadow: 0 0 15px rgba(0, 255, 85, 0.3), inset 0 1px 0 rgba(0, 255, 85, 0.05);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chat-send-btn {
  background: #00ff55; /* 네온 그린 전송 버튼 */
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 85, 0.4);
}

.chat-send-btn i {
  font-size: 14px;
}

.chat-send-btn:hover {
  background: #1aff5a;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 255, 85, 0.6);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

video#theater-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Ambient Backlight */
canvas#ambient-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px) opacity(0.55);
  transform: scale(1.1);
}

.ambient-glow-backlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px) opacity(0.55);
  background: radial-gradient(circle, rgba(0, 255, 85, 0.35) 0%, rgba(0, 246, 255, 0.15) 50%, transparent 100%);
}

.player-loader {
  position: absolute;
  inset: 0;
  background: #040508;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
}

.loader-glow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--neon-purple);
  border-bottom-color: var(--neon-cyan);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(25, 252, 86, 0.2);
}

.loader-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  animation: pulse-ring 2s infinite;
}

/* Player Overlay Info */
.player-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 20px 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streamer-avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-neon-purple);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.streamer-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.streamer-text-details {
  flex: 1;
  margin-left: 14px;
  min-width: 0;
}

.streamer-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #19FC56;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-live-pulse .dot {
  width: 4px;
  height: 4px;
  background-color: #000;
  border-radius: 50%;
  animation: pulse-ring 1.2s infinite;
}

.streamer-name-overlay {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.streamer-title-overlay {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Green Live Join Button */
.join-stream-btn {
  background: #19FC56;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(25, 252, 86, 0.2);
}

.join-stream-btn:hover {
  transform: scale(1.02);
  background: #1aff5a;
  box-shadow: 0 4px 15px rgba(25, 252, 86, 0.4);
}

/* Center Bottom: Streamer Cards Grid */
.lives-grid-section,
.recommended-grid-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.lives-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.lives-grid::-webkit-scrollbar {
  height: 5px;
}
.lives-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.lives-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 170, 0.25);
  border-radius: 10px;
}
.lives-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 170, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

/* 3D Tilt Card */
.streamer-card {
  flex: 0 0 calc((100% - 70px) / 6);
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

.streamer-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-neon-purple);
  box-shadow: 0 8px 24px rgba(25, 252, 86, 0.08);
}

.streamer-card.active {
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(25, 252, 86, 0.15);
}

.thumbnail-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.streamer-card:hover .thumbnail-img {
  transform: scale(1.04);
}

.card-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.live-badge {
  background: var(--neon-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 42, 95, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-badge .pulse-dot {
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse-ring 1.2s infinite;
}

.viewers-badge {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.card-info {
  padding: 12px;
  display: flex;
  gap: 10px;
  flex: 1;
}

.streamer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.streamer-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-nickname {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.streamer-nickname i {
  color: var(--neon-cyan);
  font-size: 13px;
}

/* 3. Right Sidebar */
.right-panel {
  width: 370px;
  display: flex;
  flex-direction: column;
  background: #000000;
  border-left: 1px solid var(--border-glass);
  height: 100vh;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-streams-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  height: 100%;
  overflow: hidden;
}

.streams-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.stream-vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.stream-vertical-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-neon-purple);
  box-shadow: 0 4px 15px rgba(0, 255, 170, 0.15);
}

.stream-vertical-card.active {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.25);
}

.stream-vert-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.stream-vert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-vert-badge-row {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.stream-vert-badge-row .badge-live-pulse {
  font-size: 9px;
  padding: 2px 5px;
}

.stream-vert-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stream-vert-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-vert-name {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Responsive Styles */
@media (max-width: 1200px) {
  .right-panel {
    width: 320px;
  }
}

@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
    overflow-y: auto;
  }
  aside {
    transform: translateX(-100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
  }
  aside.open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
  }
  main {
    height: auto;
    overflow: visible;
  }
  .right-panel {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border-glass);
  }
  .chat-section {
    height: 380px;
  }
  .menu-toggle {
    display: block;
  }
  .streamer-card {
    flex: 0 0 calc((100% - 42px) / 4);
  }
}

@media (max-width: 640px) {
  .content-wrapper {
    padding: 12px;
  }
  .streamer-card {
    flex: 0 0 calc((100% - 28px) / 2.5);
  }
}

@media (max-width: 400px) {
  .streamer-card {
    flex: 0 0 calc((100% - 14px) / 1.8);
  }
}

/* 랭킹 테이블 관련 추가 스타일 */
.tournament-tab-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}



.ranking-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.ranking-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffaa00;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ranking-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

.ranking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 12px;
}

.ranking-row.header {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: var(--text-muted);
  border: none;
}

.ranking-row.gold {
  background: rgba(255, 170, 0, 0.08);
  border-color: rgba(255, 170, 0, 0.2);
}

.ranking-row.silver {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.ranking-row.bronze {
  background: rgba(184, 115, 51, 0.08);
  border-color: rgba(184, 115, 51, 0.2);
}

.col-rank {
  width: 40px;
  font-weight: 800;
}

.col-nick {
  flex: 1;
  font-weight: 600;
  text-align: left;
}

.col-prize {
  font-weight: 800;
  color: #ffaa00;
}

.medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.rank-1 .medal {
  background: #ffaa00;
  color: #000;
}

.rank-2 .medal {
  background: #e2e8f0;
  color: #000;
}

.rank-3 .medal {
  background: #b87333;
  color: #000;
}

/* Auth Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms cubic-bezier(0.25, 0.8, 0.25, 1), 
              backdrop-filter 350ms cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 350ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.75); /* Dark background overlay */
}

.auth-modal-card {
  background: #050508; /* Premium deep dark black */
  border: 1px solid rgba(0, 255, 85, 0.35); /* Neon green border point */
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.98), 
    0 0 30px rgba(0, 255, 85, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: 380px;
  padding: 30px;
  position: relative;
  
  /* scale-in (zoom from 0.9 to 1.0) and fade-in */
  transform: scale(0.9) translateY(15px);
  opacity: 0;
  filter: blur(4px);
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 300ms ease-out, 
              filter 300ms ease-out;
}

.modal-overlay.active .auth-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0px);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #a3a3c2;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 255, 85, 0.1);
  border-color: rgba(0, 255, 85, 0.3);
  color: #00ff55;
  box-shadow: 0 0 10px rgba(0, 255, 85, 0.2);
}

.auth-modal-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab-btn:hover {
  color: rgba(0, 255, 85, 0.8);
}

.auth-tab-btn.active {
  color: #00ff55; /* Neon green active tab text */
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ff55 0%, #ffaa00 100%); /* Neon green & Gold gradient */
  box-shadow: 0 0 10px rgba(0, 255, 85, 0.5);
}

.auth-modal-card .input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.auth-modal-card label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-modal-card input {
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.3s ease;
}

.auth-modal-card input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.auth-modal-card input:focus {
  border-color: #00ff55; /* Focus border: neon green */
  background: rgba(0, 255, 85, 0.02);
  box-shadow: 
    0 0 12px rgba(0, 255, 85, 0.2),
    inset 0 1px 0 rgba(0, 255, 85, 0.05);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00ff55 0%, #ffaa00 100%); /* Neon green & Gold accent */
  color: #000000; /* Dark text on bright background for premium contrast */
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 255, 85, 0.25);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1aff5a 0%, #ffd700 100%);
  box-shadow: 0 6px 20px rgba(0, 255, 85, 0.45);
}

.auth-submit-btn:active {
  transform: translateY(-0.5px);
}

.auth-error-msg {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.2);
  padding: 10px;
  border-radius: 6px;
  color: #ff3366;
  font-size: 12px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Ultra Premium Metal Chrome 3D Logo Styles (InBumTV Style Benchmarked)
   ========================================================================== */

/* 1. Chrome 3D Base Effect */
.chrome-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900; /* Extra bold for heavy metallic mass */
  letter-spacing: 1.5px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f2f5f7 35%,
    #8b949c 48%,
    #7a8288 52%,
    #dbe2e6 68%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Bevel edge highlight line */
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.85);
  
  /* 3D Extruded Bevel Shadows & Soft Ambient Shadow */
  filter: drop-shadow(0px 1px 0px #d8dcd0)
          drop-shadow(0px 2px 0px #b0b5ba)
          drop-shadow(0px 3px 0px #8a9196)
          drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.85));
          
  display: inline-block;
  vertical-align: middle;
}

/* 2. Shine & Lens Flare Effect Container */
.logo-shine-container {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

/* Horizontal Neon Light Beam (Blue Laser) */
.logo-shine-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(0, 240, 255, 0) 0%,
    rgba(0, 240, 255, 0.7) 25%,
    #ffffff 50%,
    rgba(0, 240, 255, 0.7) 75%,
    rgba(0, 240, 255, 0) 100%
  );
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8),
              0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
  animation: beamPulse 4s infinite ease-in-out;
}

/* Radial Lens Flare Glow (Sweep Motion) */
.logo-shine-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.95) 0%,
    rgba(0, 240, 255, 0.3) 30%,
    rgba(0, 240, 255, 0.05) 55%,
    transparent 70%
  );
  transform: scaleY(0.4) blur(1px);
  mix-blend-mode: screen;
  animation: flareSweep 4.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@keyframes beamPulse {
  0%, 100% {
    opacity: 0.4;
    height: 1px;
  }
  15% {
    opacity: 0.8;
    height: 3px;
  }
  30% {
    opacity: 0.4;
    height: 1px;
  }
}

@keyframes flareSweep {
  0% {
    left: -120%;
  }
  25% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* ==========================================
   Interactive Layout Resizer & Custom Control
   ========================================== */

/* 1. Drag Splitter (Resizer) */
.layout-resizer {
  width: 5px;
  background: rgba(255, 255, 255, 0.02);
  cursor: col-resize;
  z-index: 100;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
  height: 100vh;
}

.layout-resizer:hover,
.layout-resizer.active {
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

/* 2. Player Layout Control Toolbar */
.player-layout-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 22, 43, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 18px;
  margin: 0 auto 12px auto;
  max-width: 950px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 8;
  flex-wrap: wrap;
  gap: 12px;
}

.player-layout-control-bar .control-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-layout-control-bar .control-title i {
  color: var(--neon-blue);
}

.player-layout-control-bar .control-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Slider Custom Styling */
.player-layout-control-bar .slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.player-layout-control-bar .slider-group i {
  font-size: 14px;
}

.player-layout-control-bar #player-width-slider {
  -webkit-appearance: none;
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.player-layout-control-bar #player-width-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  cursor: pointer;
  transition: transform 0.1s;
}

.player-layout-control-bar #player-width-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.player-layout-control-bar #player-width-val {
  font-family: monospace;
  color: var(--neon-blue);
  font-weight: bold;
  min-width: 50px;
}

/* Layout Button Custom Styling */
.player-layout-control-bar .btn-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-layout-control-bar .layout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-layout-control-bar .layout-btn i {
  font-size: 13px;
}

.player-layout-control-bar .layout-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.player-layout-control-bar .layout-btn.active {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.player-layout-control-bar .swap-layout-btn {
  border: 1px solid rgba(0, 255, 170, 0.3);
  color: var(--neon-purple);
  border-radius: 6px;
  padding: 6px 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.player-layout-control-bar .swap-layout-btn:hover {
  background: rgba(0, 255, 170, 0.1);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.3);
}

/* Flipped Layout Swapping (row-reverse) */
.app-container.layout-swapped {
  flex-direction: row-reverse;
}

.app-container.layout-swapped aside {
  border-right: none;
  border-left: 1px solid var(--border-glass);
}

.app-container.layout-swapped .right-panel {
  border-left: none;
  border-right: 1px solid var(--border-glass);
}

/* Poppins Thin BIGWINNER Logo Styling */
.intro-logo,
.logo {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-weight: 100 !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  text-fill-color: unset !important;
  letter-spacing: 3px !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

.intro-logo span,
.logo span {
  color: #00f0ff !important; /* Luminous Blue for 'I' */
  font-weight: 100 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  text-fill-color: unset !important;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6), 0 0 5px rgba(0, 240, 255, 0.3) !important;
}

/* ==========================================================================
   조선 시대 계급 뱃지 및 특수 뽐내기 채팅 스타일 (Joseon Rank System)
   ========================================================================== */

/* 1. 기본 등급 뱃지 공통 스타일 */
.chat-badge[class*="badge-grade-"] {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
  display: inline-block;
  line-height: 1.3;
  border: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
}

/* 2. 각 계급별 배지 색상 디자인 */
.badge-grade-0 { background: #232325; color: #ffffff; } /* 개백정 */
.badge-grade-1 { background: #462c1e; color: #ffe6d5; } /* 백정 */
.badge-grade-2 { background: #2a5a2a; color: #ffffff; } /* 평민 */
.badge-grade-3 { background: #1e7041; color: #ffffff; } /* 양반 */
.badge-grade-4 { background: #1b5380; color: #ffffff; } /* 대감 */
.badge-grade-5 { background: #3e319c; color: #ffffff; } /* 동지사 */
.badge-grade-6 { background: #5d38a0; color: #ffffff; } /* 우참찬 */
.badge-grade-7 { background: #86259e; color: #ffffff; } /* 판서 */
.badge-grade-8 { background: #5a0eb3; color: #ffffff; } /* 좌찬성 */

/* 우의정 / 영의정: 붉은색 및 밝은 루비빛 디자인 (과한 글로우/애니메이션 제거) */
.badge-grade-9 { 
  background: #d60048; 
  color: #ffffff; 
  font-weight: 600;
} /* 우의정 */
.badge-grade-10 { 
  background: linear-gradient(135deg, #cc0044 0%, #5e00cc 100%); 
  color: #ffffff; 
  font-weight: 600;
} /* 영의정 */

/* 상감마마: 황금빛 왕관 배지 디자인 (글로우/애니메이션 제거) */
.badge-grade-11 { 
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%); 
  color: #000000; 
  font-weight: 700; 
} /* 상감마마 */

/* 3. 뽐내기 계급 전용 채팅 카드 데코레이션 */
/* 우의정 */
.chat-message.grade-woosang {
  border: none;
  background: rgba(255, 0, 85, 0.04) !important;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 0;
}
.chat-message.grade-woosang .chat-user {
  color: #ff3366 !important;
  font-weight: 600;
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
}

/* 영의정 */
.chat-message.grade-yeongsang {
  border: none;
  background: rgba(255, 0, 85, 0.08) !important;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
}
.chat-message.grade-yeongsang .chat-user {
  color: #ff0055 !important;
  font-weight: 650;
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
}
.chat-message.grade-yeongsang .chat-text {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px; /* 일반 채팅 폰트 크기 수준으로 복구 */
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
}

/* 상감마마: 황금빛 용포 테마 (과도한 텍스트 확대 및 발광 제거) */
.chat-message.grade-king {
  border: none;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 170, 0, 0.04) 100%) !important;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0;
  position: relative;
}
.chat-message.grade-king::before {
  content: '👑';
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 13px;
}
.chat-message.grade-king .chat-user {
  color: #ffd700 !important;
  font-weight: 700;
  font-size: 13px;
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
  letter-spacing: 0.5px;
}
.chat-message.grade-king .chat-text {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px; /* 일반 채팅 폰트 크기 수준으로 복구 */
  text-shadow: none !important;
  -webkit-text-stroke: none !important;
}

/* 상감마마 데모 바 스타일 */


/* 상감마마 납시오 텍스트 효과 */
.sanggam-text-glow {
  font-family: 'Gungsuh', '궁서', serif;
  text-shadow: none;
  -webkit-text-stroke: none;
}

/* 우측 프로필 슬라이드 패널 */
.slide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.user-slide-panel {
  position: fixed;
  top: 0;
  right: -380px; /* 초기 상태: 화면 우측 밖에 숨김 */
  width: 350px;
  height: 100vh;
  background: rgba(10, 11, 19, 0.96);
  border-left: 1.5px solid rgba(0, 255, 170, 0.25);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.user-slide-panel.active {
  right: 0;
}

.slide-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}
.slide-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.slide-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  flex-grow: 1;
}

.slide-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00ffaa, #00f0ff);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
  margin-bottom: 20px;
}
.slide-avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.slide-live-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0055;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  border: 2px solid #0a0b13;
  box-shadow: 0 2px 6px rgba(255, 0, 85, 0.4);
}

.user-slide-panel h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.slide-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.slide-info-list {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-info-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

.info-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-label i {
  font-size: 14px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

#slide-company {
  color: #ffaa00;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.15);
}

#slide-grade-detail {
  color: #00ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.15);
}

.slide-action-area {
  width: 100%;
  margin-top: auto;
}

.slide-action-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.15), rgba(0, 240, 255, 0.15));
  border: 1.5px solid rgba(0, 255, 170, 0.3);
  color: #00ffaa;
  font-weight: 700;
  height: 46px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.25s ease;
}

.slide-action-btn:hover {
  background: linear-gradient(135deg, #00ffaa, #00f0ff);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
  transform: translateY(-2px);
}
.slide-action-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   3D Globe Visualization Styles (Partner Countries)
   ========================================================================== */
.globe-section {
  width: 100%;
  margin-top: 15px;
  animation: fadeIn 0.4s ease-out;
}

.globe-layout-container {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  margin-top: 15px;
}

/* 정품인증국 정보 아코디언 — 기본 접힘(공란 없음), .expanded 시 아래로 슬라이드되며 펼쳐짐 */
.globe-info-panel {
  width: 100%;
  box-sizing: border-box;
  max-height: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(8, 10, 22, 0);
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s ease, opacity 0.4s ease,
              background 0.4s ease, border-color 0.4s ease;
}

.globe-info-panel.expanded {
  max-height: 640px;
  padding: 16px;
  border-color: rgba(0, 240, 255, 0.15);
  background: rgba(8, 10, 22, 0.85);
  opacity: 1;
  overflow-y: auto;
}

/* 핀 마커 스타일 */
.globe-marker-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transform: translate(-50%, -50%); /* 정확한 중심 앵커링 */
}

.globe-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.globe-marker-ping {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: markerPulse 1.8s infinite ease-out;
  z-index: 1;
  pointer-events: none;
}

.globe-marker-label {
  position: absolute;
  top: -28px;
  white-space: nowrap;
  background: rgba(5, 5, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
  transform: translateY(3px) scale(0.95);
  transition: all 0.25s ease;
  pointer-events: none;
}

/* 마커 호버 및 선택 효과 */
.globe-marker-container:hover .globe-marker-dot,
.globe-marker-container.hovered .globe-marker-dot {
  transform: scale(1.6);
}

.globe-marker-container:hover .globe-marker-label,
.globe-marker-container.hovered .globe-marker-label {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: rgba(5, 5, 8, 0.95);
  border-color: currentColor;
}

/* 정보 패널 상세 */
.info-panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.info-panel-content {
  animation: fadeIn 0.4s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.partner-country-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 8px;
}

.panel-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.partner-eng-name {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.panel-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
}

.panel-recent-users {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-recent-users h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-users-list {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.recent-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 12px;
}

.recent-user-item .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
}

.recent-user-item .user-details {
  flex: 1;
}

.recent-user-item .user-name {
  font-weight: 600;
  color: #fff;
}

.recent-user-item .user-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 1px;
}

.recent-user-item .user-action {
  font-size: 11px;
  font-weight: bold;
}

.panel-action {
  margin-top: auto;
}

/* 애니메이션 및 펄스 */
@keyframes markerPulse {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

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

/* 반응형 글로브 레이아웃 */
@media (max-width: 1024px) {
  .globe-layout-container {
    flex-direction: column;
    align-items: stretch;
  }
  .globe-info-panel {
    width: 100%;
    height: auto;
    max-height: 450px;
  }
}

/* ==========================================
   신생 파트너국 개척/등장 애니메이션 (CSS)
   ========================================== */
.globe-marker-container.newly-discovered {
  animation: markerAppear 2.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes markerAppear {
  0% {
    transform: translate(-50%, -50%) scale(0) translateY(50px);
    opacity: 0;
    filter: brightness(4) drop-shadow(0 0 20px rgba(var(--neon-color-rgb), 0.8));
  }
  15% {
    transform: translate(-50%, -50%) scale(1.6) translateY(-15px);
    opacity: 0.9;
    filter: brightness(2) drop-shadow(0 0 30px rgba(var(--neon-color-rgb), 1));
  }
  40% {
    transform: translate(-50%, -50%) scale(0.9) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) translateY(0);
    opacity: 1;
    filter: brightness(1);
  }
}

/* 중앙 시네마틱 화성 글로브 — 정의는 아래 'BIGWINNER Mars Globe' 섹션으로 단일화 (중복 제거) */

/* ==========================================================================
   BIGWINNER Mars Globe & Partnership Interaction Custom Styles
   ========================================================================== */

/* 메인 플레이어 구역에서의 레이아웃 전환 */
.main-player-section {
  position: relative;
  overflow: hidden;
  min-height: 480px; /* 고정 최소 높이 확보 */
}

/* 플레이어 슬라이드 아웃 트랜지션 (좌측으로 슬라이드되며 사라짐) */
.neon-player-wrapper {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  transform: translateX(0);
  opacity: 1;
  width: 100%;
}

.neon-player-wrapper.slide-out {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

/* 중앙 시네마틱 화성 글로브 래퍼 (우측에서 좌측으로 슬라이드인) */
.central-globe-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: radial-gradient(circle at center, #0b0c16 0%, #030406 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border-neon-cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.central-globe-wrapper.slide-in {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  /* position 은 base(absolute, inset:0) 유지 → .main-player-section(min-height:480px) 안에서
     매 등장 시 안정적으로 영역을 채움. relative 로 바꾸면 재진입 시 height:100% 가 0 으로 붕괴됨(버그). */
}

#central-globe-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.back-to-player-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 10;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.back-to-player-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

/* 주요 이벤트 & 실시간 활동 통계 오버레이 패널 */
.central-info-overlay {
  position: absolute;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: 350px;
  background: rgba(6, 8, 16, 0.88);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  z-index: 10;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

.central-info-overlay.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.overlay-close-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-close-btn:hover {
  color: var(--neon-rose);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.overlay-header {
  margin-bottom: 20px;
}

.overlay-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(0, 255, 170, 0.1);
  color: var(--neon-purple);
  border: 1px solid rgba(0, 255, 170, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.overlay-header h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 2px 0;
}

.overlay-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.overlay-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-stat-card .label {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.overlay-stat-card .value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.overlay-event-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 20px;
}

.overlay-event-section h4 {
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}

.overlay-event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.overlay-action-btn {
  width: 100%;
  height: 40px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.overlay-action-btn:hover {
  transform: translateY(-1px);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4개 파트너국 퀵 카드 관련 추가 */
.partner-quick-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-quick-card:hover {
  transform: translateY(-1px);
}

/* (모바일에서도 중앙 화성 글로브 노출 — 기존 숨김/슬라이드차단 규칙 제거. biplays 지시 2026-06-17) */

/* ============================================================
   모바일 앱쉘 (≤768px) — 하단 탭바 + 풀스크린 패널 (Claude 디자인)
   데스크톱엔 영향 없음.
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  z-index: 300;
  background: rgba(8, 10, 18, 0.97);
  border-top: 1px solid rgba(0, 240, 255, 0.18);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mnav-item {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted, #8a8f9c);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.mnav-item i { font-size: 21px; }
.mnav-item.active { color: #00ffaa; text-shadow: 0 0 10px rgba(0, 255, 170, 0.5); }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }

  /* 데스크톱 전용 요소 숨김 */
  #resizer-left, #resizer-right, .player-layout-control-bar { display: none !important; }

  /* 단일 컬럼 레이아웃 */
  .app-container { display: block; }
  main { width: 100%; min-width: 0; }
  .content-wrapper { padding: 12px 12px 76px 12px; }

  /* 사이드바 = 오프캔버스 드로어 */
  #sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 78%; max-width: 290px;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #sidebar.open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,0.6); }

  /* 헤더 sticky + 햄버거 노출 */
  header { position: sticky; top: 0; z-index: 100; padding: 10px 12px; }
  .menu-toggle { display: flex !important; }

  /* 플레이어 풀폭 */
  .main-player-section { min-height: auto; }
  .neon-player-wrapper { max-width: 100% !important; margin: 0 !important; }
  .lives-grid, .live-streams-list { -webkit-overflow-scrolling: touch; }

  /* 우측 패널 = 풀스크린 슬라이드 뷰 (기본 숨김, 하단 탭바 위까지) */
  .right-panel {
    position: fixed; top: 0; left: 0; right: 0; bottom: 60px;
    width: 100% !important; max-width: none !important;
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 12px;
  }
  .app-container.mobile-panel-open .right-panel { transform: translateX(0); }
  .app-container.mobile-panel-open main { display: none; }
}
