/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Fonts */
  --font-display: 'Orbitron', sans-serif;
  --font-ui: 'Roboto', sans-serif;

  /* Palette - Dark/Base */
  --rift-black: #050508;
  --rift-smog: #0F1926;
  --rift-concrete: #2B2F33;
  --rift-grime: #3A5F3A;

  /* Palette - Neon/Accents */
  --rift-cyan: #00F5FF;
  --rift-magenta: #FF00FF;
  --rift-purple: #711C91;
  --rift-acid: #FFED00;

  /* Palette - Warm/Safe */
  --rift-rust: #F57D1F;
  --rift-red: #FF204E;
  --rift-beige: #D7BFA2;
  --rift-text: #E0E0E0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--rift-black);
  /* Default html bg */
}

body {
  background-color: transparent;
  /* Allows fixed bg to show */
  position: relative;
}

body.rift-feed {
  font-family: var(--font-ui);
  color: var(--rift-text);
  overflow-y: auto;
}

/* =========================================
   2. INTRO OVERLAY & BACKGROUND
   ========================================= */
.feed-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease-out, visibility 1.5s;
}

.feed-intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feed-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide floating contact during intro animation */
.feed-intro-overlay:not(.is-hidden)~.rift-floating-contact {
  display: none !important;
}

.feed-layout-bg {
  position: absolute;
  /* Changed from fixed to absolute so it scrolls */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Covers the full scroll height if body is relative */
  z-index: 0;
  /* Changed from -1 to 0 to be safe, behind content (z-10) */
  /* background-image: removed */
  background-size: cover;
  background-position: center 220px;
  /* Shifted down under stories (approx) */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in;
}

.feed-layout-bg.is-active {
  opacity: 1;
}

/* Desktop Background: Fixed, contained, centered */
@media (min-width: 1101px) {
  .feed-layout-bg {
    background-image: url('./imgfeed/img-sfondo-desk-cibo-feed-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: contain;
    /* Ensure full image visibility */
    background-position: center top;
    /* Center horizontally, top aligned or center? 'remains firm' -> center center usually best for containment */
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    /* Do not scroll with content */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
}

.feed-root {
  opacity: 0;
  transition: opacity 1s ease-in;
  /* Ensure content is scrollable */
  position: relative;
  z-index: 10;
}

.feed-root.is-active {
  opacity: 1;
}

/* =========================================
   3. HEADER (Desktop & Mobile)
   ========================================= */
.feed-header {
  position: fixed;
  /* Fixed as requested for distinct glass bar */
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 10001;
  /* High z-index */
  background: rgba(5, 5, 8, 0.4);
  /* Very subtle dark tint */
  backdrop-filter: blur(12px);
  /* Glass effect */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rift-concrete);
  /* Barely visible border */
}

.feed-logo-text {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  height: 30px;
  /* Base height to anchor the image */
}

.feed-logo-text img {
  height: 50px;
  /* Fits comfortably in the navbar */
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  z-index: 10;
}

.feed-logo-text:hover img {
  transform: translateY(-50%) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Desktop: No hamburger, Logo positioned as desired (left) */
.feed-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 10002;
  /* Above menu overlay */
}

.feed-hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--rift-red);
  transition: all 0.3s ease;
}

.feed-hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.feed-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.feed-hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Desktop Nav */
.feed-desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  color: var(--rift-text);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  outline: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--rift-cyan);
  text-shadow: 0 0 5px var(--rift-cyan);
}

.nav-link.highlight {
  color: var(--rift-red);
  border: 1px solid var(--rift-red);
  padding: 6px 16px;
  transition: all 0.3s;
}

.nav-link.highlight:hover {
  background: var(--rift-red);
  color: #000;
  box-shadow: 0 0 10px var(--rift-red);
}

/* Desktop: No hamburger */
.feed-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 10002;
}

.feed-hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--rift-red);
  transition: all 0.3s ease;
}

