:root {
  --bg-main: #0f0f0f;
  --bg-sidebar: #0f0f0f;
  --bg-card: #181818;
  --bg-card-hover: #222222;
  --bg-input: #121212;
  --border-color: #272727;
  --border-light: #383838;
  --text-main: #f1f1f1;
  --text-muted: #aaaaaa;
  --text-sub: #717171;
  --accent: #ff0033;
  --accent-hover: #cc0029;
  --accent-blue: #3ea6ff;
  --badge-bg: rgba(0, 0, 0, 0.8);
  --sidebar-w: 240px;
  --header-h: 56px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.brand-logo .logo-icon {
  background: linear-gradient(135deg, #ff0033, #ff4d6d);
  color: #fff;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.brand-logo span.highlight {
  color: #fff;
}
.brand-logo span.subtag {
  font-size: 0.65rem;
  background: #333;
  color: #ff4d6d;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
  font-weight: 600;
}

.header-search {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  margin: 0 16px;
}
.search-input-wrap {
  display: flex;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px 0 0 20px;
  padding: 0 16px;
  align-items: center;
}
.search-input-wrap:focus-within {
  border-color: var(--accent-blue);
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  height: 38px;
  outline: none;
}
.search-btn {
  background: #222;
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 20px 20px 0;
  color: var(--text-main);
  width: 58px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover {
  background: #2a2a2a;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #222;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.upload-btn:hover {
  background: #333;
}
.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Sidebar */
.app-container {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 900;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.15s;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}
.nav-link svg, .nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}
.nav-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}
.nav-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 6px 14px;
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 20px 24px 60px;
  max-width: 1700px;
}
.main-content.no-sidebar {
  margin-left: 0;
}

/* Tags bar */
.tags-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.tags-bar::-webkit-scrollbar {
  display: none;
}
.tag-pill {
  padding: 6px 14px;
  background: #222;
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.tag-pill:hover {
  background: #333;
}
.tag-pill.active {
  background: #fff;
  color: #000;
}

/* Featured Hero Banner */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1f1b2e 0%, #111827 50%, #0f0f0f 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text {
  max-width: 620px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 51, 0.2);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.btn-watch-now {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-watch-now:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero-preview {
  position: relative;
  width: 440px;
  min-width: 320px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}
.hero-preview video, .hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Grid */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px 16px;
}

/* Video Card */
.video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card:hover .video-thumbnail img {
  transform: scale(1.03);
}
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 0, 51, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.video-details {
  display: flex;
  gap: 12px;
}
.channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.video-info {
  display: flex;
  flex-direction: column;
}
.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-main);
}
.channel-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-name:hover {
  color: var(--text-main);
}
.verified-icon {
  width: 13px;
  height: 13px;
  color: #aaa;
}
.video-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Watch Page Layout */
.watch-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto;
}
.player-column {
  min-width: 0;
}
.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  margin-bottom: 16px;
}
.player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.watch-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.watch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.watch-channel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.channel-info-box .name {
  font-weight: 700;
  font-size: 0.95rem;
}
.channel-info-box .subs {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.btn-subscribe {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-subscribe:hover {
  opacity: 0.9;
}
.watch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-btn {
  background: #222;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.action-btn:hover {
  background: #333;
}
.action-btn.active {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.watch-description {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.desc-stats {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.desc-text {
  color: var(--text-main);
}

/* Comments */
.comments-section {
  margin-top: 24px;
}
.comments-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.comment-count {
  font-weight: 700;
  font-size: 1.1rem;
}
.add-comment-box {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.comment-input-wrap {
  flex: 1;
}
.comment-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 0;
  outline: none;
  transition: border 0.2s;
}
.comment-input:focus {
  border-bottom: 2px solid #fff;
}
.comment-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.btn-comment-submit {
  background: var(--accent-blue);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  cursor: pointer;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comment-item {
  display: flex;
  gap: 14px;
}
.comment-body .author {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 6px;
}
.comment-body .time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.comment-body .content {
  font-size: 0.88rem;
  margin: 4px 0 6px;
}
.comment-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Recommended sidebar */
.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rec-video-card {
  display: flex;
  gap: 10px;
  cursor: pointer;
}
.rec-thumbnail {
  position: relative;
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}
.rec-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-title {
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.rec-channel {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.rec-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload Studio Page */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}
.drop-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 0, 51, 0.04);
}
.drop-zone .icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.form-group {
  margin-top: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-blue);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Trending page */
.trending-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.trending-rank {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-sub);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.trending-thumb {
  position: relative;
  width: 250px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}
.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.platform-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding: 32px 0 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .watch-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 72px;
  }
  .sidebar .nav-link span, .sidebar .nav-heading {
    display: none;
  }
  .sidebar .nav-link {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 72px;
  }
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-preview {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 12px;
  }
  .trending-item {
    flex-direction: column;
  }
  .trending-thumb {
    width: 100%;
    height: 200px;
  }
  .channel-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================================
   Creator Studio & Upload Page Styles
   ======================================================== */
.studio-layout {
  max-width: 1100px;
  margin: 0 auto;
}
.studio-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.studio-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
.studio-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.upload-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-blue);
  background-color: rgba(62, 166, 255, 0.05);
}
.dropzone-icon {
  font-size: 48px;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.dropzone-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dropzone-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.dropzone-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--accent-blue);
  color: #0f0f0f;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dropzone-btn:hover {
  opacity: 0.9;
}

.upload-progress-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
  transition: width 0.3s ease;
}
.progress-meta {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--accent-blue);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.studio-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thumb-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.thumb-option {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
}
.thumb-option.selected {
  border-color: var(--accent-blue);
}
.thumb-option canvas, .thumb-option img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.publish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.btn-secondary {
  padding: 10px 20px;
  background-color: var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  padding: 10px 24px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}

/* ========================================================
   Channel Profile Page Styles
   ======================================================== */
.channel-banner-wrap {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e1e2f 0%, #0f172a 50%, #1e293b 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.channel-banner-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.channel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.channel-profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.channel-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d48, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.channel-title-meta h1 {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.channel-meta-stats {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}
.channel-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.channel-tab {
  padding: 12px 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.channel-tab.active {
  color: var(--text-main);
}
.channel-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-main);
}

/* ========================================================
   Legal / Terms & Privacy Styles
   ======================================================== */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-container h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.legal-container .effective-date {
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.legal-section {
  margin-bottom: 32px;
}
.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.legal-section p {
  color: #ccc;
  margin-bottom: 14px;
}
.legal-section ul {
  padding-left: 24px;
  color: #bbb;
  margin-bottom: 14px;
}
.legal-section li {
  margin-bottom: 8px;
}
.compliance-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

