/* ===================== TalentConnect — responsive (mobile-first) ===================== */

:root {
  --font-sans: Arial, Helvetica, sans-serif;
  --color-bg: #111;
  --color-bg-elevated: #222;
  --color-text: #fff;
  --color-accent: #00ffff;
  --color-accent-blue: #4da6ff;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --radius: 0.5rem;
  --header-h: 3.75rem;
  --ent-header-h: 3.75rem;
  --ent-nav-h: 3.5rem;
  --ent-chrome-total: calc(var(--ent-header-h) + var(--ent-nav-h));
  --bp-xl: 1200px;
  --bp-lg: 992px;
  --bp-md: 768px;
  --bp-sm: 576px;
  --content-max: 56.25rem;
  --tap-min: 2.75rem;
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ===================== BASE BODY ===================== */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

body:not(.Entertainment-page) {
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY (scalable) ===================== */
h1 {
  font-size: clamp(1.35rem, 4vw + 0.5rem, 2.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.2rem, 3vw + 0.5rem, 1.75rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.05rem, 2vw + 0.5rem, 1.25rem);
}

/* ===================== STANDARD SITE HEADER + NAV ===================== */
body:not(.Entertainment-page) header.site-header {
  background-color: var(--color-bg-elevated);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}

body:not(.Entertainment-page) .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

body:not(.Entertainment-page) .logo-container img {
  height: clamp(2.5rem, 8vw, 3.75rem);
  width: clamp(2.5rem, 8vw, 3.75rem);
  border-radius: 50%;
  object-fit: cover;
}

body:not(.Entertainment-page) .logo-container h1 {
  color: var(--color-accent);
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
}

/* Mobile menu toggle */
.nav-menu-toggle {
  display: none;
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: var(--tap-min);
  height: var(--tap-min);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

.nav-menu-icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-menu-icon::before {
  top: -6px;
}

.nav-menu-icon::after {
  top: 6px;
}

body:not(.Entertainment-page) nav.site-nav {
  width: 100%;
  background: linear-gradient(90deg, hsl(300, 3%, 8%), #121213);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  padding: var(--space-sm) var(--space-md);
  margin: 0;
  box-shadow: 0 4px 10px rgba(33, 46, 231, 0.2);
}

body:not(.Entertainment-page) nav.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1rem);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.35rem 0.25rem;
  white-space: nowrap;
}

body:not(.Entertainment-page) nav.site-nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

body:not(.Entertainment-page) nav.site-nav a:hover::after {
  width: 100%;
}

body:not(.Entertainment-page) nav.site-nav a:hover {
  color: #ffeb3b;
}

@media (max-width: 768px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  body:not(.Entertainment-page) nav.site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  body:not(.Entertainment-page) nav.site-nav.is-open {
    display: flex;
    max-height: 100vh;
    padding: var(--space-sm) var(--space-md);
  }

  body:not(.Entertainment-page) nav.site-nav a {
    white-space: normal;
    text-align: center;
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body:not(.Entertainment-page) nav.site-nav a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  body:not(.Entertainment-page) nav.site-nav {
    display: flex !important;
    max-height: none !important;
  }
}

/* ===================== HERO ===================== */
.hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.75rem) var(--space-md);
  width: 100%;
  max-width: 100vw;
}

.hero h1 {
  color: #d1c40c;
}

.hero p {
  max-width: 37.5rem;
  margin: var(--space-md) auto;
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  padding: 0 var(--space-sm);
}

.btn {
  background-color: orange;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button {
  display: inline-block;
  padding: clamp(0.85rem, 2vw, 1rem) clamp(1.5rem, 5vw, 2.5rem);
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: bold;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cta-button.cta-primary {
  background: linear-gradient(135deg, #00d3ff, #ff5cc8);
  color: #fff;
  letter-spacing: 0.03em;
}

.cta-button.cta-primary:hover {
  filter: brightness(1.1);
}

/* ===================== PAGE CONTENT ===================== */
.page-content {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--space-md);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  overflow-x: hidden;
}

body.contact-page .page-content {
  overflow: visible;
}

.page-content h1 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.page-content p {
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.discover-page .discover-outro {
  margin-top: var(--space-lg);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  padding: 0 var(--space-sm);
}

/* ===================== ABOUT ===================== */
.about {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--space-md);
  width: 100%;
}

.about h2 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.about p {
  max-width: 37.5rem;
  margin: 0 auto;
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ===================== CARDS (responsive grid) ===================== */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) auto;
  padding: 0 var(--space-md);
  width: 100%;
  max-width: min(100%, 75rem);
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 22rem;
  background-color: var(--color-bg-elevated);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: clamp(10rem, 35vw, 11.25rem);
  object-fit: cover;
}

.card-content {
  padding: var(--space-md);
}

.card-content h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card-content p {
  margin-bottom: var(--space-md);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.card-content button {
  background-color: orange;
  border: none;
  padding: 0.6rem 1.25rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: clamp(0.85rem, 2vw, 1rem);
  width: auto;
  max-width: 100%;
}

/* ===================== IMPORTANCE ===================== */
.importance {
  background-color: #333;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--space-md);
  text-align: center;
  width: 100%;
}

.importance h2 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.importance ul {
  list-style: none;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.importance li {
  margin: 0.6rem 0;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.importance blockquote {
  margin-top: var(--space-md);
  font-style: italic;
  color: orange;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ===================== FOOTER ===================== */
footer {
  background-color: var(--color-bg-elevated);
  padding: var(--space-md);
  text-align: center;
  color: #fff;
  width: 100%;
  margin-top: auto;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===================== CONTACT PAGE ===================== */
body.contact-page {
  background: #050816;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-md);
  padding-top: clamp(4.5rem, 12vw, 7.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.contact-container {
  width: 100%;
  max-width: 43.75rem;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  margin-bottom: var(--space-xl);
}

.contact-info h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-accent-blue);
}

.contact-info p {
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  margin: 0.75rem 0;
  color: #ddd;
  word-break: break-word;
}

.contact-form {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.25rem, 4vw, 1.875rem);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
  margin: 0 auto;
}

.contact-form h1 {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--color-accent-blue);
}

.contact-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  margin-top: var(--space-md);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: clamp(0.85rem, 2vw, 1.125rem);
  border-radius: 0.75rem;
  border: 1px solid #2f5eff;
  background: #0d1328;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  margin-top: var(--space-md);
  padding: clamp(0.85rem, 2vw, 1.125rem);
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(45deg, #0066ff, #4da6ff);
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(77, 166, 255, 0.5);
}

/* ===================== LOGIN / REGISTER ===================== */
body.login-page,
body.register-page {
  background: #050816;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-md);
  padding-top: clamp(4.5rem, 12vw, 7.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.login-page .form-container,
body.register-page .form-container {
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.25rem, 4vw, 1.875rem);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
  text-align: center;
}

body.login-page .form-container h2,
body.register-page .form-container h2 {
  font-size: clamp(1.35rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-lg);
  color: var(--color-accent-blue);
}

body.login-page form,
body.register-page form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

body.login-page input,
body.register-page input {
  width: 100%;
  padding: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #2f5eff;
  background: #0d1328;
  color: #fff;
  font-size: 1rem;
  outline: none;
  display: block;
}

body.login-page form input:focus,
body.register-page form input:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
}

body.login-page form button,
body.register-page form button {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(45deg, #0066ff, #4da6ff);
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: bold;
  cursor: pointer;
}

body.login-page .form-container p,
body.register-page .form-container p {
  margin-top: var(--space-md);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

body.login-page .form-container a,
body.register-page .form-container a {
  color: var(--color-accent-blue);
}

/* ===================== UPLOAD PAGE ===================== */
body.upload-page {
  background: #050816;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-md);
  padding-top: clamp(4.5rem, 12vw, 7.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.upload-page .form-container {
  width: 100%;
  max-width: 31.25rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.25rem, 4vw, 1.875rem);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
  text-align: center;
}

body.upload-page .form-container h2 {
  font-size: clamp(1.35rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-lg);
  color: var(--color-accent-blue);
}

body.upload-page form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

body.upload-page form input,
body.upload-page form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #2f5eff;
  background: #0d1328;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1rem);
  outline: none;
}

body.upload-page form input:focus,
body.upload-page form textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
}

body.upload-page form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

body.upload-page .upload-field-label {
  display: block;
  text-align: left;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: #9ecbff;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

body.upload-page .upload-talent-form {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.upload-page .form-errors,
body.upload-page .field-errors {
  list-style: none;
  color: #ff8a80;
  font-size: 0.875rem;
  text-align: left;
}

body.upload-page form input.upload-file {
  padding: 0.6rem;
  cursor: pointer;
}


/* ===================== ENTERTAINMENT (TikTok feed) ===================== */
body.Entertainment-page {
  font-family: var(--font-sans);
  background: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  overflow-x: hidden;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

body.Entertainment-page header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: var(--ent-header-h);
  box-sizing: border-box;
}

body.Entertainment-page header .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

body.Entertainment-page header img {
  height: clamp(2rem, 6vw, 2.5rem);
  width: clamp(2rem, 6vw, 2.5rem);
  border-radius: 50%;
  object-fit: cover;
}

body.Entertainment-page header h1 {
  font-size: clamp(0.95rem, 3vw, 1.125rem);
  color: #fff;
  margin: 0;
}

body.Entertainment-page nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xs) var(--space-sm);
  padding-bottom: max(var(--space-xs), env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  min-height: var(--ent-nav-h);
  box-sizing: border-box;
}

body.Entertainment-page nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.65rem, 2.5vw, 0.875rem);
  font-weight: 600;
  padding: 0.35rem 0.45rem;
  border-radius: 1.25rem;
  transition: background 0.3s;
  white-space: nowrap;
}

body.Entertainment-page nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.Entertainment-page .feed {
  margin-top: var(--ent-header-h);
  margin-bottom: var(--ent-nav-h);
  height: calc(100vh - var(--ent-chrome-total));
  height: calc(100dvh - var(--ent-chrome-total));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.Entertainment-page .feed::-webkit-scrollbar {
  display: none;
}

body.Entertainment-page .video-post {
  height: calc(100vh - var(--ent-chrome-total));
  height: calc(100dvh - var(--ent-chrome-total));
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
}

body.Entertainment-page .video-container {
  position: relative;
  /* Cap width so 9:16 height fits between chrome + padding */
  width: min(25rem, calc(100vw - 1rem), calc((100dvh - var(--ent-chrome-total) - 1.5rem) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - var(--ent-chrome-total) - 1.5rem);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

body.Entertainment-page .video-container video,
body.Entertainment-page .feed-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: inherit;
}

body.Entertainment-page .video-media-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

body.Entertainment-page .video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-right: clamp(4rem, 22vw, 5.75rem);
  color: #fff;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  border-radius: 0 0 1.25rem 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
}

body.Entertainment-page .video-handle {
  margin: 0 0 0.35rem;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 700;
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  word-break: break-word;
}

body.Entertainment-page .video-caption {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 3vw, 1.125rem);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  word-break: break-word;
}

body.Entertainment-page .video-desc {
  margin: 0;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  word-break: break-word;
}

body.Entertainment-page .video-info h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(0.95rem, 3vw, 1.125rem);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

body.Entertainment-page .video-info p {
  margin: 0;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  line-height: 1.4;
}

body.Entertainment-page .video-views-row {
  margin-top: 0.6rem;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  opacity: 0.95;
}

body.Entertainment-page .video-views-row .fa-eye {
  margin-right: 0.35rem;
}

body.Entertainment-page .video-side-rail {
  position: absolute;
  right: clamp(0.35rem, 2vw, 0.75rem);
  bottom: clamp(4rem, 18vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 0.85rem);
  z-index: 15;
  max-width: min(18vw, 4.5rem);
}

body.Entertainment-page .video-actions {
  position: static;
}

/* ===== Profile Wrapper & Follow Button (TikTok-style) ===== */
body.Entertainment-page .creator-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.35rem;
  width: clamp(2.75rem, 12vw, 3.25rem);
  overflow: visible;
}

body.Entertainment-page .profile-wrapper {
  position: relative;
  width: clamp(2.25rem, 11vw, 3rem);
  height: clamp(2.25rem, 11vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body.Entertainment-page .creator-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  display: block;
  flex-shrink: 0;
}

/* Active video debug styles removed */

/* ===== TikTok-Style Follow Button ===== */
body.Entertainment-page .tiktok-follow-btn {
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d55, #ff3366);
  border: 3px solid #fff;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 16px rgba(255, 45, 85, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

body.Entertainment-page .tiktok-follow-btn:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 16px rgba(255, 45, 85, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.Entertainment-page .tiktok-follow-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow: 
    0 2px 8px rgba(255, 45, 85, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.3);
}

body.Entertainment-page .tiktok-follow-btn.following {
  background: #333;
  border: 2px solid #444;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

body.Entertainment-page .tiktok-follow-btn.following:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

body.Entertainment-page .tiktok-follow-icon {
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconAppear 0.3s ease-out;
}

@keyframes iconAppear {
  0% { 
    opacity: 0; 
    transform: scale(0.5) rotate(-180deg); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
  }
}

body.Entertainment-page .action-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

body.Entertainment-page .action-count {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

body.Entertainment-page .action-btn {
  width: clamp(2.5rem, 12vw, 3.125rem);
  height: clamp(2.5rem, 12vw, 3.125rem);
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: clamp(1rem, 4vw, 1.25rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

body.Entertainment-page .action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

body.Entertainment-page .action-like.is-liked {
  color: #fe2c55;
  background: rgba(0, 0, 0, 0.55);
}

body.Entertainment-page .action-like.is-liked i {
  color: #fe2c55;
}

/* Modals & share */
.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-bottom);
}

.tc-modal[hidden] {
  display: none !important;
}

.tc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.tc-modal-panel {
  position: relative;
  width: 100%;
  max-width: 32.5rem;
  max-height: min(72vh, 100dvh - 2rem);
  background: #161616;
  border-radius: 1rem 1rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.tc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.tc-modal-header h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  color: #fff;
}

.tc-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
}

.tc-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  min-height: 10rem;
  max-height: min(42vh, 50dvh);
}

.tc-comment-row {
  margin-bottom: 0.85rem;
}

.tc-comment-user {
  font-weight: 700;
  font-size: 0.875rem;
  color: #7dd3fc;
}

.tc-comment-text {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #eee;
  word-break: break-word;
}

.tc-loading,
.tc-empty,
.tc-error {
  color: #aaa;
  font-size: 0.875rem;
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.tc-comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-comment-form input {
  flex: 1 1 12rem;
  min-width: 0;
  border-radius: 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #222;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.tc-comment-send {
  border: none;
  border-radius: 1.375rem;
  padding: 0.6rem 1.125rem;
  background: linear-gradient(135deg, #00d3ff, #ff5cc8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.tc-hint {
  padding: 0 1rem 0.85rem;
  margin: 0;
  font-size: 0.8125rem;
  color: #ffb74d;
  text-align: center;
}

.tc-share-popover {
  position: fixed;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  min-width: min(100vw - 2rem, 11.25rem);
  max-width: calc(100vw - 1rem);
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.tc-share-popover[hidden] {
  display: none !important;
}

.tc-share-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}

.tc-share-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tc-share-item i {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* ===================== OPTIONAL ADMIN LAYOUT ===================== */
.sidebar {
  width: min(100%, 13.75rem);
  background-color: #000;
  min-height: 100vh;
  padding: var(--space-md);
  position: relative;
}

.sidebar h2 {
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 0.9rem 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  display: block;
  padding: 0.6rem;
  border-radius: 0.375rem;
  transition: background 0.3s;
}

.sidebar ul li a:hover {
  background-color: orange;
  color: #000;
}

.main-content {
  flex: 1;
  padding: var(--space-md);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.admin-page {
  overflow-x: hidden;
}

@media (min-width: 769px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
  }

  .main-content {
    margin-left: 15rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* ===================== BREAKPOINTS (requested tiers) ===================== */
/* ≤1200px: see block near large desktop rules */
/* ≤992px */
@media (max-width: 992px) {
  .contact-container {
    padding: 0 var(--space-xs);
  }
}

/* ≤768px: mobile nav + Entertainment tweaks in their sections */
/* ≤576px: small-phone Entertainment + cards base column */

@media (min-width: 576px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: stretch;
  }

  .card {
    max-width: none;
  }
}

@media (min-width: 768px) {
  body:not(.Entertainment-page) nav.site-nav {
    gap: var(--space-md) 1.5rem;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 992px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 3.75rem var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .page-content {
    max-width: 62.5rem;
  }

  body.Entertainment-page .video-container {
    width: min(28rem, calc(100vw - 2rem), calc((100dvh - var(--ent-chrome-total) - 1.5rem) * 9 / 16));
  }
}

@media (max-width: 1200px) {
  .contact-container {
    max-width: 100%;
  }

  .page-content {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* Fine-tune Entertainment on short screens */
@media (max-width: 576px) {
  body.Entertainment-page .video-container {
    border-radius: 0;
    width: min(calc(100vw - 0.5rem), calc((100dvh - var(--ent-chrome-total) - 1rem) * 9 / 16));
  }

  body.Entertainment-page .video-info {
    border-radius: 0;
    padding: var(--space-sm);
    padding-right: clamp(3.5rem, 20vw, 5rem);
  }

  body.Entertainment-page nav a {
    padding: 0.25rem 0.3rem;
    font-size: clamp(0.6rem, 2.8vw, 0.75rem);
  }
}
.follow-btn{
    position: absolute;
    top: 55px;
    right: -8px;

    width: 24px;
    height: 24px;

    background: #ff004f;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;

    border: 2px solid white;
    cursor: pointer;

    z-index: 10;
}
