* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #ff6b6b;
  --color-primary-dark: #e85d75;
  --color-primary-light: #ff8585;
  --color-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-lighter: #fafbfc;
  --color-border: #e5e7eb;
  --color-accent: #e85d75;
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;

  --color-background: #f9f9f9;
  --color-light-gray: #f5f5f5;
  --color-medium-gray: #e8e8e8;

  --color-success: #10b981;
  --color-danger: #ef4444;

  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-lg: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px rgba(255, 107, 107, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 28px;
  --line-height-tight: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

/* ========================================
   HEADER SECTION
   ======================================== */

.livestream-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.header-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-subtitle {
  font-size: var(--font-size-base);
  opacity: 0.95;
  font-weight: 300;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.livestream-container {
  min-height: 100vh;
  background-color: var(--color-background);
}

.livestream-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* ========================================
   ROOMS GRID
   ======================================== */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ROOM CARD
   ======================================== */

.room-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

/* Card Top - Thumbnail Section */

.card-top {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-light-gray);
}

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

.room-card:hover .card-thumbnail {
  transform: scale(1.05);
}

/* Live Badge */

.live-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  letter-spacing: 0.5px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-white);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.live-text {
  display: inline-block;
}

/* Viewer Count */

.viewer-count {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px)
}

.viewer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.viewer-number {
  display: inline-block;
}

/* Card Bottom - Info Section */

.card-bottom {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

/* Room Info */

.room-info {
  flex: 1;
}

.room-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-host {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
}

.room-host strong {
  color: var(--color-primary);
  font-weight: 700;
}

.room-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

/* Room Stats */

.room-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-medium-gray);
  border-bottom: 1px solid var(--color-medium-gray);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
}

/* Tags */

.tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.tag {
  background-color: var(--color-light-gray);
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Join Button */

.join-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.join-btn:active {
  transform: translateY(0);
}

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

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  animation: fadeIn 0.5s ease-out;
}

.empty-state-content {
  text-align: center;
  max-width: 400px;
  padding: var(--spacing-2xl);
}

.empty-state-icon {
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.empty-state-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
}

.empty-state-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
}

.empty-state-content.empty-state-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 12px 20px;
  text-align: center;
}

.empty-illustration {
  flex: 0 0 62%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-illustration svg {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
}

.empty-text {
  flex: 0 0 38%;
  padding: 8px 6%;
  text-align: center;
}

.empty-state-content.empty-state-layout .empty-state-title {
  font-size: 32px;
  color: #ff6b6b;
  line-height: 1.15;
}

.empty-state-content.empty-state-layout .empty-state-description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .empty-state-content.empty-state-layout {
    gap: 28px;
    max-width: 1000px;
  }

  .empty-illustration {
    flex: 0 0 58%;
  }

  .empty-text {
    flex: 0 0 42%;
    padding: 8px 4%;
  }

  .empty-illustration svg {
    max-width: 620px;
  }

  .empty-state-content.empty-state-layout .empty-state-title {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .empty-state-content.empty-state-layout {
    gap: 24px;
    padding: 20px;
  }

  .empty-illustration {
    flex: 0 0 55%;
  }

  .empty-text {
    flex: 0 0 45%;
    padding: 6px 4%;
  }

  .empty-illustration svg {
    max-width: 520px;
  }

  .empty-state-content.empty-state-layout .empty-state-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .empty-state-content.empty-state-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 12px;
  }

  .empty-illustration {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
  }

  .empty-illustration svg {
    width: 100%;
    max-width: 420px;
  }

  .empty-text {
    order: 2;
    width: 100%;
    flex: 0 0 auto;
    padding: 0 8px;
  }

  .empty-state-content.empty-state-layout .empty-state-title {
    font-size: 22px;
  }

  .empty-state-content.empty-state-layout .empty-state-description {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .empty-illustration svg {
    max-width: 360px;
  }

  .empty-state-content.empty-state-layout .empty-state-title {
    font-size: 20px;
  }

  .empty-state-content.empty-state-layout .empty-state-description {
    font-size: 14px;
  }
}

/* ========================================
   TOGGLING BETWEEN EMPTY STATE AND ROOMS
   ======================================== */

.empty-state.hidden,
.rooms-list.hidden {
  display: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .livestream-main {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }

  .rooms-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xl);
  }

  .header-title {
    font-size: var(--font-size-2xl);
  }
}

