/* Studio Theme - Video Creator / Channel Style */
/* Content-focused, modern media, creator aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #FF0000;
  --primary-rgb: 255, 0, 0;
  --primary-dark: #CC0000;
  --hov-primary: #FF3333;
  --soft-primary: rgba(255, 0, 0, 0.15);
  --secondary: #065FD4;
  --accent: #AAAAAA;
  --success: #2BA640;
  --warning: #FFD600;
  --danger: #FF0000;
  --light: #F9F9F9;
  --dark: #F1F1F1;
  --gray: #AAAAAA;
  --gray-light: #606060;
  --border: #303030;
  --border-color: #303030;
  --border-radius: 8px;
  --background: #0F0F0F;
  --card-bg: #212121;
  --card-hover: #272727;
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font-primary);
  background: var(--background);
  color: #F1F1F1;
  font-size: 14px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #F1F1F1;
}

.btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #CC0000;
}

/* Subscribe button style */
.btn-subscribe {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 2px;
  padding: 10px 16px;
  font-weight: 500;
}

.btn-subscribe.subscribed {
  background: var(--card-bg);
  color: #F1F1F1;
}

.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.card:hover {
  background: var(--card-hover);
}

/* Video thumbnail style for products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
}

.product-card .thumbnail {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--card-bg);
}

.product-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video duration badge */
.product-card .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
}

/* Progress bar on thumbnail */
.product-card .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
}

.product-card:hover .thumbnail {
  border-radius: 0;
}

/* Product info */
.product-card .info {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.product-card .channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card .details {
  flex: 1;
  min-width: 0;
}

.product-card .title {
  font-size: 14px;
  font-weight: 500;
  color: #F1F1F1;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .meta {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.4;
}

.product-card .meta a {
  color: var(--accent);
}

.product-card .meta a:hover {
  color: #F1F1F1;
}

/* Channel header */
.channel-header {
  position: relative;
}

.channel-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.channel-info {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  align-items: flex-start;
}

.channel-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.channel-stats {
  font-size: 14px;
  color: var(--accent);
}

/* Chips/Tags */
.chip {
  display: inline-block;
  background: var(--card-bg);
  color: #F1F1F1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.chip:hover {
  background: var(--card-hover);
}

.chip.active {
  background: #F1F1F1;
  color: var(--dark);
}

/* Sidebar */
.sidebar {
  background: var(--background);
  width: 240px;
  padding: 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #F1F1F1;
  font-size: 14px;
}

.sidebar-item:hover {
  background: var(--card-hover);
}

.sidebar-item.active {
  background: var(--card-hover);
  font-weight: 500;
}

/* Links */
a {
  color: #F1F1F1;
  text-decoration: none;
}

a:hover {
  color: #F1F1F1;
}

/* Scrollbar dark mode */
::-webkit-scrollbar {
  width: 8px;
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--card-bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--card-hover);
}


/* ── Storefront navbar tokens (auto-added: contrast-correct header) ── */
:root {
  --header-bg: #212121;
  --header-fg: #F1F1F1;
  --header-muted: rgba(255,255,255,0.62);
  --header-border: rgba(255,255,255,0.14);
}
