:root {
  --bg: #05060a;
  --card: #11131f;
  --accent: #f54784;
  --accent-dark: #d73771;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #010103;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  background: radial-gradient(circle at 20% -20%, rgba(245, 71, 132, 0.2), rgba(5, 6, 10, 0.95) 65%);
}

.phone-frame {
  width: min(420px, calc(100% - 2rem));
  min-height: calc(100vh - 4rem);
  background: #070812;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.screen {
  padding: 1.5rem 1.2rem 5rem;
}

.container {
  width: 100%;
  margin: 0;
  padding: 0 1.2rem;
}

.flex {
  display: flex;
}

.center {
  align-items: center;
}

.between {
  justify-content: space-between;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(7, 8, 18, 0.95);
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
}

.logo span {
  color: var(--accent);
}

.auth {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

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

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

.badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

.hero-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.feature-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.8;
}

.feature-list i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-cta .hero-card {
  background: linear-gradient(135deg, rgba(245, 71, 132, 0.2), rgba(13, 16, 45, 0.8));
}

.hero-cta .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.categories-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.categories-grid .category-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.categories-grid .category-card .video-thumb {
  padding-top: 70%;
}

.categories-grid .category-card.featured-category {
  grid-column: 1 / -1;
  min-height: 200px;
}

.categories-grid .category-card.featured-category .video-thumb {
  padding-top: 55%;
}

@media (min-width: 480px) {
  .screen {
    padding: 2rem 2rem 5rem;
  }
  .hero-card {
    padding: 2.2rem;
  }
}

.video-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 71, 132, 0.5);
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56%;
  background: #1c1f30;
}

.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-meta {
  padding: 1rem;
}

.video-meta h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.video-meta span {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}

.flash {
  margin: 1rem auto;
}

.flash-item {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(245, 71, 132, 0.08);
  border: 1px solid rgba(245, 71, 132, 0.2);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 8, 18, 0.95);
  padding: 0;
}

.bottom-nav {
  display: flex;
  width: 100%;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  padding: 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.bottom-nav a i {
  font-size: 1.2rem;
}

.bottom-nav a.active {
  color: var(--accent);
  background: rgba(245, 71, 132, 0.08);
}

.btn.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.profile-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar-pill {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(245, 71, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.profile-basic h1 {
  margin: 0;
  font-size: 1.4rem;
}

.profile-basic p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.profile-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-stats .stat {
  flex: 1;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-stats strong {
  font-size: 1.3rem;
  display: block;
  margin-top: 0.4rem;
}

.subscription-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.subscription-card.active {
  background: linear-gradient(120deg, rgba(245, 71, 132, 0.18), rgba(77, 78, 151, 0.25));
}

.subscription-card.inactive {
  background: rgba(255, 255, 255, 0.02);
}

.subscription-card .pill {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.subscription-card h2 {
  margin: 0.4rem 0;
}

.subscription-card .muted {
  color: var(--muted);
  margin: 0;
}

.sub-actions {
  display: flex;
  align-items: center;
}

.status-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.4rem 0.8rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: 20px;
  padding: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.action-card strong {
  display: block;
}

.action-card i:last-child {
  margin-left: auto;
  color: var(--muted);
}

.bot-cta {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(245, 71, 132, 0.18), rgba(77, 78, 151, 0.25));
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bot-cta p {
  margin: 0;
  color: var(--muted);
}

.bot-cta .btn {
  align-self: flex-start;
}

.category-hero {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(120deg, rgba(245, 71, 132, 0.2), rgba(77, 78, 151, 0.3));
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-player {
  margin: 2rem 0;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.watch-player video, .watch-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.watch-player video.locked {
  filter: blur(2px);
  opacity: 0.4;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.episode-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.episode-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.episode-chip.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.episode-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.episode-toggle.open i {
  transform: rotate(180deg);
}

.episode-dropdown {
  display: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.episode-dropdown.open {
  display: block;
}

.episode-option {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.episode-option.current {
  background: rgba(245, 71, 132, 0.15);
}

.episode-option.locked i {
  color: var(--accent);
}

.episode-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.episode-label {
  font-size: 0.9rem;
}

.watch-info {
  padding: 1.5rem;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-card {
    padding: 1.6rem;
  }
}