/* Large Screens (1024px and up) */
@media (min-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
  }

  .card-bottom {
    padding: var(--spacing-xl);
  }
}

/* Large Screens (1280px and up) */
@media (min-width: 1280px) {
  .livestream-main {
    padding: var(--spacing-2xl) var(--spacing-2xl);
  }
}

/* Mobile (under 640px) */
@media (max-width: 640px) {
  .livestream-header {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .header-title {
    font-size: var(--font-size-xl);
  }

  .header-subtitle {
    font-size: var(--font-size-sm);
  }

  .livestream-main {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .card-top {
    height: 180px;
  }

  .room-stats {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .livestream-header {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .header-title {
    font-size: var(--font-size-xl);
  }

  .card-bottom {
    padding: var(--spacing-md);
  }

  .live-badge {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
  }

  .viewer-count {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
}

/* Print Styles */
@media print {

}


/* Shortcode Form */

.my-rooms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============================================
  Header
  ============================================ */
.my-rooms-header {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  gap: 16px;
}

.my-rooms-header-left {
  flex: 1 1 auto;
  min-width: 0;
}

.my-rooms-header-actions {
  flex: 0 0 auto;
}

.create-room-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: var(--color-white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  max-height: 90vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.create-room-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.create-room-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
}

.create-room-modal-header,
.create-room-modal-footer {
  position: static;
}

.create-room-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

.my-rooms-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.my-rooms-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ============================================
  Rooms List Grid
  ============================================ */
.my-rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* ============================================
  Room Item Card
  ============================================ */
.room-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px var(--color-shadow);
}

.room-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-shadow-lg);
  transform: translateY(-2px);
}

/* Room Item Header */
.room-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.room-item-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.room-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background-color: #dff0ff;
  color: #0061cc;
}

.room-status-badge.inactive {
  background-color: #f3f4f6;
  color: var(--color-text-light);
}

/* Room Item Stats */
.room-item-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.live-indicator {
  color: var(--color-primary);
  font-weight: 700;
}

/* Room Item Description */
.room-item-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Room Item Tags */
.room-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-bg-lighter);
  color: var(--color-text-secondary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Room Item Actions */
.room-item-actions {
  display: flex;
  gap: 12px;
}

.room-item-actions .btn {
  flex: 1;
}

/* ============================================
  Empty State
  ============================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px dashed var(--color-border);
}

.empty-state.hidden {
  display: none;
}

.empty-state-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.empty-state-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.empty-state-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
  Buttons
  ============================================ */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-lighter);
  border-color: var(--color-text-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-white);
  border: 2px solid var(--color-danger);
}

.btn-danger:hover {
  background-color: transparent;
  color: var(--color-danger);
}

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn.large {
  padding: 14px 32px;
  font-size: 16px;
}

/* ============================================
  Create Room Sticky Button
  ============================================ */
.create-room-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

/* ============================================
  Modal Overlay
  ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.hidden {
  display: none;
}

/* Create Room Modal - Tag list */
.create-room-modal .room-item-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}

.create-room-modal .room-item-tags .tag {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .05s;
}

.create-room-modal .room-item-tags .tag:hover {
  background: #ffffff;
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.create-room-modal .room-item-tags .tag:active {
  transform: translateY(1px);
}

/* Checkbox look & feel */
.create-room-modal .room-item-tags .tag input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  border-radius: 6px;
}

.create-room-modal .room-item-tags .tag:has(input[type="checkbox"]:checked) {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .12);
}

/* Mobile spacing */
@media (max-width: 480px) {
  .create-room-modal .room-item-tags .tag {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

/* ============================================
  Settings Modal
  ============================================ */
.settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.settings-modal.hidden {
  display: none;
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
}

.settings-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.settings-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.settings-modal-close:hover {
  color: var(--color-text-primary);
}

.settings-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px;
  background: var(--color-bg-lighter);
}

.settings-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================
  Settings Groups
  ============================================ */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.settings-input-group {
  display: flex;
  gap: 12px;
}

.settings-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-text-primary);
}

.settings-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================
  Toggle Settings
  ============================================ */
.settings-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--color-white);
  border-radius: 6px;
}

.settings-toggle-label {
  font-size: 14px;
  color: var(--color-text-primary);
  flex: 1;
}

