/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header addition */

:root {
    --bg-color: #fde6ff;
    --text-color: #2c1b47;
    --card-bg: #000000;
    --border-color: #000000;
    --primary-color: rgb(236, 236, 236);
    --secondary-color: #9A27B0;
    --hover-color: #3e3d3d;
    --accent-color: #96ffb9;
    --shadow: rgba(106, 13, 173, 0.2);
    --font-family: 'Inter', sans-serif;
}

.dark-mode {
    --bg-color: #000000;
    --text-color: #f5ecda;
    --card-bg: #111111;
    --border-color: #3D1F5C;
    --primary-color: #d3b41a;
    --secondary-color: #fefe0b;
    --hover-color: #8F00B3;
    --accent-color: #d68f00;
    --shadow: rgba(255, 255, 255, 0.1);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px var(--shadow);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
}



.site-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 50px; /* Adjust size */
    width: auto;
    margin-left: 10px; /* Pushes it away from the hamburger button */
    transition: opacity 0.3s ease-in-out;
}



body {
    font-family: var(--font-family);
    background-color: var(--card-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 160px;
}

/* ///////////////////////////////////// */

body {
  font-family: "Inter", Arial, sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.5;
}

h1 {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #ff0050, #ff7a00);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Feed container */
#feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background-color: #000;
}

/* Video cards */
.video-card {
  width: 100%;       /* full width of parent */
  max-width: 600px;  /* desktop max */
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Video player */
.video-card video {
  width: 100%;
  height: 60vh;          /* adjust height for mobile zoom */
  object-fit: cover;     /* fills box, crops edges if needed */
  display: block;
}

/* Load More button */
#loadMore {

  margin: 20px auto;
  padding: 10px 20px;
  font-size: 18px;
  background: #1b1b1b;
  color: white;
  border: none; 
  border-radius: 8px;
  cursor: pointer;
}




/* #loadMore:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
} */

.video-stats {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem 0 1rem;
  font-size: 2rem;
  color: #444;
}

.video-username {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  padding: 0 1rem 0 1rem;
  margin-top: 6px;
  font-weight: bold;
  color: #000000;
}


#filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}

#filter-buttons button {
    background-color: var(--primary-color);
    color: rgb(29, 29, 29);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

#filter-buttons button.active,
#filter-buttons button:hover {
    background-color: var(--primary-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px; /* space between icon and text */
}

.stat-icon {
  width: 22px;
  height: 22px;
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Video container */
.video-card {
  position: relative;
  margin-bottom: 20px;
  background-color: #e7e7e7;
}

/* Video player */
.video-player {
  width: 100%;
  display: block;
}

/* Buttons shared style */
.fullscreen-btn {
  position: absolute;
  background: rgba(29, 29, 29, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Fullscreen button */
.fullscreen-btn {
  bottom: 340px;
  right: 20px;
  width: 100px;
  height: 100px;
  font-size: 80px;
}

/* Stats */
.video-stats {
  /* margin-top: 2px; */
  font-size: 39px;
  color: #555;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  margin-right: 6px;
  opacity: 90%;
}



.video-nickname {
  font-size: 4rem;
  color: #1e1e1e;
  padding: 0 1rem 0 1rem;
}




/* #center-zone-overlay {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1500px; /* same as CENTER_ZONE_HEIGHT in JS */
  /* transform: translateY(-50%);
  border-top: 10px dashed rgba(255, 255, 255, 0.5);
  border-bottom: 10px dashed rgba(255, 255, 255, 0.5);
  pointer-events: none; /* allows clicks to pass through */
  /* z-index: 9999;
} */ */ */

body {
  padding-bottom: env(safe-area-inset-bottom, 20px); /* fallback 20px */
}

/* Reset default spacing */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.profile-link {
  display: block;
  margin-top: 4px;
  font-size: 2.2rem;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 1rem 0.75rem 1rem;
}
.profile-link:hover {
  color: #0056b3;
}



/* Mobile tweaks */
@media (max-width: 768px) {
  h1 { font-size: 1.25rem; padding: 0.75rem; }
  .video-card video { height: 70vh; } /* zoom more on mobile */
}

.site-header {
  display: flex;
  justify-content: space-between;  /* aligns items to the left */
  align-items: center;          /* keeps them vertically aligned */
  gap: 1rem;                    /* space between items */
  padding: 0.5rem 1rem;
  background: #1b1a1a;             /* or gradient if you want */
  border-bottom: 1px solid #ddd;
  height: 150px;
}

#filter-buttons button {
    padding: 8px 14px; /* Smaller buttons */
    font-size: 28px; /* Reduce font size */
    height: 75px;
    width: 160px;
    
}

#loadMore {
  font-size: 80px;
  margin-top: 60px;
  
  margin-bottom: calc(100px + env(safe-area-inset-bottom));


}

/* ✅ Reduce Logo & Title Size */
.logo-link img {
    height: 120px;
    align-items: left;
    padding: 20px;
}

.site-header h1 {
    font-size: 18px; /* Reduce text size */
    text-align: left;
    margin: 5px 0;
}

.spinner {
  height: 100px;
  width: 100px;
}
