  /* =========================
    VARIABLES & FONTS
  ========================= */
  @font-face {
    font-family: "EthnocentricLightItalic";
    src: url("Ethnocentric-Lt-Italic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
  }

  :root {
    /* Dark Mode Palette */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #FFB6C1;
    --accent-hover: #FF9FB2;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
  }

  .anos-font {
    font-family: "EthnocentricLightItalic", var(--font-heading);
    letter-spacing: 1px;
  }

  /* =========================
    RESET
  ========================= */
  html {
    scroll-behavior: smooth;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
  }

  @keyframes pageFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  body {
    background: var(--bg-dark);
    color: var(--text-primary);
    opacity: 0;
    animation: pageFade 0.6s ease forwards;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* =========================
    HERO
  ========================= */

  .hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 4.5rem;
    overflow: hidden;
    min-height: 420px;
  }

  /* Full-bleed blurred background */
  .hero-bg-blur {
    position: absolute;
    inset: -40px;
    background-image: url("images/zibaihero.png");
    background-size: cover;
    background-position: center top;
    filter: blur(32px) brightness(0.7) saturate(1.4);
    transform: scale(1.05);
    z-index: 0;
  }

  /* Central foreground card */
  .hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    height: 360px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.09);
    animation: heroCardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes heroCardReveal {
    from {
      opacity: 0;
      transform: scale(0.97) translateY(16px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  /* Character image inside the card */
  .hero-card-img {
    position: absolute;
    inset: 0;
    background-image: url("images/zibaihero.png");
    background-size: cover;
    background-position: center top;
    transition: transform 8s ease;
  }

  .hero-card:hover .hero-card-img {
    transform: scale(1.04);
  }

  /* Dark gradient overlay for text legibility */
  .hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
  }

  /* Text content */
  .hero-card-content {
    position: relative;
    z-index: 2;
    padding: 50px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .hero-card-content h1 {
    text-align: left;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  .hero-card-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  .title-top {
    display: block;
    font-family: "EthnocentricLightItalic", var(--font-heading);
    font-size: 2rem;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  }

  .title-bottom {
    display: block;
    font-family: "EthnocentricLightItalic", var(--font-heading);
    font-size: 2.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
    color: #ffffff;
    text-shadow:
      0 2px 16px rgba(0, 0, 0, 0.8),
      0 0 30px rgba(255, 255, 255, 0.12);
  }

  @media (max-width: 768px) {
    .hero-card {
      height: 240px;
      border-radius: 20px;
    }

    .hero-card-content {
      padding: 32px 28px;
    }

    .title-top {
      font-size: 1.2rem;
    }

    .title-bottom {
      font-size: 1.7rem;
      white-space: normal;
    }

    .hero-card-content p {
      font-size: 0.85rem;
    }
  }

  /* =========================
    NAVBAR
  ========================= */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease;
  }

  .logo {
    font-family: "EthnocentricLightItalic", var(--font-heading);
    color: var(--text-primary);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
  }

  .logo:hover {
    opacity: 0.8;
  }

  .navbar nav {
    display: flex;
    gap: 24px;
  }

  .navbar nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .navbar nav a:hover {
    color: var(--text-primary);
  }

  .section-header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 100px 0 60px;
    text-align: center;
    animation: fadeSlideIn 0.8s ease;
  }

  .section-title-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    font-weight: 500;
    color: var(--text-primary);
  }

  /* Line below the title */
  .section-line-bottom {
    height: 2px;
    width: 0;
    background: var(--text-secondary);
    animation: lineGrow 1s ease forwards 0.3s;
  }

  /* Animations */
  @keyframes lineGrow {
    from {
      width: 0;
    }

    to {
      width: min(20vw, 150px);
    }
  }

  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* =========================
    SEARCH BAR
  ========================= */
  .search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
  }

  .search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    outline: none;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .search-bar input::placeholder {
    color: var(--text-muted);
  }

  .search-bar input:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  #suggestions {
    position: absolute;
    top: 60px;
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
    border: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
  }

  #suggestions li {
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-secondary);
  }

  #suggestions li:hover {
    background: var(--bg-darker);
    color: var(--text-primary);
  }




  .btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
  }

  .btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
  }

  .btn-primary:active {
    transform: translateY(0);
  }


  /* =========================
    FEATURED CHARACTERS SECTION
  ========================= */
  .featured-section {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 0 2rem;
    animation: slideDown 0.8s ease 0.2s both;
  }

  .featured-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
  }

  .featured-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--text-secondary);
    margin-top: 12px;
  }

  /* === FEATURED LAYOUT WRAPPER === */
  .featured-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1200px;
    margin: auto;
  }

  /* === LEFT BIG CARD === */
  .featured-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
  }

  .featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .featured-main:hover img {
    transform: scale(1.05);
  }

  /* === RIGHT COLUMN === */
  .featured-sidebar {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
  }

  /* === RIGHT SMALL CARDS === */
  .featured-sidebar-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .featured-sidebar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .featured-sidebar-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-secondary);
  }

  .featured-sidebar-card:hover img {
    transform: scale(1.08);
  }

  /* === FEATURED BADGE === */
  .view-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
  }

  @media (max-width: 900px) {
    .featured-layout {
      grid-template-columns: 1fr;
      /* stack */
    }

    .featured-main {
      min-height: 320px;
    }

    .featured-sidebar {
      grid-template-rows: repeat(3, 140px);
    }
  }

  .element-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--border-light);
  }

  .archon-icon {
    font-size: 18px;
  }

  /* Force filter bar to stay in ONE line */
  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100%;
    margin-bottom: 3rem;
    padding: 1rem;
    background: transparent;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-bar {
    scrollbar-width: none;
  }

  .filter-bar button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filter-bar button:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
  }

  .filter-bar button.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
  }

  .filter-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .filter-bar button:hover .filter-icon,
  .filter-bar button.active .filter-icon {
    opacity: 1;
  }

  /* FEATURED SIDEBAR INFO */
  .featured-sidebar-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    color: var(--text-primary);
    z-index: 2;
  }

  .featured-sidebar-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .featured-sidebar-element {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
    font-weight: 500;
  }

  .featured-sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
  }

  .featured-sidebar-card:hover::before {
    opacity: 1;
  }

  /* =========================
    GALLERY
  ========================= */
  .gallery-section {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 2rem;
  }

  .gallery-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    animation: slideDown 0.7s ease;
    color: var(--text-primary);
    font-weight: 500;
  }

  /* =========================
    GALLERY BENTO GRID
  ========================= */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 240px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    grid-auto-flow: dense;
  }

  /* =========================
    BENTO CARD SIZES
  ========================= */
  .card-tall {
    grid-row: span 2;
  }

  .card-wide {
    grid-column: span 2;
  }

  .card-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  @media (max-width: 768px) {

    /* On mobile, collapse bento to standard sizes */
    .card-wide,
    .card-large {
      grid-column: span 1;
    }
  }

  /* =========================
    IMAGE CARD (GLASSMORPHISM)
  ========================= */
  .img-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes cardReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .img-card:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .img-card:hover img {
    transform: scale(1.1);
  }

  /* Gradient Overlay for Text Legibility */
  .img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .img-card:hover::after {
    opacity: 0.9;
  }

  /* =========================
    BADGES & TAGS
  ========================= */
  .img-card-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .img-card-element {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .tag {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    background: transparent;
    color: #ffffff;
    padding: 0;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 2;
  }

  .img-card:hover .tag {
    opacity: 1;
    transform: translateY(0);
  }

  /* =========================
    ELEMENT NEON GLOWS (2026 UI)
  ========================= */
  .glow-pyro:hover {
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 10px 40px rgba(255, 77, 77, 0.3), 0 0 15px rgba(255, 77, 77, 0.2) inset;
  }

  .glow-hydro:hover {
    border-color: rgba(77, 166, 255, 0.5);
    box-shadow: 0 10px 40px rgba(77, 166, 255, 0.3), 0 0 15px rgba(77, 166, 255, 0.2) inset;
  }

  .glow-anemo:hover {
    border-color: rgba(117, 255, 179, 0.5);
    box-shadow: 0 10px 40px rgba(117, 255, 179, 0.3), 0 0 15px rgba(117, 255, 179, 0.2) inset;
  }

  .glow-electro:hover {
    border-color: rgba(204, 102, 255, 0.5);
    box-shadow: 0 10px 40px rgba(204, 102, 255, 0.3), 0 0 15px rgba(204, 102, 255, 0.2) inset;
  }

  .glow-dendro:hover {
    border-color: rgba(153, 255, 51, 0.5);
    box-shadow: 0 10px 40px rgba(153, 255, 51, 0.3), 0 0 15px rgba(153, 255, 51, 0.2) inset;
  }

  .glow-cryo:hover {
    border-color: rgba(153, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(153, 255, 255, 0.3), 0 0 15px rgba(153, 255, 255, 0.2) inset;
  }

  .glow-geo:hover {
    border-color: rgba(255, 204, 51, 0.5);
    box-shadow: 0 10px 40px rgba(255, 204, 51, 0.3), 0 0 15px rgba(255, 204, 51, 0.2) inset;
  }

  .glow-story:hover,
  .glow-event:hover,
  .glow-archon:hover,
  .glow-fatui:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.2) inset;
  }

  /* =========================
    FOOTER (ABOUT + LINKS)
  ========================= */
  /* Sleek glowing divider above footer */
  .footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-top: 5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  }

  .footer {
    background: #050505;
    padding: 4rem 2rem;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
  }

  .footer-brand {
    font-family: "EthnocentricLightItalic", var(--font-heading);
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .footer-about {
    max-width: 520px;
  }

  .footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
  }

  .footer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.8rem;
  }

  /* LIVE BADGES (Neon Glowing) */
  .live-badges {
    margin-top: 1.2rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .live-badge {
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: livePulse 2s infinite;
    transition: all 0.3s ease;
  }

  .live-badge.youtube {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  }

  .live-badge.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }

  .live-badge.twitch {
    border-color: rgba(145, 70, 255, 0.5);
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.2);
  }

  .live-badge.twitch:hover {
    background: rgba(145, 70, 255, 0.2);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.5);
  }

  @keyframes livePulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.03);
    }

    100% {
      transform: scale(1);
    }
  }

  /* RIGHT: SOCIAL LINKS (Glassmorphism) */
  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .social-links a {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  /* App-Specific Hover Colors */
  .social-ig:hover {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.2), rgba(230, 104, 60, 0.2), rgba(220, 39, 67, 0.2), rgba(204, 35, 102, 0.2), rgba(188, 24, 136, 0.2));
    border-color: #E1306C;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
    color: #fff;
  }

  .social-yt:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #FF0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    color: #FF0000;
  }

  .social-tw:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: #9146FF;
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.4);
    color: #9146FF;
  }

  .social-dc:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
    color: #5865F2;
  }

  .social-x:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: #ffffff;
  }

  .footer-copy {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
  }

  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }

    .footer-about {
      max-width: 100%;
    }

    .social-links {
      justify-content: center;
    }
  }

  /* =========================
    MODAL
  ========================= */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 2rem;
  }

  .modal.active {
    display: flex;
    animation: pageFade 0.3s ease;
  }

  .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-img {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: slideDown 0.4s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  }

  .modal-close {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-close:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: scale(1.05);
  }

  /* Modal Navigation Buttons */
  .modal-nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
    padding: 0 2rem;
  }

  .modal-btn {
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
  }

  .modal-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: scale(1.05);
  }

  .modal-btn:active {
    transform: scale(0.95);
  }

  .modal-info {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 99998;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slideDown 0.4s ease 0.2s both;
    border: 1px solid var(--border-light);
  }

  /* =========================
    UPLOAD MODAL STYLES
  ========================= */
  .upload-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    display: block;
  }

  .upload-container h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
  }

  #uploadForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .form-group input[type="text"],
  .form-group input[type="file"],
  .form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
  }

  .form-group input[type="text"]:focus,
  .form-group select:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  }

  .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a1a1aa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
  }

  .upload-status {
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
  }

  /* =========================
    FOX CARD
  ========================= */
  .fox-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 180px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(255, 182, 193, 0.2);
    overflow: hidden;
    z-index: 9999;
    animation: foxFloat 4s ease-in-out infinite;
    border: 3px solid #FFB6C1;
  }

  .fox-card {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
  }

  @media (max-width: 600px) {
    .fox-card {
      display: none;
    }
  }

  @keyframes foxFloat {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-12px);
    }
  }

  .fox-card video {
    width: 100%;
    display: block;
    pointer-events: none;
    border-radius: 20px;
  }

  .fox-actions {
    padding: 12px;
    text-align: center;
  }

  .fox-subscribe {
    background: linear-gradient(135deg, #FF9FB2, #FF8FA3);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
  }

  .fox-subscribe:hover {
    background: linear-gradient(135deg, #FF8FA3, #FF7A94);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 159, 178, 0.45);
  }

  /* =========================
    MOBILE UX IMPROVEMENTS
  ========================= */
  @media (max-width: 768px) {
    .featured-layout {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .featured-main {
      height: 350px;
      min-height: 350px;
    }

    .featured-sidebar {
      gap: 12px;
    }

    .featured-sidebar-card {
      height: 100px;
    }

    .featured-title {
      font-size: 1.6rem;
    }

    .navbar {
      padding: 14px 20px;
      gap: 10px;
    }

    .navbar nav {
      gap: 12px;
    }

    .navbar nav a {
      margin-left: 0;
      padding: 6px 0;
      font-size: 0.85rem;
    }

    .logo {
      font-size: 1rem;
      padding: 0;
    }

    .hero {
      padding: 5rem 1.5rem 3rem;
    }

    .hero p {
      font-size: 0.95rem;
    }

    .title-top {
      font-size: 1.2rem;
    }

    .title-bottom {
      font-size: 2.2rem;
    }

    .section-title {
      font-size: 1.8rem;
      margin: 3rem 0 2rem;
    }

    .filter-bar {
      gap: 8px;
      padding: 1rem;
      margin-bottom: 2rem;
    }

    .filter-bar button {
      padding: 8px 14px;
      font-size: 0.85rem;
    }

    .gallery {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .featured {
      grid-column: span 2;
      height: 280px;
    }

    .img-card {
      height: 200px;
      border-radius: 8px;
    }

    .tag {
      font-size: 0.75rem;
      padding: 4px 8px;
    }

    .search-bar {
      padding: 0 1rem;
      margin-bottom: 2rem;
    }

    .search-bar input {
      max-width: 100%;
      padding: 12px 20px;
    }

    #suggestions {
      max-width: 100%;
      width: calc(100% - 2rem);
      left: 1rem;
    }

    .fox-card {
      width: 140px;
      bottom: 16px;
      right: 16px;
      animation: none;
    }

    .fox-subscribe {
      font-size: 0.75rem;
      padding: 8px 12px;
    }

    .modal-close {
      width: 36px;
      height: 36px;
      font-size: 1.2rem;
      top: 16px;
      right: 16px;
    }

    .modal-btn {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }

    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
    }

    .footer-about {
      max-width: 100%;
    }

    .social-links {
      justify-content: center;
      gap: 8px;
    }

    .footer-title {
      font-size: 1.2rem;
    }

    .live-badges {
      justify-content: center;
    }
  }

  .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 2rem;
    animation: slideDown 0.6s ease;
  }

  /* FORCE this specific filter bar to stay in one line */
  .gallery-section .filter-bar {
    display: flex;
    flex-wrap: nowrap !important;
    /* override any previous rule */
    justify-content: center;
    gap: 10px;

    overflow-x: auto;
    /* scroll instead of wrap */
    overflow-y: hidden;

    white-space: nowrap;
    width: 100%;
    max-width: 100%;
  }

  /* Prevent buttons from shrinking or wrapping */
  .gallery-section .filter-bar button {
    flex: 0 0 auto !important;
    /* <-- CRITICAL */
    white-space: nowrap;
  }

  .gallery-section .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .gallery-section .filter-bar {
    scrollbar-width: none;
  }