/* Mobile Rules */
@media (max-width: 1100px) and (orientation: portrait) {
  .feed-header {
    flex-direction: row;
    /* Standard row */
    justify-content: space-between;
    /* Splays them apart */
    padding: 15px 20px;
  }

  .feed-desktop-nav {
    display: none;
    /* Hide desktop links */
  }

  .feed-logo-text {
    height: 25px;
  }

  .feed-logo-text img {
    height: 40px;
  }

  .feed-hamburger {
    display: flex;
    /* Show hamburger */
    /* Hamburger on Right (default order) */
    margin-right: 0;
  }
}

/* =========================================
   4. FULLSCREEN MENU (Mobile)
   ========================================= */
.feed-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content like Index but maybe aligned left */
}

.feed-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.feed-menu-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../img/img-hamburguer-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -1;
}

.feed-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  /* Aligned left or center? Prompt: "centrato / allineato a sinistra tipo Cyberpunk menu" */
  align-items: flex-start;
}

.feed-menu-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

@media (max-width: 1100px) and (orientation: portrait) {
  .feed-menu-logo {
    top: 5vh !important;
  }
}


.feed-menu-logo img {
  height: 100px;
  max-width: 80%;
  filter: drop-shadow(0 0 15px var(--rift-rust));
  object-fit: contain;
}

.feed-menu-item {
  background: var(--rift-smog);
  /* Base Dark Box */
  color: var(--rift-beige);
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--rift-rust);
  border-left: 4px solid var(--rift-rust);
  width: 100%;
  text-align: left;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  /* Cyber shape */
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.feed-menu-item:hover,
.feed-menu-item.is-active,
.feed-menu-item:focus {
  background: var(--rift-rust);
  color: var(--rift-black);
  padding-left: 50px;
  /* Shift effect */
  box-shadow: 0 0 15px var(--rift-rust);
}

.feed-menu-start {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--rift-cyan);
  color: var(--rift-cyan);
  clip-path: none;
}

.feed-menu-start:hover {
  background: var(--rift-cyan);
  color: var(--rift-black);
}


/* =========================================
   5. STORIES (Legacy Migrated)
   ========================================= */
