/* =========================================================
   FootballR Reels – COMPLETE & STABLE CSS
   ========================================================= */

/* ================= HARD RESET ================= */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  overflow: hidden !important;
}

body.fr-reels-page * {
  box-sizing: border-box;
}

/* ================= THEME / ELEMENTOR RESET ================= */
body.fr-reels-page #page,
body.fr-reels-page .site,
body.fr-reels-page .site-wrap,
body.fr-reels-page main,
body.fr-reels-page .elementor,
body.fr-reels-page .elementor-section,
body.fr-reels-page .elementor-container,
body.fr-reels-page .elementor-column,
body.fr-reels-page .entry-content,
body.fr-reels-page .rb-small-container,
body.fr-reels-page .grid-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
}

/* ================= ROOT ================= */
.fr-reels-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
}

.fr-reels,
.fr-reels__viewport {
  width: 100%;
  height: 100vh;
  background: #000;
}

.fr-reels__viewport {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ================= TOP TABS ================= */
.frx-tabs {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  display: flex;
  gap: 6px;

  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px;
}

.frx-tab,
.frx-tab:visited,
.frx-tab:hover,
.frx-tab:active {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.frx-tab.is-active {
  background: rgba(255,255,255,.18);
}

/* ================= REEL ================= */
.frx-reel {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}

/* ================= IMAGE (KEN BURNS) ================= */
.frx-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;

  animation: frx-kenburns 13s ease-in-out infinite alternate;
}

@keyframes frx-kenburns {
  0% {
    transform: scale(1) translate3d(0,0,0);
  }
  100% {
    transform: scale(1.18) translate3d(-4%, -4%, 0);
  }
}

/* ================= BACKGROUND MOTION OVERLAY ================= */
.frx-bg-motion {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.14), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.10), transparent 45%);

  opacity: 0.45;
  mix-blend-mode: overlay;
  animation: frx-bg-rotate 18s linear infinite;
}

@keyframes frx-bg-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ================= GRADIENT ================= */
.frx-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.60) 32%,
    rgba(0,0,0,.30) 58%,
    rgba(0,0,0,0) 78%
  );
}

/* ================= SIDEBAR BUTTONS ================= */
.frx-right {
  position: absolute;
  right: 12px;
  bottom: 140px;
  z-index: 5;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ================= BUTTONS ================= */
.frx-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;

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

  gap: 6px; /* 👈 MEHR ABSTAND ZWISCHEN EMOJI & ZAHL */

  cursor: pointer;
  user-select: none;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Emoji */
.frx-btn .frx-icon {
  font-size: 22px;
  line-height: 1;
}

/* Counter */
.frx-btn .frx-count {
  font-size: 10px;
  line-height: 1;
  opacity: .95;
}

/* Active State */
.frx-btn.is-active {
  border-color: rgba(124,255,0,.9);
}

/* ================= BUTTON ANIMATIONS ================= */
.frx-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0);
  pointer-events: none;
  opacity: 0;
}

/* Bounce + Ring (Like / Dislike) */
.frx-btn.is-bouncing::after {
  border-color: rgba(124,255,0,.95);
  animation: frx-ring .45s ease-out;
}

