/* TikSwipe Vertical Video Scroll Stylesheet - Famous Theme Compatible */

:root {
  --tikswipe-primary: #FF9400;
  --tikswipe-accent: #00F2FE;
  --tikswipe-bg: #09090b;
  --tikswipe-text: #ffffff;
}

.tikswipe-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--tikswipe-bg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tikswipe-scroll-snap {
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tikswipe-card {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.tikswipe-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header bar */
.tikswipe-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.tikswipe-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
}

.tikswipe-back-btn {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.9;
  flex-shrink: 0;
}
.tikswipe-back-btn:hover {
  opacity: 1;
}

.tikswipe-logo-text {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.tikswipe-streaming-badge {
  background-color: #FF9400;
  color: #000000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 4px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 2px 6px rgba(255, 148, 0, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.tikswipe-autoplay-badge {
  background-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 5px;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.tikswipe-autoplay-label {
  font-size: 0.5rem;
  font-weight: 700;
  color: #a7f3d0;
  text-transform: capitalize;
  margin-bottom: 1px;
}

.tikswipe-autoplay-status {
  font-size: 0.62rem;
  font-weight: 900;
  color: #34d399;
  text-transform: uppercase;
}

.tikswipe-sound-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tikswipe-sound-btn:hover {
  background-color: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}
.tikswipe-sound-btn svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.tikswipe-sound-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-align: left;
}

.tikswipe-sound-text .sound-title {
  font-size: 0.55rem;
  color: #d4d4d8;
  font-weight: 500;
  margin-bottom: 2px;
}

.tikswipe-sound-text .sound-status {
  font-size: 0.68rem;
  color: #ffffff;
  font-weight: 700;
}

/* Overlay bottom info */
.tikswipe-info-overlay {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 90px;
  z-index: 40;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.tikswipe-post-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.tikswipe-post-title:hover {
  color: var(--tikswipe-accent);
}

.tikswipe-post-excerpt {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

/* Actions sidebar right */
.tikswipe-actions-bar {
  position: absolute;
  right: 16px;
  bottom: 40px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.tikswipe-action-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tikswipe-action-btn:hover {
  transform: scale(1.1);
  background: var(--tikswipe-primary);
}

.tikswipe-action-btn .count {
  font-size: 0.7rem;
  margin-top: 2px;
  font-weight: 600;
}