.stories-wrapper {
  margin-top: 100px;
  /* Adjusted for fixed header layout */
  /* Increased from 20px */
  margin-bottom: 40px;
  padding: 10px 40px;
  /* Added slight top/bottom padding internally too */
  /* space for arrows */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-bar {
  display: flex;
  gap: 4px;
  /* Very close for desktop */
  /* Reduced gap from 24px */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  padding-top: 30px;
  scrollbar-width: none;
  max-width: 100%;
}

.stories-bar::-webkit-scrollbar {
  display: none;
}

.stories-track {
  display: flex;
  gap: 4px;
  /* Very close */
  /* Reduced gap */
}

.story {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 140px;
  /* Wider container for name */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 50%;
  outline: none;
}

.story:focus-visible .circle-story {
  box-shadow: 0 0 0 4px var(--rift-cyan), 0 0 20px var(--rift-cyan);
}

.circle-story {
  width: 130px;
  /* Big Desktop Size */
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Ensure container is round for box-shadow */

  /* Shadow Pulse Logic */
  animation: story-container-shadow 2s ease-in-out infinite alternate;
}

@keyframes story-container-shadow {
  0% {
    box-shadow: 0 0 20px rgba(245, 125, 31, 0.4), inset 0 0 10px rgba(245, 125, 31, 0.2);
  }

  100% {
    box-shadow: 0 0 50px rgba(245, 125, 31, 0.8), inset 0 0 20px rgba(245, 125, 31, 0.4);
  }
}

.circle-img {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  z-index: 2;
  border: 2px solid var(--rift-black);
}

/* Story Ring Warm/Glitch */
/* Story Ring Cyberpunk Flow */
/* Story Ring Warm/Glitch - Pulsing Dirty Rust */
/* Story Ring: Double Contra-Rotating Rust Loader */
.circle-story::before,
.circle-story::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Ring 1: Clockwise */
.circle-story::before {
  background: conic-gradient(rgba(245, 125, 31, 0.95) 0deg,
      rgba(255, 32, 78, 0.8) 40deg,
      rgba(80, 30, 15, 0.0) 160deg,
      rgba(80, 30, 15, 0.0) 360deg);
  animation: story-ring-cw 3s linear infinite;
  z-index: 1;
}

@keyframes story-ring-cw {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Glitch/Shake on Hover */
@keyframes story-shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.story:hover .circle-story {
  animation: story-shake 0.5s infinite;
  filter: contrast(1.3) brightness(1.2);
}

.story:hover .circle-story::before {
  animation-duration: 0.5s;
  /* Speed up flow */
  filter: hue-rotate(90deg);
  /* Color shift */
}

.story:active .circle-story {
  transform: scale(0.95);
  filter: hue-rotate(180deg) brightness(1.5);
}

/* Glitchy Shadow Behind */
/* Ring 2: Counter-Clockwise */
.circle-story::after {
  background: conic-gradient(rgba(245, 125, 31, 0.95) 180deg,
      rgba(255, 32, 78, 0.8) 220deg,
      rgba(80, 30, 15, 0.0) 340deg,
      rgba(80, 30, 15, 0.0) 540deg);
  animation: story-ring-ccw 3s linear infinite;
  box-shadow: 0 0 14px rgba(245, 125, 31, 0.5);
  z-index: 1;
}

@keyframes story-ring-ccw {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* NAVIGATION ARROWS */
.stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50% - 15px);
  /* Center visually with circles */
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--rift-rust);
  color: var(--rift-rust);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stories-nav:hover,
.stories-nav:focus-visible {
  background: var(--rift-rust);
  color: var(--rift-black);
  box-shadow: 0 0 10px var(--rift-rust);
  outline: 2px solid var(--rift-cyan);
  outline-offset: 4px;
}

.nav-left {
  left: 0;
}

.nav-right {
  right: 0;
}

@media (max-width: 1100px) {
  .stories-nav {
    display: none;
  }

  .stories-wrapper {
    padding: 0 10px;
  }
}

.story-name {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--rift-text);
  text-align: center;
  text-transform: uppercase;
}

/* =========================================
   6. REELS & TIKTOK STYLE (Updated)
   ========================================= */
.reels-section {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Reel Container (Layout Only) */
.reel {
  position: relative;
  margin-bottom: 80px;
  background: transparent;
  width: 100%;
}

/* Video Wrapper (Visuals & Sizing) */
.reel-video-container {
  position: relative;
  border-radius: 4px;
  aspect-ratio: 9/16;
  /* Enforce vertical shape */
  width: 100%;
}

/* Desktop Sizing Constraints */
@media (min-width: 1101px) {
  .reel {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 80px auto;
  }

  .reel-video-container {
    width: auto;
    max-height: 80vh;
    /* Limit height on desktop */
    aspect-ratio: 9/16;
  }
}

/* City Image Shadow (Pseudo) on Wrapper */
.reel-video-container::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 100%;
  height: 100%;
  background-image: url('./imgfeed/img-palazzi-city-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* CRT Video Style within Wrapper */
.reel-video-container video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to fill */
  border: 4px solid var(--rift-concrete);
  filter: contrast(1.2) saturate(1.2) brightness(0.9);
  z-index: 1;
}

/* Scanlines overlay on Wrapper */
.reel-video-container::after {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  background-size: 100% 2px, 100% 100%;
  mix-blend-mode: overlay;
  opacity: 0.9;
  z-index: 5;
}

.fullscreen-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--rift-cyan);
  color: var(--rift-cyan);
  border-radius: 4px;
  /* Square/rect for FS */
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: none;
  /* Hidden on mobile by default or logic */
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:focus-visible {
  background: var(--rift-cyan);
  color: var(--rift-black);
  box-shadow: 0 0 10px var(--rift-cyan);
  outline: 2px solid var(--rift-cyan);
  outline-offset: 4px;
}

@media (min-width: 1101px) {
  .fullscreen-toggle {
    display: flex;
    /* Show only on desktop */
  }
}

/* Flicker Animation */
@keyframes feed-crt-flicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.96;
  }
}

