/* ============================================================
   ANITOK (АниТок) — Anilore Shorts & Clips Feed Styles
   TikTok/Reels style vertical anime clips feed
   100% Synchronized with User Active Theme
   ============================================================ */

.anitok-page {
  min-height: calc(100vh - 70px);
  padding: 24px 20px 80px;
  background: var(--bg-primary, #000000);
  color: var(--text-primary, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anitok-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Header Banner */
.anitok-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.anitok-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.anitok-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--accent-glow, 0 6px 20px rgba(0, 0, 0, 0.4));
}

.anitok-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary, #fff) 40%, var(--accent-secondary, var(--text-accent, #ff4d6d)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.anitok-hero-desc {
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
  margin-top: 3px;
}

.anitok-create-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full, 9999px);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--accent-glow, 0 4px 18px rgba(0, 0, 0, 0.35));
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.anitok-create-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: var(--accent-glow);
}

/* Feed Tabs */
.anitok-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding-bottom: 12px;
}

.anitok-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #9ca3af);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anitok-tab-btn:hover {
  color: var(--text-primary, #fff);
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.06));
}

.anitok-tab-btn.active {
  background: var(--accent-subtle, rgba(230, 57, 70, 0.14));
  color: var(--accent-secondary, var(--text-accent, #ff4d6d));
  border-color: var(--border-hover, rgba(230, 57, 70, 0.45));
}

/* Feed Cards List */
.anitok-feed-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: center;
}

/* Individual Clip Card */
.anitok-clip-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card, #101010);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 12px 35px rgba(0, 0, 0, 0.45));
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.anitok-clip-card:hover {
  border-color: var(--border-hover, rgba(230, 57, 70, 0.4));
  box-shadow: var(--shadow-lg, 0 16px 45px rgba(0, 0, 0, 0.6)), var(--accent-glow);
}

/* Clip Author / Header */
.anitok-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anitok-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anitok-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-hover, rgba(230, 57, 70, 0.4));
}

.anitok-author-meta {
  display: flex;
  flex-direction: column;
}

.anitok-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.anitok-anime-badge {
  font-size: 11.5px;
  color: var(--text-muted, #9ca3af);
  display: flex;
  align-items: center;
  gap: 6px;
}

.anitok-time-badge {
  font-size: 11px;
  color: var(--accent-secondary, var(--text-accent, #ff4d6d));
  font-weight: 600;
  background: var(--accent-subtle, rgba(230, 57, 70, 0.12));
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-hover, rgba(230, 57, 70, 0.2));
}

/* Video Stage */
.anitok-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anitok-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.anitok-video-controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.anitok-video-stage:hover .anitok-video-controls-overlay,
.anitok-video-controls-overlay.paused {
  opacity: 1;
}

.anitok-video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow, 0 4px 18px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* Corner Badges on Video */
.anitok-video-corner-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-glass, rgba(0, 0, 0, 0.75));
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  pointer-events: none;
}

.anitok-sound-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass, rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(8px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-primary, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.anitok-sound-btn:hover {
  background: var(--accent-primary, #e63946);
  transform: scale(1.08);
}

/* Card Content / Caption */
.anitok-card-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anitok-clip-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary, #fff);
  word-break: break-word;
}

.anitok-clip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.anitok-tag-chip {
  font-size: 12px;
  color: var(--accent-secondary, var(--text-accent, #ff4d6d));
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.anitok-tag-chip:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Card Actions Bar */
.anitok-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  flex-wrap: wrap;
  gap: 10px;
}

.anitok-action-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anitok-icon-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #fff);
  padding: 7px 14px;
  border-radius: var(--radius-full, 9999px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.anitok-icon-action-btn:hover {
  background: var(--bg-secondary, rgba(255, 255, 255, 0.12));
  transform: translateY(-1px);
}

.anitok-like-btn.liked {
  background: var(--accent-subtle, rgba(230, 57, 70, 0.18));
  border-color: var(--border-hover, rgba(230, 57, 70, 0.45));
  color: var(--accent-primary, #e63946);
}

.anitok-like-btn.liked svg {
  fill: var(--accent-primary, #e63946);
  stroke: var(--accent-primary, #e63946);
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.anitok-watch-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-subtle, rgba(230, 57, 70, 0.18));
  border: 1px solid var(--border-hover, rgba(230, 57, 70, 0.35));
  color: var(--accent-secondary, var(--text-accent, #ff4d6d));
  padding: 7px 16px;
  border-radius: var(--radius-full, 9999px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.anitok-watch-full-btn:hover {
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--accent-glow, 0 4px 15px rgba(230, 57, 70, 0.4));
}

/* Empty State */
.anitok-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted, #9ca3af);
}
