/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
  font-family: 'Akira Expanded';
  src: url('../fonts/AkiraExpandedDemo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FormaDJR';
  src: url('../fonts/FormaDJRMicro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FormaDJR';
  src: url('../fonts/FormaDJRMicro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'FormaDJR', sans-serif;
  font-weight: normal;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
}

strong, b { font-weight: bold; }
em, i     { font-style: italic; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'FormaDJR', sans-serif;
  font-weight: bold;
}

p { text-align: justify; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 4000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.logo {
  height: 100px;
  width: auto;
  filter: brightness(0);
}

.logo-link {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #222;
  font-family: 'FormaDJR', sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

nav a:hover { opacity: 0.6; }

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a {
  color: #222;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.social-links a:hover { opacity: 0.6; }

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}


/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav a {
  text-decoration: none;
  color: #000;
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.mobile-nav a:hover { opacity: 0.5; }

.mobile-social {
  display: flex;
  gap: 30px;
}

.mobile-social a {
  color: #000;
  transition: opacity 0.2s ease;
}

.mobile-social a:hover { opacity: 0.5; }

.mobile-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  background: #fafafa;
  margin-top: 10px;
}

footer p {
  font-family: 'FormaDJR', sans-serif;
  font-weight: bold;
  text-align: center;
}


/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

body {
  animation: page-enter 0.4s ease both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}


/* ==========================================================================
   SCROLL FADE-IN
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   LOADING INDICATOR
   ========================================================================== */

.project-loading {
  width: 100%;
  height: 3px;
  background: #eee;
  margin-bottom: 40px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 40%;
  background: #000;
  animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* ==========================================================================
   HOME — PROJECTS GRID
   ========================================================================== */

body.page-index {
  padding-top: 140px;
}

.projects-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.projects-grid {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.project-link {
  text-decoration: none;
  display: block;
}

.project-link .project-item { height: 100%; }

.project-link.featured {
  grid-column: span 2;
}

.project-link.featured .project-video {
  padding-bottom: 42%;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.project-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
}

.project-video video,
.project-video iframe,
.project-video img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-item:hover .project-video video,
.project-item:hover .project-video iframe,
.project-item:hover .project-video img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay,
.project-link.featured .project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay .project-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: none;
  text-align: left;
}

.project-category {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-category-label { display: none; }


/* ==========================================================================
   HOME — SPONSORS CAROUSEL
   ========================================================================== */

.sponsors-carousel {
  background: #fff;
  padding: 30px 0;
  margin-top: 0;
}

.carousel-wrapper {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
}

.carousel-slide img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 1;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.carousel-slide img:hover { opacity: 0.7; }

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */

.project-page {
  padding: 180px 0 80px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover { color: #000; }

.project-header {
  text-align: center;
  margin-bottom: 40px;
}

.project-page .project-category-label { display: none; }

.project-page .project-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  text-align: center;
}

.project-video-wrapper {
  width: 100%;
  background: #000;
  margin-bottom: 60px;
}

.project-video-wrapper video {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.project-video-wrapper.multi-video {
  background: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.multi-video-item {
  width: 100%;
  background: #000;
}

.multi-video-item video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.episode-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  padding: 12px 16px 2px;
  background: #fff;
  text-align: left;
}

.episode-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #111;
  padding: 0 16px 10px;
  background: #fff;
  text-align: left;
  text-transform: uppercase;
}

.project-story {
  max-width: 800px;
  margin: 0 auto 80px;
}

.story-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1em;
  text-align: justify;
}

.story-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.detail-label, .detail-value { text-align: left; }

.detail-label {
  font-family: 'FormaDJR', sans-serif;
  font-weight: bold;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 6px;
}

.detail-value {
  font-family: 'FormaDJR', sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  color: #111;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.project-nav a {
  text-decoration: none;
  color: #111;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.project-nav a:hover { opacity: 0.5; }


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-section {
  padding: 180px 0 100px;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 40px;
}

.about-intro {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.9;
  font-weight: 300;
}

.about-image-wrapper { width: 100%; }

.about-image-wrapper img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about-image-wrapper img:hover { filter: grayscale(0%); }

.about-bio {
  max-width: 750px;
  margin: 0 auto 80px;
}

.bio-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999;
  margin-bottom: 20px;
}

.bio-text {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.9;
  text-align: justify;
  font-weight: 300;
  margin-bottom: 25px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 80px;
}

.stat-item { text-align: center; }
.stat-item p { text-align: center; }

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
}

.about-cta { text-align: center; }

.about-cta p {
  font-size: 1rem;
  color: #999;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  padding: 18px 50px;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: #333;
  transform: translateY(-2px);
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
  padding: 180px 0 100px;
  min-height: 100vh;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  font-weight: 300;
}

.contact-info { margin-bottom: 60px; }

.info-item { margin-bottom: 30px; }

.info-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 10px;
}

.info-value {
  font-size: 1.5rem;
  font-weight: 300;
}

.info-value a {
  color: #222;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.info-value a:hover { opacity: 0.6; }

.contact-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
}

.form-group { margin-bottom: 25px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'FormaDJR', sans-serif;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 18px 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
}


/* ==========================================================================
   INTRO PAGE
   ========================================================================== */

body.page-intro {
  overflow: hidden;
  background: #000;
}

.video-intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-intro video {
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.intro-mobile { display: none; }

.intro-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  cursor: pointer;
}

.intro-logo img {
  height: 300px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.intro-logo:hover img { opacity: 0.7; }

.click-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: #fff;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.click-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.click-overlay .overlay-text,
.click-overlay .overlay-text span {
  color: #000;
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Akira Expanded', sans-serif !important;
  line-height: 1.1;
  text-align: left;
}

.click-overlay .overlay-text .line1 { display: block; padding-left: 2em; }
.click-overlay .overlay-text .line2 { display: block; }


/* ==========================================================================
   ADMIN — LOGIN
   ========================================================================== */

#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
}

.login-box {
  width: 360px;
  padding: 0 40px;
}

.login-logo {
  height: 100px;
  display: block;
  margin: 0 auto 40px;
  filter: brightness(0);
}

.login-box input {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #ccc;
  color: #000;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.login-box input::placeholder { color: #aaa; }
.login-box input:focus { border-color: #000; }

.login-box button {
  width: 100%;
  padding: 18px 40px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.login-box button:hover {
  background: #333;
  transform: translateY(-2px);
}

.login-error {
  color: #e55;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

.admin-back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.admin-back-link:hover { color: #000; }


/* ==========================================================================
   ADMIN — DASHBOARD
   ========================================================================== */

#dashboard { display: none; }

.admin-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
  gap: 20px;
}

.admin-header img {
  height: 35px;
  filter: brightness(0);
}

.admin-header h1 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  flex: 1;
}

.logout-btn {
  padding: 10px 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.logout-btn:hover { background: #333; transform: translateY(-2px); }

.admin-layout {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 30px 0;
  position: fixed;
  top: 60px;
  bottom: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover { color: #000; }
.sidebar-item.active { color: #000; background: #f5f5f5; }
.sidebar-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.main-content {
  margin-left: 200px;
  padding: 40px;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #aaa;
}

.upload-btn {
  padding: 10px 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.upload-btn:hover { background: #333; transform: translateY(-2px); }

input[type="file"] { display: none; }

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.file-card {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: border-color 0.2s;
}

.file-card:hover { border-color: #ccc; }

.file-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.file-card video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

.file-info {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-name {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delete-btn {
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: color 0.2s;
  padding: 2px 6px;
}

.delete-btn:hover { color: #e55; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: #333;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

#dashboard footer { margin-left: 200px; }
#guestDashboard .guest-video-grid { flex: 1; }
#guestDashboard footer { margin-top: 0; margin-left: 0; }

.project-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: #f0f0f0;
  color: #666;
  margin-right: auto;
}


/* ==========================================================================
   ADMIN — MODALS
   ========================================================================== */

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.admin-modal.open { display: flex; }

.admin-modal-box {
  background: #fff;
  width: 480px;
  max-width: 95vw;
  padding: 40px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.admin-modal-header span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #aaa;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
}

.modal-close-btn:hover { color: #000; }

.admin-input {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #ccc;
  color: #000;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'FormaDJR', sans-serif;
}

.admin-input::placeholder { color: #aaa; }
.admin-input:focus { border-color: #000; }

.file-drop {
  border: 1px dashed #ccc;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.file-drop:hover { border-color: #000; }

.file-drop p {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

.file-drop-name {
  font-size: 0.75rem;
  color: #666;
}


/* ==========================================================================
   ADMIN — GUEST PORTAL
   ========================================================================== */

#guestDashboard {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.guest-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  gap: 20px;
}

.guest-header img {
  height: 35px;
  filter: brightness(0);
}

.guest-header h1 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  flex: 1;
}

.guest-video-grid {
  padding: 100px 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.guest-video-card {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.guest-video-card:hover { transform: scale(1.02); }

.guest-video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.guest-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 12px;
}

.guest-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-play-icon svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

.guest-video-card-name {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}


/* ==========================================================================
   ADMIN — FEEDBACK MODAL
   ========================================================================== */

#feedbackModal { background: rgba(0,0,0,0.88); }

.feedback-modal-container {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 88vw;
  max-width: 1150px;
  height: 80vh;
  border-radius: 8px;
  overflow: hidden;
}

.feedback-video-wrapper {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-video-wrapper video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.feedback-close-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 50%;
  opacity: 0.85;
  z-index: 2;
}

.feedback-close-btn:hover { opacity: 1; background: rgba(0,0,0,0.75); }

.feedback-panel {
  flex: 1;
  background: #fff;
  border-left: 1px solid #eee;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feedback-video-title {
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #222;
  border-bottom: 1px solid #eee;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-comments {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}

.feedback-empty {
  color: #ccc;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 20px;
}

.feedback-comment {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 10px 14px;
}

.feedback-comment-text {
  font-size: 0.85rem;
  color: #222;
  margin: 0 0 5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.feedback-comment-date {
  font-size: 0.7rem;
  color: #aaa;
}

.feedback-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-timestamp {
  font-size: 0.7rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.comment-timestamp:hover { background: #444; }

.feedback-comment-author {
  font-size: 0.72rem;
  color: #888;
}

/* ── VIDEO TIMELINE ─────────────────────────────────── */
.video-timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  cursor: pointer;
  z-index: 10;
}

.timeline-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.timeline-markers {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: #FFE066;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s;
}

.timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.4);
}

/* ── TIMESTAMP POPUP ────────────────────────────────── */
.timestamp-popup {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.timestamp-popup.visible { display: flex; }

.timestamp-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timestamp-popup-time {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  background: #111;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.timestamp-popup-close {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  color: #888;
  padding: 0;
}

.timestamp-popup-close:hover { color: #000; }

.timestamp-popup-input {
  min-height: 52px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  outline: none;
  color: #222;
}

.timestamp-popup-input:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}

.timestamp-popup-input:focus { border-color: #000; }

.timestamp-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timestamp-popup-send {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.timestamp-popup-send:hover { background: #333; }

.feedback-input-area {
  padding: 12px 18px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-toolbar { display: flex; gap: 6px; }

.format-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #333;
  transition: all 0.15s;
}

.format-btn:hover { border-color: #000; background: #f5f5f5; }
.format-btn.active { background: #000; color: #fff; border-color: #000; }

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 4px;
}

.color-picker-wrapper { position: relative; }

#fmtColor {
  flex-direction: column;
  gap: 2px;
  height: 32px;
  padding: 2px 4px;
}

.fmt-color-icon {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1;
}

.fmt-color-bar {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  display: block;
}

.color-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px;
  gap: 5px;
  flex-direction: row;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 100;
}

.color-dropdown.open { display: flex; }

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.1s;
}

.color-swatch:hover { border-color: #555; transform: scale(1.15); }

.color-swatch-clear {
  background: #fff !important;
  border: 1px solid #ccc;
  font-size: 0.65rem;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatch-clear:hover { border-color: #555; color: #333; }

.feedback-editor {
  width: 100%;
  min-height: 68px;
  max-height: 120px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 0.85rem;
  font-family: 'FormaDJR', sans-serif;
  box-sizing: border-box;
  outline: none;
  overflow-y: auto;
  line-height: 1.45;
}

.feedback-editor:focus { border-color: #000; }

.feedback-editor:empty::before {
  content: 'Adicionar comentário...';
  color: #aaa;
  pointer-events: none;
}

.client-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}

.client-upload-meta { overflow: hidden; }

.client-upload-name {
  font-size: 0.85rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-upload-date {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 2px;
}

.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}

.client-row-name {
  font-size: 0.85rem;
  color: #222;
  flex: 1;
}

.client-row-actions { display: flex; gap: 8px; }

.action-btn {
  padding: 6px 14px;
  border: 1px solid #eee;
  background: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.action-btn:hover { border-color: #000; color: #000; }
.action-btn.danger:hover { border-color: #e55; color: #e55; }

.download-btn {
  padding: 8px 20px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.download-btn:hover { background: #333; }

.guest-select {
  padding: 8px 12px;
  border: 1px solid #eee;
  background: #fff;
  font-size: 0.8rem;
  color: #666;
  outline: none;
  cursor: pointer;
  font-family: 'FormaDJR', sans-serif;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .about-top { gap: 50px; }
}

@media (max-width: 900px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper img { height: 420px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-left nav,
  header .social-links { display: none !important; }

  header { padding: 10px 0; }

  .logo { height: 45px !important; }

  .nav-left { gap: 15px !important; }

  body.page-index { padding-top: 80px; }

  .projects-section { padding-top: 70px; }

  .projects-grid { grid-template-columns: 1fr; }

  .project-link.featured {
    grid-column: span 1;
  }

  .project-link.featured .project-video { padding-bottom: 56%; }

  /* Carousel — não pausar ao toque em mobile */
  .carousel-track:hover {
    animation-play-state: running;
  }

  /* Overlay sempre visível em mobile — sem hover */
  .project-overlay {
    opacity: 1 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 60%);
  }

  .project-item:hover .project-overlay {
    opacity: 1 !important;
  }

  .project-overlay .project-title {
    font-size: 0.72rem;
    letter-spacing: 1px;
  }

  .project-category {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .mobile-nav a { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  .mobile-nav ul { gap: 20px; }

  .project-page { padding: 90px 0 60px !important; }

  .project-page .project-title { font-size: 1.4rem !important; }
}

/* Dispositivos sem hover (touch) — overlay sempre visível */
@media (hover: none) {
  .project-overlay {
    opacity: 1 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 60%);
  }

  .project-item:hover .project-overlay {
    opacity: 1 !important;
  }

  .carousel-track:hover {
    animation-play-state: running !important;
  }
}

@media (max-width: 768px) {
  .project-header { margin-bottom: 20px; }

  .story-details { grid-template-columns: repeat(2, 1fr) !important; }

  .about-section { padding: 120px 0 60px !important; }

  .about-image-wrapper img { height: 320px; }

  .about-title { font-size: 1.8rem !important; }

  .about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; padding: 30px 0; margin-bottom: 40px; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.65rem; }

  .contact-section { padding: 120px 0 60px !important; }

  .contact-title { font-size: 2rem; }

  .info-value { font-size: 1.2rem; }

  .contact-form { padding: 30px 20px; }

  .intro-logo img { height: 180px; }
}

@media (max-width: 768px) {
  .carousel-slide {
    gap: 36px;
    padding: 0 18px;
  }

  .carousel-slide img {
    height: 28px;
  }

  .sponsors-carousel {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    gap: 24px;
    padding: 0 12px;
  }

  .carousel-slide img {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .story-details { grid-template-columns: 1fr !important; }

  .about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; padding: 24px 0; }

  .stat-number { font-size: 1.6rem; }

  .intro-logo img { height: 120px; }

  .video-intro {
    height: 100dvh;
  }

  .video-intro video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    min-width: unset;
    min-height: unset;
    object-fit: cover;
    transform: none;
  }

  .intro-desktop { display: none !important; }
  .intro-mobile { display: block !important; }

  .project-video-wrapper.multi-video { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
    padding-top: 60px;
  }

  .sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-item {
    flex-shrink: 0;
    padding: 14px 18px;
    font-size: 0.7rem;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  #dashboard footer {
    margin-left: 0;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-header {
    padding: 0 16px;
  }

  .admin-header h1 {
    font-size: 0.6rem;
  }
}