.reel {
  animation: feed-crt-flicker 2s infinite;
}

.mute-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--rift-cyan);
  color: var(--rift-cyan);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mute Icon States */
.mute-toggle.volume-icon--muted::before {
  content: '🔇';
  /* Speaker with X */
}

.mute-toggle.volume-icon--active::before {
  content: '🔊';
  /* Speaker with Waves */
}

/* Caption Area */
/* =========================================
   CAROUSEL FEED STYLES (Dave)
   ========================================= */

/* NOTE: The outer container is now just .reel (handled by main styles) */
/* The inner wrapper is .reel-video-container (handled by main styles) */

/* Specifics for the internal carousel parts */

.carousel-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
  /* Fill the .reel-video-container (aspect ratio 9/16) */
  scrollbar-width: none;
  /* Firefox */
  position: relative;
  z-index: 2;
  /* Content above background but below scanlines if needed, scanlines are z:5. 
                 Wait, scanlines are ::after on container with z:5. 
                 Video is z:1. 
                 So Scroller should be z:1 or z:2. */
}

.carousel-scroller::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 100%;
  /* Full width */
  width: 100%;
  height: 100%;
  /* Fill container */
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No bg, let container bg show through or use black */
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the frame like video */

  /* MATCH VIDEO STYLE */
  border: 4px solid var(--rift-concrete);
  filter: contrast(1.1) brightness(0.9);
}

/* Navigation Arrows - Increase Z so they are clickable over scanlines (z:5) */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: var(--rift-text);
  border: none;
  /* border: 1px solid var(--rift-concrete); */
  padding: 10px;
  cursor: pointer;
  z-index: 20;
  /* Above scanlines */
  font-size: 1.5rem;
  font-family: var(--font-display);
  line-height: 1;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.reel-video-container:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--rift-cyan);
  box-shadow: 0 0 10px var(--rift-cyan);
}

.carousel-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.carousel-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* Hide on mobile (touch is better) */
@media (max-width: 1100px) {
  .carousel-nav-btn {
    display: none;
  }
}

/* Dots / Counter - Increase Z */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  /* Above caption */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  /* Above scanlines */
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: var(--rift-rust);
  box-shadow: 0 0 5px var(--rift-rust);
}

/* Caption Adjustments for Carousel to match .reel-caption */
.carousel-caption-wrapper {
  background: transparent;
  /* Inherit from .reel if handled there, or match .reel-caption logic */
  padding: 0;
  /* .reel-caption handles padding/margin usually */
  border-top: none;
  width: 100%;
}

/* Caption Area */
.reel-caption {
  margin-top: 20px;
  padding: 10px 0;
  color: var(--rift-text);
}


.reel-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.creator-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rift-beige);
  /* Warm tone */
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Glitch Title */
.glitch-title {
  position: relative;
  display: inline-block;
}

@keyframes feed-glitch-text {
  0% {
    transform: translate(0);
    text-shadow: 2px 0 var(--rift-cyan), -2px 0 var(--rift-magenta);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(2px, -2px);
  }

  60% {
    transform: translate(-1px, -2px);
  }

  80% {
    transform: translate(1px, 2px);
  }

  100% {
    transform: translate(0);
  }
}

@media (hover: hover) {
  .creator-name.glitch-title:hover {
    animation: feed-glitch-text 0.25s steps(2, end) infinite;
  }
}

@media (hover: none) {
  .creator-name.glitch-title {
    animation: feed-glitch-text 0.8s steps(2, end) infinite;
  }
}

.creator-role {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--rift-text);
  margin-bottom: 10px;
  line-height: 1.4;
  /* Thin Box Styling */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  display: inline-block;
  width: fit-content;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.creator-links {
  margin-top: 15px;
}

