:root {
  --bg-main: #07070a;
  --bg-elevated: #111118;
  --bg-card: #171721;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --phoenix-gold: #f59e0b;
  --phoenix-amber: #fbbf24;
  --phoenix-orange: #ff5500;
  --phoenix-red: #e50914;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-subtle: rgba(245, 158, 11, 0.2);
  --gradient-phoenix: linear-gradient(135deg, #f59e0b 0%, #ff4500 60%, #b91c1c 100%);
  --shadow-glow: 0 10px 30px -5px rgba(255, 85, 0, 0.35);
}

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

body {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Focus ring for Android TV / Streamer Remote Control D-Pad */
button:focus-visible,
.media-card:focus-visible,
.profile-card:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--phoenix-amber);
  outline-offset: 3px;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.65);
}

/* ==================== AUTH / LOGIN / REGISTER ==================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(229, 9, 20, 0.14), transparent 50%),
    #050507;
}

.auth-card {
  width: 100%;
  max-width: 470px;
  background: rgba(17, 17, 24, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
}

.brand-logo-large {
  width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(255, 85, 0, 0.35);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b0b10;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-tab {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--gradient-phoenix);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: #0c0c12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: border 0.2s;
}

.form-input:focus {
  border-color: var(--phoenix-gold);
  outline: none;
}

.btn-primary {
  width: 100%;
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 1.03rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.demo-switcher {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-switcher-title {
  font-size: 0.82rem;
  color: var(--phoenix-amber);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-demo {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f8fafc;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.btn-demo:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--phoenix-amber);
}

/* ==================== WHO'S WATCHING (PROFILES) ==================== */
.profiles-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.15), transparent 60%), #07070a;
}

.profiles-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 14px 0 8px;
}

.profiles-subtitle {
  color: var(--text-secondary);
  margin-bottom: 34px;
  font-size: 1rem;
}

.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  max-width: 900px;
  margin-bottom: 36px;
}

.profile-card {
  width: 150px;
  background: rgba(23, 23, 33, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--phoenix-amber);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.profile-avatar-graphic {
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

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

.nav-profile-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  flex-shrink: 0;
}

.avatar-carousel-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
}

.avatar-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #f8fafc;
}

.avatar-selected-preview-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--phoenix-amber);
}

.avatar-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(23, 23, 33, 0.92);
  color: var(--phoenix-amber);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}

.avatar-carousel-arrow:hover {
  background: var(--phoenix-amber);
  color: #07070a;
  transform: scale(1.08);
}

.avatar-carousel-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
  flex: 1;
  scrollbar-width: none;
}

.avatar-carousel-track::-webkit-scrollbar {
  display: none;
}

.avatar-carousel-item {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 74px;
  flex-shrink: 0;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.18s;
}

.avatar-carousel-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.avatar-carousel-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-carousel-label {
  font-size: 0.73rem;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 74px;
}

.avatar-carousel-item:hover .avatar-carousel-ring {
  transform: scale(1.06);
  border-color: rgba(245, 158, 11, 0.75);
}

.avatar-carousel-item:hover .avatar-carousel-label {
  color: #f8fafc;
}

.avatar-carousel-item.selected .avatar-carousel-ring {
  border-color: var(--phoenix-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 6px 16px rgba(245, 158, 11, 0.45);
  transform: scale(1.08);
}

.avatar-carousel-item.selected .avatar-carousel-label {
  color: var(--phoenix-amber);
  font-weight: 800;
}

.profile-name {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-badges {
  display: flex;
  gap: 5px;
  justify-content: center;
  min-height: 22px;
}

.badge-kids {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}

.badge-pin {
  background: rgba(245, 158, 11, 0.2);
  color: var(--phoenix-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}

/* ==================== TOP NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-btn.active {
  background: rgba(245, 158, 11, 0.18);
  color: var(--phoenix-amber);
  border-color: rgba(245, 158, 11, 0.45);
}

.nav-btn-adult {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.nav-btn-adult.active {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #fff;
  border-color: #f87171;
}

.nav-btn-admin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.25));
  color: var(--phoenix-amber);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.nav-btn-admin.active {
  background: var(--gradient-phoenix);
  color: #fff;
}

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

.search-box {
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.88rem;
  width: 200px;
}

.active-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 44px 72px;
  background-size: cover;
  background-position: center 25%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-image 0.45s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(7, 7, 10, 0.96) 25%, rgba(7, 7, 10, 0.65) 65%, rgba(7, 7, 10, 0.3) 100%),
    linear-gradient(to top, #07070a 5%, transparent 65%);
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 68px;
  border-radius: 12px;
  background: rgba(10, 12, 20, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-nav-arrow:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--phoenix-amber);
  color: var(--phoenix-amber);
  transform: translateY(-50%) scale(1.06);
}

.hero-nav-right {
  right: 16px;
}

.hero-nav-left {
  left: 16px;
}

.hero-dots-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot:hover {
  background: rgba(245, 158, 11, 0.7);
}

.hero-dot.active {
  width: 28px;
  background: var(--phoenix-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--phoenix-amber);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.hero-quality {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play-hero {
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
}

/* ==================== CONTENT ROWS & CARDS ==================== */
.catalog-section {
  padding: 26px 32px 10px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.row-title {
  font-size: 1.32rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 18px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: var(--phoenix-gold);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.25);
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0d0d14;
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 7, 10, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--phoenix-amber);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.card-badge-scheduled {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(220, 38, 38, 0.95));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.progress-bar-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-phoenix);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px;
}

.admin-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(229, 9, 20, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--phoenix-amber);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 4px;
}

