.watch-earn-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 26%),
    #0f172a;
}

.watch-earn-shell {
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
}

.watch-earn-intro-row {
  display: block;
  margin-bottom: 0.3rem;
}

.header-logo .brandmark,
.sidebar .brandmark,
.footer-logo .brandmark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
}

.watch-earn-hero {
  padding: 0 0 0.65rem;
}

.watch-earn-hero__content,
.watch-earn-layout {
  width: 100%;
  margin: 0 auto;
}

.watch-earn-hero__content {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;
  padding: 0.82rem 0.95rem;
  box-shadow: 0 28px 60px rgba(2, 8, 23, 0.35);
}

.watch-earn-hero h1 {
  color: #f8fafc;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0.08rem 0 0.22rem;
}

.watch-earn-hero__subheading {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.38;
}

.info-banner {
  margin-top: 0.4rem;
  border-radius: 20px;
  padding: 0.48rem 0.62rem;
  border: 1px solid transparent;
}

.info-banner__title {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.12rem;
}

.info-banner p {
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.35;
}

.info-banner--guest {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.info-banner--member {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

.watch-earn-layout {
  padding: 0 0 4rem;
}


.watch-earn-search {
  margin: 0 0 0.65rem;
}

.watch-earn-search__shell {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}

.watch-earn-search__label {
  display: block;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.watch-earn-search__controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.watch-earn-search__input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.watch-earn-search__input::placeholder {
  color: #94a3b8;
}

.watch-earn-search__input:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.watch-earn-search__clear {
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.watch-earn-search__clear:hover {
  background: rgba(37, 99, 235, 0.2);
}

.watch-earn-search__hint {
  margin: 0.45rem 0 0;
  color: #94a3b8;
  font-size: 0.76rem;
}

.watch-earn-search-empty {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}


.tag-discovery {
  width: 100%;
  margin: 0 auto 0.55rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 0.48rem 0.62rem;
}

.tag-discovery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.tag-discovery__header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.92rem;
}

.tag-discovery__header p {
  margin: 0.1rem 0 0;
  color: #94a3b8;
  font-size: 0.76rem;
}

.tag-strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.tag-chip {
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-chip:hover,
.tag-chip.is-active {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: transparent;
  color: #fff;
}

.tag-chip--clear {
  flex-shrink: 0;
}

.rail-section {
  margin-bottom: 2rem;
}

.rail-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.load-more-btn:hover {
  background: rgba(37, 99, 235, 0.2);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.rail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.rail-header h2 {
  color: #f8fafc;
  font-size: 1.55rem;
  margin: 0;
}

.rail-header p {
  color: #94a3b8;
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

.media-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 160px);
  gap: 0.6rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.9rem;
  scroll-snap-type: x proximity;
  scrollbar-width: auto;
  scrollbar-color: #60a5fa rgba(15, 23, 42, 0.95);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.media-rail::-webkit-scrollbar {
  height: 14px;
}

.media-rail::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.media-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.95);
}

.media-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.video-card,
.creator-card {
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.video-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 22px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover,
.creator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 20px 44px rgba(2, 8, 23, 0.35);
}

.video-card--sponsored {
  border-color: rgba(250, 204, 21, 0.24);
}

.video-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
}

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

.video-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.video-card__tag,
.video-card__play {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.video-card__tag {
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  padding: 0.24rem 0.46rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.video-card__tag--sponsored {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.28);
  color: #fde68a;
}

.video-card__play {
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  padding: 0.28rem 0.5rem;
}

.video-card__body {
  padding: 0.62rem;
}

.sponsored-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.gam-sponsored-slot {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.gam-sponsored-slot > div,
.gam-sponsored-slot iframe {
  max-width: 100%;
}

.sponsored-card__eyebrow {
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.video-card__creator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.video-card__creator img,
.video-card__avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 800;
}

.video-card__creator-name {
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
}

.video-card__meta {
  color: #94a3b8;
  font-size: 0.62rem;
}

.video-card h3,
.creator-card h3 {
  color: #fff;
  font-size: 0.74rem;
  line-height: 1.35;
  margin: 0 0 0.18rem;
}

.video-card p,
.creator-card p {
  color: #94a3b8;
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0;
}

.video-card__hashtags {
  color: #60a5fa;
  font-size: 0.64rem;
  line-height: 1.45;
  font-weight: 700;
}

.media-rail--creators {
  grid-auto-columns: minmax(205px, 205px);
}

.creator-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 22px;
  padding: 1.2rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.creator-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.creator-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card__meta {
  margin-top: 0.7rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
}

.empty-rail {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

@media (max-width: 640px) {
  .watch-earn-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .watch-earn-intro-row {
    display: block;
  }

  .watch-earn-search__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .watch-earn-search__clear {
    width: 100%;
  }

  .watch-earn-hero {
    padding: 1rem 1rem 1.5rem;
  }

  .watch-earn-hero__content,
  .watch-earn-layout {
    width: min(100%, calc(100% - 1rem));
  }

  .watch-earn-hero__content {
    padding: 1.4rem;
    border-radius: 22px;
  }

  .watch-earn-hero__subheading,
  .info-banner p {
    font-size: 0.92rem;
  }

  



.tag-discovery {
    width: min(100%, calc(100% - 1rem));
    padding: 0.9rem;
  }

  .tag-discovery__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rail-header h2 {
    font-size: 1.3rem;
  }

  .media-rail {
    grid-auto-columns: minmax(150px, 150px);
  }

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

  .media-rail--creators {
    grid-auto-columns: minmax(220px, 220px);
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