.creator-site {
  display: inline-block;
  padding: 8px 16px;
  background: var(--rift-black);
  border: 1px solid var(--rift-cyan);
  color: var(--rift-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.3s;
}

.creator-site:hover {
  background: var(--rift-cyan);
  color: var(--rift-black);
  box-shadow: 0 0 10px var(--rift-cyan);
}

/* Mobile Overrides for Stories */
@media (max-width: 1100px) and (orientation: portrait) {

  .stories-bar,
  .stories-track {
    gap: 4px;
  }

  .story {
    width: 100px;
  }

  .circle-story {
    width: 90px;
    height: 90px;
  }

  .circle-img {
    width: 80px;
    height: 80px;
  }

  .reel {
    width: 90%;
    margin: 0 auto 80px auto;
    /* Centers it but allows bg to peek on right mostly */
  }
}

/* =========================================
   SKIP HINT (Intro)
   ========================================= */
.feed-intro-skip-hint {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--rift-text);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  /* Let clicks pass through to overlay */
  z-index: 10;
  transition: opacity 0.3s;
}

.feed-intro-overlay:hover .feed-intro-skip-hint {
  opacity: 1;
}

/* Ensure overlay is clickable */
.feed-intro-overlay {
  cursor: pointer;
}

/* =========================================
   8. FLOATING CONTACT BUTTON
   ========================================= */
.rift-floating-contact {
  position: fixed;
  bottom: 30px;
  /* Adjusted to be above audio/mute toggles if any or consistent with layout */
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.95);
  border: 2px solid var(--rift-red);
  color: var(--rift-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 32, 78, 0.4), inset 0 0 10px rgba(255, 32, 78, 0.2);
  transition: all 0.3s ease;
  padding: 0;
  text-decoration: none;
}

.rift-floating-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 32, 78, 0.8);
  background: var(--rift-red);
  color: var(--rift-black);
}

.rift-floating-contact--mobile {
  display: none;
}

.rift-floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.rift-floating-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.rift-floating-icon--mobile {
  display: none;
}

@media (max-width: 1100px) and (orientation: portrait) {
  .rift-floating-contact {
    bottom: 30px !important;
    width: 50px !important;
    height: 50px !important;
    right: 30px !important;
  }

  .rift-floating-contact--desktop {
    display: none !important;
  }

  .rift-floating-contact--mobile {
    display: flex !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease;
  }

  /* Show only when intro overlay is hidden */
  .feed-intro-overlay.is-hidden~.rift-floating-contact--mobile {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .rift-floating-icon--desktop {
    display: none;
  }

  .rift-floating-icon--mobile {
    display: flex;
  }
}

/* =========================================
   9. VERTICAL VIDEO FIX (Desktop)
   ========================================= */
@media (min-width: 1101px) {
  .reel-video-container video.is-vertical {
    object-fit: contain !important;
    background-color: #000;
    /* Letterbox look */
  }
}

/* =========================================
   10. DESKTOP PLAY BUTTON OVERLAY
   ========================================= */
@media (min-width: 1101px) {
  .feed-video-play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    /* Light veil */
    transition: opacity 0.3s ease;
  }

  .feed-video-play-button-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--rift-cyan);
    background: rgba(0, 0, 0, 0.6);
    color: var(--rift-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--rift-cyan);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Icon content (Play Triangle) */
  .feed-video-play-button-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid currentColor;
    margin-left: 6px;
    /* Optical center */
  }

  .feed-video-play-button:hover .feed-video-play-button-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--rift-cyan), inset 0 0 10px var(--rift-cyan);
    background: rgba(0, 245, 255, 0.1);
  }

  .feed-video-play-button.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* Mobile always hidden (or handled by JS not injecting it) */
@media (max-width: 1100px) and (orientation: portrait) {
  .feed-video-play-button {
    display: none !important;
  }
}

/* =========================================
   FOOTER (Cyberpunk Kitsch Style - Adapted for Feed)
   ========================================= */
.rift-footer {
  position: relative;
  background: #100a14;
  /* Dark purplish BG from image */
  padding: 60px 20px;
  border-top: 2px solid var(--rift-cyan);
  margin-top: 100px;
  font-family: var(--font-ui);
  overflow: hidden;
  z-index: 100;
}