.admin-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-panel-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.admin-item-row {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.admin-thumb {
  width: 64px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.status-approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.status-blocked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* ==================== MODAL & VIDEO PLAYER ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #14141d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}

.video-player-wrap {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
}

.video-player-wrap video {
  width: 100%;
  max-height: 440px;
  display: block;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.episode-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.episode-row:hover {
  border-color: var(--phoenix-amber);
  background: rgba(245, 158, 11, 0.12);
}

/* ==================== TOAST ==================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #181824;
  border-right: 4px solid var(--phoenix-amber);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==================== NETFLIX HORIZONTAL CAROUSEL ROWS ==================== */
.netflix-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cards-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 10px 4px 18px 4px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

.cards-carousel .media-card {
  flex: 0 0 205px;
  width: 205px;
  min-width: 205px;
}

.row-scroll-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 92px;
  border-radius: 12px;
  background: rgba(7, 7, 10, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--phoenix-amber);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75);
  transition: all 0.2s;
  opacity: 0.88;
}

.row-scroll-btn:hover {
  background: var(--gradient-phoenix);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}

.row-scroll-right {
  right: -12px;
}

.row-scroll-left {
  left: -12px;
}

/* ==================== FULLSCREEN CINEMA PLAYER ==================== */
.fullscreen-cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  flex-direction: column;
}

.fullscreen-cinema-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 310;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: opacity 0.35s ease;
}

.fullscreen-cinema-video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.phoenix-subtitles-overlay {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 315;
  text-align: center;
  pointer-events: none;
  width: 86%;
  max-width: 960px;
  transition: bottom 0.3s ease;
}

.fullscreen-cinema-overlay.controls-idle .phoenix-subtitles-overlay {
  bottom: 36px;
}

.fullscreen-cinema-overlay.controls-idle .fullscreen-cinema-topbar,
.fullscreen-cinema-overlay.controls-idle .phoenix-cinema-bottombar {
  opacity: 0;
  pointer-events: none;
}

.fullscreen-cinema-overlay.controls-idle .fullscreen-cinema-video {
  cursor: none;
}

