/* =========================================================
   RESET & GLOBAL BASE
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #0c0c0c;
  color: #ffffff;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  padding: clamp(10px, 2vw, 16px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: clamp(30px, 6vw, 42px);
  height: auto;
  object-fit: contain;
}

.logo-text {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ff3d00;
  background: linear-gradient(90deg, #ff3d00, #ff9a3d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow:
    0 0 6px rgba(255,61,0,0.35),
    0 0 14px rgba(255,122,24,0.25);
}

/* =========================================================
   HEADER BUTTONS
   ========================================================= */
.header-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
  width: 100%;
  max-width: 900px;
}

.header-btn {
  flex: 1 1 clamp(120px, 25%, 160px);
  min-width: 110px;
  max-width: 170px;
  padding: clamp(5px, 1.2vw, 9px) clamp(8px, 2vw, 16px);
  border-radius: 7px;
  text-align: center;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #ff3d00, #d83200);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.telegram-btn {
  background: linear-gradient(180deg, #00cc44, #009933);
}

.telegram-btn:hover {
  background: linear-gradient(180deg, #33ff00, #00cc44);
}

.complaint-btn {
  background: linear-gradient(180deg, #ff5722, #e64a19);
}

.complaint-btn:hover {
  background: linear-gradient(180deg, #ff784e, #ff5722);
}

/* =========================================================
   VIDEO FEED GRID
   ========================================================= */
#feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(12px, 3vw, 24px);
  max-width: 1600px;
  margin: 0 auto;
}

/* =========================================================
   VIDEO CARD — CLUB NEON SYSTEM
   ========================================================= */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #0c0c0c;
  isolation: isolate;
  transition: transform 0.4s ease, box-shadow 0.6s ease;
}

/* ROTATING OUTER RING */
.video-wrapper::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background:
    conic-gradient(
      from 0deg,
      #ff3d00,
      #ff0088,
      #b400ff,
      #00eaff,
      #00ff88,
      #ffd000,
      #ff3d00
    );
  z-index: 1;
  filter: blur(0.4px);
  animation: neon-spin 9s linear infinite;
}

/* INNER DEPTH LAYER */
.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255,61,0,0.18),
      rgba(0,0,0,0.88)
    );
  z-index: 2;
  box-shadow:
    inset 0 0 20px rgba(255,61,0,0.25),
    inset 0 0 30px rgba(0,255,255,0.18);
  pointer-events: none;
}

/* VIDEO */
.feed-video {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    box-shadow 0.4s ease;
}

/* =========================================================
   HOVER — NIGHTCLUB ENERGY
   ========================================================= */
.video-wrapper:hover {
  transform: scale(1.045);
  box-shadow:
    0 0 45px rgba(255,0,120,0.45),
    0 0 75px rgba(0,255,255,0.25),
    0 30px 70px rgba(0,0,0,0.85);
}

.video-wrapper:hover::before {
  animation-duration: 4s;
  filter: brightness(1.3);
}

.video-wrapper:hover .feed-video {
  transform: scale(1.03);
  filter: brightness(1.15) saturate(1.35);
}

/* =========================================================
   TJ AD SLOT — SMALLER SIZE (~20% of video card)
   ========================================================= */
.tj-ad-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  border-radius: 18px;
  border: 2px dashed #555;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* scale to 20% of a normal video card */
  transform: scale(0.45); /* roughly 20% area visually */
  margin: auto; /* center in the grid cell */
}

.tj-ad-slot:hover {
  transform: scale(0.48); /* slightly bigger on hover */
  box-shadow: 0 0 20px rgba(255,61,0,0.35),
              0 0 30px rgba(0,255,255,0.2);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  width: 100%;
  text-align: center;
  padding: clamp(12px, 2vw, 18px);
  background-color: #111;
  color: #888;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  margin-top: 30px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.6);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes neon-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================================
   RESPONSIVE — ALWAYS 3 ACROSS
   ========================================================= */
@media (max-width: 1200px) {
  #feed { gap: 16px; }
}

@media (max-width: 1024px) {
  #feed { grid-template-columns: repeat(3, 1fr); padding: 16px; }
}

@media (max-width: 768px) {
  #feed { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 10px; }
  header { padding: 10px; }
}

@media (max-width: 480px) {
  #feed { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
  .logo-text { font-size: clamp(1rem, 5vw, 1.4rem); }
  .header-btn { font-size: 0.7rem; padding: 6px 10px; }
}