/* Background Glow */
.rift-footer::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 32, 78, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  /* Red/Pink glow softened */
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Top Bar Decorative */
.footer-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  font-family: var(--font-display);
  color: var(--rift-cyan);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.bar-segment {
  height: 4px;
  background: var(--rift-cyan);
}

.bar-cyan {
  width: 50px;
  margin-right: 10px;
}

.bar-gap {
  width: 10px;
  background: transparent;
}

.bar-title {
  background: transparent;
  white-space: nowrap;
  margin-left: auto;
  /* Push to right */
}

/* Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
}

/* Col 1: Links (Yellow Yellow Theme) */
.footer-col-links {
  border-left: 2px solid #FFE600;
  /* Yellow */
  padding-left: 20px;
  position: relative;
}

.footer-header-yellow {
  font-family: var(--font-display);
  color: #FFE600;
  /* Yellow */
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: rgba(255, 230, 0, 0.1);
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #FFE600;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: all 0.2s;
  text-transform: uppercase;
}

.footer-nav-list a:hover {
  color: #FFE600;
  padding-left: 5px;
  text-shadow: 0 0 5px #FFE600;
}

/* Active Link (Yellow Box) */
.footer-link-active {
  background: #FFE600;
  color: #000 !important;
  /* Force black text on yellow */
  padding: 2px 10px;
  display: inline-block;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

/* Decorative Curve (The distinctive rounded shape) */
.footer-deco-curve {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 40px;
  background: linear-gradient(to right, #FFE600 0%, transparent 100%);
  opacity: 0.2;
  clip-path: polygon(0 0, 20px 0, 20px 20px, 100% 20px, 100% 100%, 0 100%);
}

/* Col 2: Info (Cyan Box) */
.footer-col-info {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
  padding: 20px;
  transform: translateX(-25%);
}

/* Hide Floating Contact when Footer is visible */
.rift-floating-contact.is-hidden-by-footer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.footer-header-cyan {
  font-family: var(--font-display);
  color: var(--rift-cyan);
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--rift-cyan);
  padding-bottom: 5px;
  display: inline-block;
}

.footer-col-info p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-legal {
  font-size: 0.75rem;
  color: #777;
  margin-top: 20px;
}

.footer-legal-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (min-width: 1101px) {
  .footer-legal-links {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
}

.footer-legal-links a {
  color: #555;
  font-size: 0.7rem;
  text-decoration: none;
  font-family: sans-serif;
  /* Fallback */
  transition: color 0.3s;
}

.footer-legal-links a:hover {
  color: var(--rift-cyan);
}

/* Col 3: Social Buttons (Right Side Detail Look) */
.footer-col-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-col-social .footer-header-cyan {
  align-self: flex-end;
  /* Align header right */
  text-align: right;
}

.footer-social-btn {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--rift-cyan);
  color: var(--rift-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, transparent 50%, rgba(0, 245, 255, 0.1) 100%);
  transition: all 0.3s;
  /* Cut corner right */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.footer-social-btn:hover {
  background: var(--rift-cyan);
  color: #000;
  padding-right: 20px;
}

/* =========================================
   FOOTER MOBILE OVERRIDES
   ========================================= */
@media (max-width: 1100px) and (orientation: portrait) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col-info {
    transform: translateX(10%);
    /* Shift right on mobile */
    width: 90%;
    /* Prevent overflow */
    margin: 0 auto;
    /* Centered relative to width */
  }
}

/* =========================================
   FOOTER EASTER EGG (Replicated from About)
   ========================================= */
.footer-easter-trigger {
  background: transparent;
  border: 1px solid rgba(113, 28, 145, 0.5);
  color: var(--rift-purple);
  padding: 8px 12px;
  margin-top: 15px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  display: block;
  width: fit-content;
}

.footer-easter-trigger:hover {
  border-color: var(--rift-purple);
  box-shadow: 0 0 15px rgba(113, 28, 145, 0.6);
  transform: scale(1.1);
}

.footer-easter-icon {
  display: inline-block;
  animation: footerEasterPulse 2s ease-in-out infinite;
}

@keyframes footerEasterPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Popup */
.footer-easter-popup {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: footerEasterFadeIn 0.3s ease;
}

.footer-easter-popup.is-open {
  display: flex;
}

.footer-easter-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--rift-red);
  /* Using rift-red for visibility/contrast */
  font-size: 3rem;
  cursor: pointer;
  z-index: 100000;
  transition: transform 0.3s ease;
  line-height: 1;
}