.phoenix-sub-line {
  display: inline-block;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: clamp(1.25rem, 2.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.42;
  padding: 6px 18px;
  border-radius: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.phoenix-cinema-bottombar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 312;
  padding: 20px 28px 22px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.35s ease;
}

.cinema-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cinema-ctrl-btn:hover {
  background: var(--gradient-phoenix);
  border-color: var(--phoenix-amber);
  transform: scale(1.05);
}

.cinema-skip-btn {
  font-size: 0.85rem;
  padding: 7px 11px;
}

.cinema-time-label {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 62px;
  text-align: center;
  flex-shrink: 0;
}

.cinema-seek-slider {
  flex: 1;
  height: 7px;
  accent-color: #f59e0b;
  cursor: pointer;
  border-radius: 999px;
}

.cinema-vol-slider {
  width: 85px;
  height: 6px;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==================== PLEX-STYLE MEDIA DETAILS, SEASONS, RATINGS & CAST ==================== */
.modal-box-wide {
  max-width: 920px;
  padding: 0;
  overflow-x: hidden;
}

.media-details-hero {
  position: relative;
  padding: 28px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-details-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(14, 14, 22, 0.96) 25%, rgba(14, 14, 22, 0.85) 70%, rgba(14, 14, 22, 0.94) 100%);
  backdrop-filter: blur(8px);
}

.media-details-layout {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.media-details-poster {
  width: 175px;
  height: 260px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

.media-details-info {
  flex: 1;
  min-width: 0;
}

.media-details-body {
  padding: 22px 28px 28px;
}

.rating-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stars-row {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, color 0.15s;
  padding: 0 2px;
  line-height: 1;
}

.star-btn.active,
.star-btn:hover {
  color: #fbbf24;
  transform: scale(1.18);
}

.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.season-tab-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s;
}

.season-tab-btn:hover {
  border-color: var(--phoenix-amber);
  color: #fff;
}

.season-tab-btn.active {
  background: var(--gradient-phoenix);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.cast-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cast-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 2px 10px;
  scrollbar-width: thin;
}

.cast-card {
  flex: 0 0 105px;
  width: 105px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.cast-card:hover {
  transform: translateY(-4px);
}

.cast-avatar-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  position: relative;
}

.cast-card:hover .cast-avatar-wrap {
  border-color: var(--phoenix-amber);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

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

.cast-avatar-fallback {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--phoenix-amber);
}

.cast-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.cast-sub {
  font-size: 0.72rem;
  color: var(--phoenix-amber);
  margin-top: 2px;
}

.actor-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.btn-remove-continue {
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  width: 100%;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-remove-continue:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.card-quick-play {
  position: absolute;
  bottom: 12px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  z-index: 5;
  transition: transform 0.18s;
}

.card-quick-play:hover {
  transform: scale(1.15);
}

/* ==================== MOBILE & TABLET RESPONSIVENESS ==================== */
@media (max-width: 768px) {
  /* 1. Compact 2-Row Sticky Navbar (Logo + Search + Profile on Row 1, Scrollable Tabs on Row 2) */
  .navbar {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-right {
    display: contents;
  }

  .nav-brand {
    order: 1;
    flex-shrink: 0;
  }

  .nav-logo {
    height: 34px;
  }

  .nav-left {
    order: 2;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  .search-box {
    flex: 1;
    min-width: 90px;
    width: auto;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .active-profile-pill {
    padding: 5px 9px;
    font-size: 0.78rem;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hide-xs-text {
    display: none;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: 0.82rem;
    border-radius: 99px;
  }

  /* 2. Horizontal Touch-Scrollable Genre Filter Ribbon */
  .genre-pills-bar {
    padding: 10px 12px 2px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
  }

  .genre-pills-bar::-webkit-scrollbar {
    display: none;
  }

  .genre-pills-label {
    display: none;
  }

  .genre-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }

  /* 3. Compact Mobile Hero Banner */
  .hero-banner {
    min-height: 265px;
    padding: 18px 14px;
    background-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(to top, #07070a 8%, rgba(7, 7, 10, 0.82) 55%, rgba(7, 7, 10, 0.45) 100%);
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 3px 9px;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 1.55rem;
    margin-bottom: 6px;
  }

  .hero-meta {
    font-size: 0.78rem;
    gap: 8px;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn-play-hero {
    padding: 9px 16px;
    font-size: 0.88rem;
    border-radius: 9px;
  }

  .hero-actions .btn-secondary {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 9px;
  }

  /* 4. Catalog Rows, Carousels & Compact Mobile Posters */
  .catalog-section {
    padding: 16px 12px 4px;
  }

  .row-header {
    margin-bottom: 8px;
  }

  .row-title {
    font-size: 1.04rem;
    line-height: 1.3;
  }

  /* Hide desktop floating carousel arrows on touch screens so they don't cover posters */
  .row-scroll-btn {
    display: none !important;
  }

  .cards-carousel {
    gap: 10px;
    padding: 6px 2px 12px 2px;
    -webkit-overflow-scrolling: touch;
  }

  .cards-carousel .media-card {
    flex: 0 0 138px;
    width: 138px;
    min-width: 138px;
    border-radius: 11px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 8px;
    gap: 3px;
  }

  .card-title {
    font-size: 0.84rem;
  }

  .card-sub {
    font-size: 0.72rem;
  }

  .card-badge-top {
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .card-badge-scheduled {
    bottom: 6px;
    right: 6px;
    left: 6px;
    font-size: 0.66rem;
    padding: 4px 5px;
  }

  .card-quick-play {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    bottom: 8px;
    left: 8px;
  }

  .card-body .btn-secondary {
    padding: 5px 6px !important;
    font-size: 0.72rem !important;
  }

  /* 5. Auth & Profiles Screen on Mobile */
  .auth-wrapper {
    padding: 14px;
  }

  .auth-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .brand-logo-large {
    width: 135px !important;
  }

  .profiles-screen {
    padding: 20px 12px;
  }

  .profiles-title {
    font-size: 1.6rem;
  }

  .profiles-subtitle {
    font-size: 0.86rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .profiles-grid {
    gap: 12px;
    margin-bottom: 24px;
  }

  .profile-card {
    width: 132px;
    padding: 14px 10px;
    border-radius: 14px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .profile-name {
    font-size: 0.95rem;
  }

  /* 6. Modals, Media Details & Account Settings on Mobile */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-box {
    padding: 18px 14px !important;
    border-radius: 14px;
    max-height: 92vh;
  }

  .modal-box-wide {
    padding: 0 !important;
  }

  .media-details-hero {
    padding: 18px 14px;
  }

  .media-details-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .media-details-poster {
    width: 130px;
    height: 192px;
  }

  .media-details-body {
    padding: 16px 14px 20px;
  }

  .episode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.86rem;
  }

  /* Stack inline multi-column form grids inside modals on mobile */
  .modal-box form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* 7. Admin Panel on Mobile */
  .admin-container {
    padding: 14px 10px;
  }

  .admin-header {
    padding: 16px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .admin-panel-box {
    padding: 14px 12px;
  }

  .admin-item-info {
    min-width: 100%;
  }

  /* 8. Fullscreen Cinema Video Player on Mobile */
  .fullscreen-cinema-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .fullscreen-cinema-topbar .btn-secondary,
  .fullscreen-cinema-topbar .btn-primary {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }

  .phoenix-cinema-bottombar {
    padding: 12px 10px 14px 10px;
    gap: 6px;
  }

  .cinema-ctrl-btn {
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .cinema-skip-btn {
    font-size: 0.74rem;
    padding: 5px 7px;
  }

  .cinema-time-label {
    font-size: 0.76rem;
    min-width: 46px;
  }

  .cinema-vol-slider {
    display: none;
  }

  .phoenix-subtitles-overlay {
    bottom: 64px;
    width: 94%;
  }

  .phoenix-sub-line {
    font-size: clamp(0.95rem, 3.8vw, 1.35rem);
    padding: 4px 12px;
  }
}

/* ==================== PHOENIXTV TOGETHER v2.0 (PHASE 1) ==================== */
.together-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(229, 9, 20, 0.16) 50%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.together-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.together-event-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.together-event-card:hover {
  transform: translateY(-4px);
  border-color: var(--phoenix-amber);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.together-card-backdrop {
  min-height: 155px;
  padding: 14px 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.together-card-body {
  padding: 14px 16px;
}

.together-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.together-badge-scheduled {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #93c5fd;
}

.together-badge-soon {
  background: rgba(245, 158, 11, 0.26);
  border: 1px solid var(--phoenix-amber);
  color: #fde68a;
}

.together-badge-lobby {
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.together-badge-live {
  background: rgba(229, 9, 20, 0.28);
  border: 1px solid #f87171;
  color: #fecaca;
}

.together-badge-cancelled,
.together-badge-ended {
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.together-detail-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 18px;
}

.together-detail-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.together-panel-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px;
}

.together-chat-box {
  background: rgba(7, 10, 18, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
}

.together-chat-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.together-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.together-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.together-chat-msg-me .together-chat-bubble {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
}

.together-chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
}

.together-chat-input-row {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  gap: 8px;
}

.avatar-img-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

@media (max-width: 768px) {
  .together-detail-columns {
    grid-template-columns: 1fr;
  }
  .together-chat-box {
    height: 360px;
  }
}

/* ==================== TOGETHER PHASE 3 IN-PLAYER DRAWER ==================== */
.together-player-drawer {
  position: absolute;
  top: 76px;
  bottom: 84px;
  left: 20px;
  width: 370px;
  max-width: calc(100vw - 40px);
  z-index: 330;
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
}

.together-player-drawer.open {
  display: flex;
}

@media (max-width: 640px) {
  .together-player-drawer {
    left: 10px;
    right: 10px;
    width: auto;
    top: 70px;
    bottom: 78px;
  }
}