@keyframes frx-ring {
  0%   { transform: scale(.85); opacity: 0; }
  40%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Pulse (Bookmark) */
.frx-btn.is-pulsing::after {
  border-color: rgba(255,255,255,.9);
  animation: frx-pulse .35s ease-out;
}

@keyframes frx-pulse {
  0%   { transform: scale(.9); opacity: 0; }
  45%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ================= META ================= */
.frx-meta {
  position: absolute;
  left: 14px;
  right: 92px;
  bottom: 64px;
  z-index: 4;
  color: #fff;
}

.frx-author {
  display: inline-block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #7CFF00;
  text-decoration: none;
}

.frx-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frx-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= TOAST ================= */
.frx-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.frx-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= POINTER EVENTS SAFETY ================= */
.frx-bg-image,
.frx-bg-motion,
.frx-gradient {
  pointer-events: none;
}

.frx-btn,
.frx-right,
.frx-meta,
.frx-tabs {
  pointer-events: auto;
}

/* =========================================================
   REELS TABS – FOXIZ RESET
   ========================================================= */

.fr-reels-page .frx-tabs .frx-tab {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.fr-reels-page .frx-tabs .frx-tab.is-active {
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
}
.fr-reels-page .frx-tabs .frx-tab:hover {
  background: rgba(255,255,255,0.08) !important;
}
/* =========================================================
   REELS PRELOADER
   ========================================================= */

.frx-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.frx-preloader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Spinner */
.frx-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  animation: frx-spin 0.8s linear infinite;
}

@keyframes frx-spin {
  to { transform: rotate(360deg); }
}
/* ================= IMAGE ADS ================= */

.frx-reel.frx-injected {
  position: relative;
}

.frx-ad {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #fff;
}

.frx-ad-label {
  position: absolute;
  bottom: 60px;
  left: 16px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  z-index: 3;
}
/* ================= DESKTOP / TABLET FRAME ================= */

@media (min-width: 768px) {
  body.fr-reels-page {
    background: #000;
  }
}
@media (min-width: 768px) {

  .fr-reels-shell {
    display: flex;
    justify-content: center;
    background: #000;
  }

  .fr-reels {
    width: 100%;
    max-width: 400px;   /* 📱 Handy-Breite */
    height: 100vh;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
  }

  .fr-reels__viewport {
    width: 100%;
    height: 100%;
  }
}
.frx-reel {
  width: 100%;
  height: 100vh;
}
/* ================= Twitter ================= */
.frx-twitter {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
}

.frx-twitter-wrap {
  position: absolute;
  inset: 0;
}

.frx-twitter-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.frx-social-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.frx-social-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.frx-play {
  font-size: 64px;
  margin-bottom: 12px;
}

.frx-platform {
  font-size: 14px;
  opacity: 0.85;
}

/* ================= SKELETON LOADER (MULTI-LINE META) ================= */

.frx-skeletons {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  justify-content: center;
  pointer-events: none;
}

.frx-skeleton {
  width: 100%;
  max-width: 400px;
  height: 100vh;

  position: relative;
  background: #0b0b0b;
  overflow: hidden;
}

.frx-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    #111 40%,
    #1a1a1a 50%,
    #111 60%
  );
  background-size: 200% 100%;
  animation: frx-shimmer 1.4s infinite linear;
}

/* Meta Position = echte Reel-Position */
.frx-skeleton-meta {
  position: absolute;
  left: 16px;
  bottom: 60px;

  width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Base line */
.frx-skeleton-meta span {
  display: block;
  background: #222;
  border-radius: 6px;
}

/* Author */
.frx-skeleton-meta .sk-author {
  width: 25%;
  height: 10px;
  margin-bottom: 6px;
}

/* Title – 2 lines */
.frx-skeleton-meta .sk-title {
  width: 80%;
  height: 22px;
}

/* Excerpt – 3 lines */
.frx-skeleton-meta .sk-excerpt {
  width: 75%;
  height: 12px;
}

/* Animation */
@keyframes frx-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ================= MORE MENU ================= */

.frx-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}

.frx-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  max-width: 80vw;

  background: #0b0b0b;
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 9999;

  display: flex;
}

.frx-menu-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frx-menu-inner a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.frx-menu-inner a:hover {
  text-decoration: underline;
}

.frx-menu-sep {
  height: 1px;
  background: #222;
  margin: 12px 0;
}

.frx-menu-inner small {
  color: #888;
  font-size: 13px;
}

/* OPEN STATE */
.frx-menu.is-open {
  transform: translateX(0);
}

.frx-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
/* ================= COMMENTS OVERLAY ================= */

.frx-comments-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  display: none;
}

.frx-comments-overlay.is-open {
  display: block;
}

.frx-comments-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75vh;
  max-width: 400px;
  margin: 0 auto;
  background: #0b0b0b;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}

.frx-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid #222;
}

.frx-comments-header button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 18px;
}

.frx-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.frx-comment {
  margin-bottom: 16px;
  font-size: 14px;
  color: #fff;
}

.frx-comment strong {
  display: block;
  margin-bottom: 4px;
}