/* ============================================
  Toggle Switch
  ============================================ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  border-radius: 28px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #93c5fd;
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

/* Delete Room Group */
.delete-room-group {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
  Settings Modal Footer
  ============================================ */
.settings-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  position: sticky;
  bottom: 0;
}

/* ============================================
  Create Room Modal
  ============================================ */
.create-room-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.create-room-modal.hidden {
  display: none;
}

.create-room-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 10;
}

.create-room-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.create-room-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
}

.create-room-modal-close:hover {
  color: var(--color-text-primary);
}

.create-room-modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 16px !important;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-text-primary);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.create-room-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-lighter);

  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* ============================================
  Responsive Design
  ============================================ */
@media (max-width: 768px) {
  .my-rooms-container {
    padding: 24px 16px;
  }

  .my-rooms-title {
    font-size: 24px;
  }

  .my-rooms-list {
    grid-template-columns: 1fr;
  }

  .settings-modal-body {
    grid-template-columns: 1fr;
  }

  .room-item-actions {
    flex-direction: column;
  }

  .create-room-sticky {
    bottom: 20px;
    right: 20px;
  }

  .settings-modal {
    width: 95%;
    max-height: 95vh;
  }

  .create-room-modal {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .my-rooms-container {
    padding: 16px 12px;
  }

  .my-rooms-title {
    font-size: 20px;
  }

  .my-rooms-header {
    margin-bottom: 24px;
  }

  .room-item {
    padding: 16px;
  }

  .room-item-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .settings-modal-header {
    padding: 16px;
  }

  .settings-modal-body {
    padding: 16px;
    gap: 16px;
  }

  .settings-modal-footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
  Notification Modal
  ============================================ */
.notification-modal {
  position: fixed;
  top: 50%;
  left: 50%;

  background: var(--color-white);
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.95);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .28s ease, transform .28s ease;
}

.notification-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.notification-modal.hidden {
  display: none;
}

.notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.notification-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.notification-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
}

.notification-modal-close:hover {
  color: var(--color-text-primary);
}

.notification-modal-body {
  padding: 24px 24px 32px 24px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.notification-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-lighter);
}

/* ============================================
   Report Modal
   ============================================ */
   .report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .report-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .report-modal.hidden {
    display: none;
  }
  
  .report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
  }
  
  .report-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
  }
  
  .report-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
  }
  
  .report-modal-close:hover {
    color: var(--color-text-primary);
  }
  
  .report-modal-body {
    padding: 24px;
  }
  
  .report-modal-body .form-group {
    margin-bottom: 0;
  }
  
  .report-modal-body .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
  }
  
  .report-modal-body .form-textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .report-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-lighter);
  }

/* ============================================
   BRR Live Card
   ============================================ */

.brr-live-card {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.brr-live-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.brr-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: white;
  overflow: hidden;
}

.brr-card-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.brr-card-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.brr-live-badge {
  background-color: #ef4444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.brr-viewer-count {
  background-color: rgba(17, 24, 39, 0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.brr-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3;
}

.brr-live-card:hover .brr-card-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.brr-join-btn-overlay {
  background-color: #ff5722;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.brr-join-btn-overlay:hover {
  background-color: #f4511e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.5);
}

.brr-join-btn-overlay:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.brr-card-info-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  padding-bottom: 12px;
}

.brr-card-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.brr-host-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brr-host-avatar-placeholder {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brr-room-details {
  flex: 1;
  min-width: 0;
}

.brr-room-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.brr-host-name {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.brr-viewer-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

.brr-viewer-info svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

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

.brr-room-description {
  font-size: 14px;
  color: #374151;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brr-tags-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brr-tag, .brr-tag-more {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
}

.brr-tag {
  background-color: #f3f4f6;
  color: #4b5563;
}

.brr-tag-more {
  background-color: #f9fafb;
  color: #9ca3af;
}

.brr-report-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.brr-report-icon:hover {
  background: #f3f4f6;
  color: #111827;
}

.brr-report-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Maintenance Notice */
.maintenance-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.maintenance-notice-icon {
  flex: 0 0 auto;
  color: #ff9800;
  margin-top: 2px;
}

.maintenance-notice-content {
  flex: 1 1 auto;
}

.maintenance-notice-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #856404;
  margin-bottom: 4px;
}

.maintenance-notice-content p {
  font-size: 13px;
  color: #856404;
  margin: 0;
  line-height: 1.5;
}