.footer-easter-close:hover {
  transform: scale(1.2);
  color: #fff;
}

@keyframes footerEasterFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.footer-easter-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading Phase */
.footer-easter-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.footer-easter-loading.is-visible {
  opacity: 1;
}

.footer-easter-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;

  /* Cyberpunk Container */
  position: relative;
  display: inline-block;
  padding: 20px 40px;
  border: 2px solid var(--rift-cyan);
  background: rgba(0, 245, 255, 0.1);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px),
      calc(100% - 20px) 100%, 0 100%, 0 20px);

  text-shadow:
    0 0 10px rgba(0, 245, 255, 0.8),
    2px 2px 0 var(--rift-magenta);

  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(5px);

  animation: footerEasterGlitch 1s ease-in-out infinite alternate;
}

/* Decoration lines for the title box */
.footer-easter-title::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--rift-magenta);
  border-left: 2px solid var(--rift-magenta);
  z-index: 2;
}

.footer-easter-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--rift-magenta);
  border-right: 2px solid var(--rift-magenta);
  z-index: 2;
}

@keyframes footerEasterGlitch {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-2px);
  }

  40% {
    transform: translateX(2px);
  }

  60% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }
}

.footer-easter-dots {
  display: flex;
  gap: 15px;
}

.footer-dot {
  width: 20px;
  height: 20px;
  background: var(--rift-purple);
  border-radius: 50%;
  animation: footerDotBounce 1.2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(113, 28, 145, 0.8);
}

.footer-dot:nth-child(1) {
  animation-delay: 0s;
}

.footer-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes footerDotBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Image Phase */
.footer-easter-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.footer-easter-image.is-visible {
  opacity: 1;
}

.footer-easter-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: footerEasterZoom 0.5s ease-out;
}

@keyframes footerEasterZoom {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Adjustments */
@media (max-width: 1100px) and (orientation: portrait) {
  .footer-easter-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .footer-dot {
    width: 15px;
    height: 15px;
  }
}

/* Video Glitch/Distortion Effects */
.footer-easter-img {
  filter: contrast(1.2) saturate(1.3);
  position: relative;
}

/* Add scanlines overlay on video */
.footer-easter-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px);
  pointer-events: none;
  z-index: 2;
  animation: scanlineMove 8s linear infinite;
}

/* Add chromatic aberration effect */
.footer-easter-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 60%, rgba(255, 0, 0, 0.05) 100%),
    radial-gradient(circle, transparent 60%, rgba(0, 255, 0, 0.05) 100%),
    radial-gradient(circle, transparent 60%, rgba(0, 0, 255, 0.05) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  animation: chromaticShift 0.3s infinite;
}

@keyframes scanlineMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(10px);
  }
}

@keyframes chromaticShift {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  75% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Random glitch effect on video */
@keyframes videoGlitch {

  0%,
  100% {
    transform: translate(0) scale(1);
    filter: contrast(1.2) saturate(1.3);
  }

  10% {
    transform: translate(-2px, 2px) scale(1.01);
    filter: contrast(1.4) saturate(1.5) hue-rotate(5deg);
  }

  20% {
    transform: translate(2px, -2px) scale(0.99);
    filter: contrast(1.1) saturate(1.2) hue-rotate(-5deg);
  }

  30% {
    transform: translate(-1px, -1px) scale(1);
    filter: contrast(1.3) saturate(1.4);
  }
}

.footer-easter-img.is-glitching {
  animation: videoGlitch 0.2s infinite;
}

/* =========================================
   MODAL STYLES (Instagram Stories Style)
   ========================================= */
.reels-modal-container {
  position: relative;
  z-index: 20000;
}

.rift-story-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20001;
}

