/* ============ HEADER ============ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #111;
  border-bottom: 2px solid #222;
  position: sticky;
  top: 0;
  z-index: 999;
}

header h1 {
  font-size: 24px;
  cursor: pointer;
  letter-spacing: 1px;
}

header h1 span {
  color: #f1c40f;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filters {
  display: flex;
  gap: 8px;
}

.filters button {
  padding: 8px 16px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 6px;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters button:hover {
  border-color: #f1c40f;
  color: #f1c40f;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

.filters button.active {
  background: #f1c40f;
  border-color: #f1c40f;
  color: #000;
}

.win-money-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.win-money-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.telegram-btn {
  padding: 8px 16px;
  background: #0088cc;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.telegram-btn:hover {
  background: #0099dd;
  transform: scale(1.05);
}

/* ============ BANNERS ============ */
.banner-top {
  max-width: 728px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.banner-sticky-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
}

/* ============ SUB NAV ============ */
.sub-nav {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sub-nav button {
  padding: 6px 14px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 6px;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-nav button:hover {
  border-color: #f1c40f;
  color: #f1c40f;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

.sub-nav button.active {
  background: #f1c40f;
  border-color: #f1c40f;
  color: #000;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid.clips {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #555;
  font-size: 16px;
}

/* ============ CARD ============ */
.card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #222;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: #f1c40f;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.25);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-wrapper.vertical {
  padding-top: 177.78%;
  max-width: 320px;
  margin: 0 auto;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(241, 196, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
}

.actions {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.actions button {
  flex: 1;
  padding: 8px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 6px;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actions button:hover {
  border-color: #f1c40f;
  color: #f1c40f;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.actions button.fav.active {
  background: #f1c40f;
  border-color: #f1c40f;
  color: #000;
}

.actions button.pass.active {
  background: #555;
  border-color: #555;
  color: #fff;
}

/* ============ TIKTOK FEED ============ */
.tiktok-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 0;
}

.tiktok-item {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid #222;
  transition: all 0.25s ease;
}

.tiktok-item:hover {
  border-color: #f1c40f;
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.25);
}

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

.tiktok-actions {
  position: absolute;
  right: 10px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tiktok-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tiktok-actions button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.15);
}

.tiktok-actions button.fav.active {
  background: #f1c40f;
  color: #000;
}

.tiktok-actions button.pass.active {
  background: #555;
}
