/* ClipFeed - Mobile-First Vertical Video CSS (FikFap / TikTok style) */
:root {
  --bg-black: #000000;
  --bg-card: #0d0d0d;
  --bg-glass: rgba(18, 18, 20, 0.75);
  --text-main: #ffffff;
  --text-muted: #a0a0a5;
  --accent-pink: #fe2c55;
  --accent-pink-hover: #e02447;
  --accent-glow: rgba(254, 44, 85, 0.35);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 50px;
  --max-desktop-width: 420px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: #000000;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop backdrop container */
.app-viewport {
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  position: relative;
}

/* Phone-like centered shell for desktop, full-width on mobile */
.app-frame {
  width: 100%;
  max-width: var(--max-desktop-width);
  height: 100dvh;
  position: relative;
  background-color: var(--bg-black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-frame.wide-frame {
  max-width: 680px;
}

@media (max-width: 480px) {
  .app-frame,
  .app-frame.wide-frame {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==================== Top Navigation Bar ==================== */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
  pointer-events: none;
}

.top-header > * {
  pointer-events: auto;
}

.brand-logo {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo .brand-badge {
  color: var(--accent-pink);
  font-size: 21px;
}

.top-nav-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-header.feed-top-header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.minimal-brand {
  width: 30px;
  height: 30px;
  justify-content: center;
}

.minimal-icon-btn {
  background: transparent;
  backdrop-filter: none;
  opacity: 0.85;
}

.minimal-icon-btn:hover {
  opacity: 1;
}

.top-tab-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 4px 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.top-tab-link.active {
  color: #ffffff;
  font-weight: 700;
}

.top-tab-link.active::after {
  display: none;
}

.top-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon-top {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-icon-top:active {
  transform: scale(0.92);
}

/* ==================== Feed Scroll Container ==================== */
.feed-container {
  width: 100%;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.feed-container::-webkit-scrollbar {
  display: none;
}

/* Feed Video Card */
.clip-card {
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background-color: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video & Poster element */
.clip-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.clip-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.clip-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background-color: transparent;
}

/* Ambient blur behind non-9:16 videos */
.clip-ambient-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(25px) brightness(0.4);
  transform: scale(1.1);
  z-index: 0;
}

/* Gradient scrims */
.scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 190px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Video Progress Bar (FikFap style) */
.clip-progress-container {
  position: absolute;
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 10;
  pointer-events: none;
}

.clip-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.12s linear;
}

/* Tap feedback icons */
.center-tap-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-tap-indicator.visible {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}

.heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--accent-pink);
  z-index: 12;
  pointer-events: none;
  animation: heartPop 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1.1) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

/* Card metadata overlay (bottom left) */
.card-meta {
  position: absolute;
  bottom: calc(var(--nav-height) + 14px);
  left: 14px;
  right: 68px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-inline-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.creator-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.creator-name:hover {
  text-decoration: underline;
}

.btn-follow-inline {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-follow-inline.following {
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent;
  color: #e2e2e8;
}

.badge-verified {
  width: 14px;
  height: 14px;
  color: var(--accent-pink);
  display: inline-block;
}

.clip-title {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  max-height: 2.7em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 9px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
}

.tag-pill:hover {
  background: rgba(254, 44, 85, 0.85);
  border-color: transparent;
}

.sound-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sound-badge svg {
  animation: rotateSound 5s linear infinite;
}

@keyframes rotateSound {
  100% { transform: rotate(360deg); }
}

/* Right Action Rail (bottom right - FikFap minimalist icons) */
.action-rail {
  position: absolute;
  bottom: calc(var(--nav-height) + 18px);
  right: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.action-btn {
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

.action-btn:active {
  transform: scale(0.88);
}

.action-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.15s, color 0.15s;
  position: relative;
}

.action-btn.liked .action-icon-circle {
  color: var(--accent-pink);
}

.action-btn.liked svg {
  fill: var(--accent-pink);
}

.action-btn.bookmarked .action-icon-circle {
  color: #ffb703;
}

.action-btn.bookmarked svg {
  fill: #ffb703;
  stroke: #ffb703;
}

.action-label {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Creator avatar */
.creator-avatar-wrap {
  width: 38px;
  height: 38px;
  position: relative;
}

.creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  background-color: #202026;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ==================== Bottom Navigation Bar ==================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 35;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s, transform 0.1s;
}

.nav-item span {
  display: none;
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active svg {
  color: #ffffff;
}

.nav-item:active {
  transform: scale(0.92);
}

/* ==================== Age Gate Overlay ==================== */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.age-gate-overlay.hidden {
  display: none !important;
}

.age-gate-card {
  max-width: 420px;
  width: 100%;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.age-gate-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.15);
  border: 2px solid var(--accent-pink);
  color: var(--accent-pink);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.age-gate-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #b0b0b8;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 8px;
}

.btn-age-confirm {
  width: 100%;
  padding: 13px 0;
  background-color: var(--accent-pink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-age-confirm:hover {
  background-color: var(--accent-pink-hover);
}

.btn-age-confirm:active {
  transform: scale(0.98);
}

.btn-age-exit {
  width: 100%;
  padding: 11px 0;
  background: rgba(255, 255, 255, 0.08);
  color: #8f8f96;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-age-exit:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ==================== Niches & Hub Page ==================== */
.page-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 64px 16px calc(var(--nav-height) + 24px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.niche-card {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e24;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s, border-color 0.2s;
}

.niche-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-pink);
}

.niche-card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.3s, filter 0.3s;
}

.niche-card:hover .niche-card-thumb {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.niche-card-info {
  position: relative;
  z-index: 2;
}

.niche-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.niche-card-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== Creator Profile Page ==================== */
.creator-profile-header {
  text-align: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.creator-big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-pink);
  margin: 0 auto 12px;
  object-fit: cover;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.creator-big-name {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.creator-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 14px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.creator-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-feed-mode {
  padding: 9px 18px;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-feed-mode:hover {
  background: var(--accent-pink-hover);
}

/* Video Grid (Creator / Search Results) */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.grid-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background-color: #1a1a20;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.grid-card:hover .grid-thumb {
  transform: scale(1.06);
}

.grid-overlay-views {
  position: absolute;
  bottom: 5px;
  left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ==================== Search Bar ==================== */
.search-form {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  height: 44px;
  background: #18181e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 0 46px 0 18px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-pink);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn:hover {
  color: #fff;
}

/* ==================== Legal & Text Pages ==================== */
.legal-card {
  background: #121216;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  line-height: 1.6;
  color: #c4c4cc;
}

.legal-card h2 {
  font-size: 17px;
  color: #fff;
  margin: 18px 0 8px;
}

.legal-card p, .legal-card ul {
  margin-bottom: 12px;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--accent-pink);
  text-decoration: underline;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  font-size: 12px;
}

.legal-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: #fff;
}

/* Search preset tags */
.search-preset-tags {
  margin-bottom: 20px;
}

.search-preset-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.search-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.search-tag-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #e0e0e6;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.search-tag-chip:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
  transform: translateY(-1px);
}

/* Niche Feed Intro Floating Banner */
.niche-feed-intro {
  position: absolute;
  top: 56px;
  left: 14px;
  right: 14px;
  background: rgba(14, 14, 18, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 35;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 0.4s ease forwards;
}

.niche-intro-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.niche-intro-text {
  font-size: 11.5px;
  color: #b0b0b8;
  margin-top: 2px;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast alert notification */
.toast-notice {
  position: fixed;
  bottom: calc(var(--nav-height) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 36, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 90;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Favorites / Bookmarks Page */
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--text-muted);
}

.favorites-empty-icon {
  font-size: 52px;
  opacity: 0.7;
}

.favorites-empty-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.favorites-empty-desc {
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 280px;
}

/* ==================== FikFap-style Hashtag Hub (/hash/<tag>) ==================== */
.hash-top-header {
  background: rgba(11, 10, 24, 0.92);
  backdrop-filter: blur(12px);
}

.hash-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.hash-page-container {
  padding: 52px 0 calc(var(--nav-height) + 20px);
  background: #000000;
}

.hash-hero {
  background: linear-gradient(180deg, #16142b 0%, #0b0a16 65%, #000000 100%);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hash-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hash-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.hash-stat-lbl {
  font-size: 11.5px;
  color: #9e9eb0;
}

.hash-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
}

.hash-desc {
  font-size: 13px;
  color: #d0d0dc;
  line-height: 1.45;
  max-width: 440px;
}

.hash-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.btn-follow-tag {
  min-width: 120px;
  padding: 10px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b6b 0%, #ff5858 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 59, 107, 0.35);
  transition: transform 0.15s, opacity 0.15s, background 0.2s;
}

.btn-follow-tag:active {
  transform: scale(0.96);
}

.btn-follow-tag.following {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-watch-hash-feed {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-watch-hash-feed:hover {
  background: rgba(255, 255, 255, 0.18);
}

.fik-grid {
  gap: 3px;
  padding: 0 2px;
}

.fik-grid .grid-card {
  aspect-ratio: 9 / 14;
  border-radius: 6px;
}

/* ==================== Live Cam / Affiliate Native Ad Card ==================== */
.live-tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(var(--nav-height) + 74px);
  text-decoration: none;
}

.live-cta-pill {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  transition: transform 0.15s, background 0.15s;
}

.live-tap-overlay:hover .live-cta-pill {
  transform: scale(1.04);
  background: rgba(254, 44, 85, 0.72);
}

.live-card-meta {
  position: absolute;
  bottom: calc(var(--nav-height) + 16px);
  left: 14px;
  right: 72px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.live-avatar-ring {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%);
  flex-shrink: 0;
  text-decoration: none;
}

.live-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000000;
}

.live-badge-pill {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #fe2c55;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1.5px solid #000000;
}

.live-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-username {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.live-watching-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fe2c55;
  display: inline-block;
  box-shadow: 0 0 6px #fe2c55;
}

.live-action-rail {
  z-index: 6;
  bottom: calc(var(--nav-height) + 18px);
}

.live-grid-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #fe2c55;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