.rift-story-modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  /* Dark dim */
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  /* Mobile width mostly */
  height: 80vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
}

/* Embed container override */
.instagram-media {
  max-height: 100% !important;
}

/* Mobile Adjustments */
@media (max-width: 1100px) and (orientation: portrait) {
  .modal-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
  }
}

/* =========================================
   MOBILE LANDSCAPE RESPONSIVENESS
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .rift-feed .feed-header {
    padding: 5px 20px;
  }

  .rift-feed .feed-logo-text {
    transform: translateX(-10px);
    /* Move slightly left */
  }

  .rift-feed .feed-logo-text img {
    height: 25px;
    /* Reduced from 30px to match others */
  }

  .rift-feed .feed-desktop-nav {
    gap: 15px;
  }

  .rift-feed .nav-link {
    font-size: 11px;
    padding: 4px 10px;
  }

  .rift-feed .nav-link.highlight {
    padding: 4px 10px;
  }

  .feed-menu-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    max-width: 90vw;
  }

  .feed-menu-logo img {
    height: 60px;
  }

  .feed-menu-item {
    width: calc(50% - 10px);
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Stories/Reel Names Adjustment */
  .story-name {
    font-size: 10px;
    margin-top: 4px;
  }

  .stories-wrapper {
    margin-top: 60px;
    /* Reduced to avoid large gap */
  }

  /* Reel caption reduction */
  .creator-name {
    font-size: 14px !important;
  }

  .creator-role {
    font-size: 10px !important;
  }

  .reels-section {
    padding-bottom: 50px;
  }

  /* Floating UI */
  .rift-floating-contact {
    bottom: 40px !important;
    right: 20px !important;
    width: 35px !important;
    height: 35px !important;
  }


  .footer-col-info {
    transform: translateX(-1%);
  }
}

/* =========================================
   FEED – CLEAN LANDSCAPE DESKTOP MODE
   ========================================= */

@media (max-width: 1100px) and (orientation: landscape) {

  body.rift-feed {
    transform: none;
    position: static;
    width: 100%;
    height: auto;
    overflow-y: auto;
  }

  /* Header compatto */
  .feed-header {
    padding: 6px 20px;
  }

  .feed-logo-text img {
    height: 28px;
  }

  .feed-desktop-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Stories più compatte */
  .stories-wrapper {
    margin-top: 70px;
  }

  .circle-story {
    width: 90px;
    height: 90px;
  }

  .circle-img {
    width: 80px;
    height: 80px;
  }

  .story-name {
    font-size: 10px;
  }

  /* Reel dimensioni naturali */
  .reel {
    width: 80%;
    max-width: 450px;
    margin: 0 auto 60px auto;
  }

  .creator-name {
    font-size: 1rem;
  }

  .creator-role {
    font-size: 0.75rem;
  }

  /* Floating button più piccolo */
  .rift-floating-contact {
    width: 40px;
    height: 40px;
  }

  /* Footer compatto */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rift-footer {
    padding: 40px 20px;
  }
  
  /* -------------------
   REELS (60% SCALE)
------------------- */

.reels-section {
  max-width: 260px;          /* prima 350 */
  padding-bottom: 30px;
}

.reel {
  width: 60%;                /* prima 70% */
  max-width: 240px;          /* prima 320 */
  margin: 0 auto 30px auto;
}

.reel-video-container {
  aspect-ratio: 9 / 16;
}

/* Video border più sottile */
.reel-video-container video,
.carousel-img {
  border-width: 2px;
}

/* Creator */
.creator-name {
  font-size: 0.75rem;
}

.creator-role {
  font-size: 0.6rem;
  padding: 4px 6px;
}

.creator-site {
  font-size: 0.6rem;
  padding: 5px 8px;
}

/* Indicators più piccoli */
.carousel-dot {
  width: 6px;
  height: 6px;
}

/* Mute / fullscreen button più piccoli */
.mute-toggle,
.fullscreen-toggle {
  width: 30px;
  height: 30px;
  font-size: 16px;
}
