* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans", sans-serif;
  background-color: #f8f9fa;
  color: #222222;
}
/* 1. Full-screen overlay */
    #loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    /* 2. loading animation video */
    #loading-screen video {
      width: 200px;
      height: 200px;
      object-fit: cover;
    }

    /* 3. Class to hide the loader */
    #loading-screen.hidden {
      opacity: 0;
      visibility: hidden;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }


/* NAVBAR */
.navbar-brand {
  font-weight: 600;
  font-size: 35px;
  margin: 10px 20px;
}

.navbar {
  padding-top: 20px;
  font-size: 20px;
  font-weight: 500;
}

.navbar-nav {
  position: relative;
  left: 33%;
}
.nav-item {
  margin: 0 20px;
}

.navbar-toggler {
    width: 30px;
    height: 20px;
    position: relative;
    transition: .25s ease-in-out;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
    border: 0;
    position: relative;
}

.navbar-toggler span {
    margin: 0;
    padding: 0;
}

.toggler-icon {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #222222;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.middle-bar {
    margin-top: 0px;
}


/* State when the navbar is collapsed */

.navbar-toggler.collapsed .top-bar {
    position: absolute;
    top: 0px;
    transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    position: absolute;
    top: 8px;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    position: absolute;
    top: 16px;
    transform: rotate(0deg);
}

/* when navigation is clicked */

.navbar-toggler .top-bar {
    top: inherit;
    transform: rotate(135deg);
}

.navbar-toggler .middle-bar {
    opacity: 0;
    top: inherit;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    top: inherit;
    transform: rotate(-135deg);
}

.navbar-toggler.collapsed .toggler-icon {
    background: #222222;
}
.clock {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 2;
}

#live-time {
  background-color: #222222;
  padding: 5px 10px;
  border-radius: 10px;
  color: #f8f9fa;
}


@media (max-width: 991px) {
  .navbar-nav {
    position: relative;
    left: 0;
    text-align: center;
  }
  .clock {
    position: absolute;
    top: 45px;
    right: 80px;
  }
}



/* Music Player */
.ytw {
        --ytw-bg: #000000;
        --ytw-raised: #1f1f1f;
        --ytw-line: #454545;
        --ytw-text: #efefef;
        --ytw-muted: #b0b0b0;
        --ytw-accent: #ffffff;

        position: fixed;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        width: min(375px, calc(100vw - 24px));
        z-index: 998;
        font-family:
          system-ui,
          -apple-system,
          "Segoe UI",
          Roboto,
          sans-serif;
        color: var(--ytw-text);
      }
      .ytw *,
      .ytw *::before,
      .ytw *::after {
        box-sizing: border-box;
      }

      .ytw-bar {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 10px 12px 14px 10px;
        background: var(--ytw-bg);
        border: 1px solid var(--ytw-line);
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(10, 12, 24, 0.35);
      }

      /* The disc: the one memorable element. Spins while playing. */
      .ytw-disc {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--ytw-raised) center / cover no-repeat;
        position: relative;
        flex: none;
        animation: ytw-spin 6s linear infinite;
        animation-play-state: paused;
      }
      .ytw-disc::after {
        /* spindle hole */
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--ytw-bg);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
      }
      .ytw.is-playing .ytw-disc {
        animation-play-state: running;
      }
      @keyframes ytw-spin {
        to {
          transform: rotate(360deg);
        }
      }

      .ytw-meta {
        min-width: 0;
      }
      .ytw-title,
      .ytw-artist {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ytw-title {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.3;
      }
      .ytw-artist {
        font-size: 0.78rem;
        color: var(--ytw-muted);
        line-height: 1.3;
      }

      .ytw-ctrls {
        display: flex;
        align-items: center;
        gap: 2px;
      }
      .ytw-btn {
        appearance: none;
        border: 0;
        background: transparent;
        color: var(--ytw-text);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition:
          background 0.15s,
          color 0.15s;
      }
      .ytw-btn:hover {
        background: var(--ytw-raised);
      }
      .ytw-btn:focus-visible,
      .ytw-seek:focus-visible,
      .ytw-item:focus-visible {
        outline: 2px solid var(--ytw-accent);
        outline-offset: 2px;
      }
      .ytw-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
      }
      .ytw-btn.ytw-play {
        background: var(--ytw-accent);
        color: #12141d;
        width: 40px;
        height: 40px;
      }
      .ytw-btn.ytw-play:hover {
        background: #ffffff;
      }
      .ytw-btn.ytw-play .i-pause {
        display: none;
      }
      .ytw.is-playing .ytw-play .i-play {
        display: none;
      }
      .ytw.is-playing .ytw-play .i-pause {
        display: block;
      }
      .ytw.list-open .ytw-toggle {
        background: var(--ytw-raised);
        color: var(--ytw-accent);
      }

      /* Seek bar sits along the bottom edge of the bar */
      .ytw-seek {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 3px;
        width: auto;
        height: 10px;
        margin: 0;
        accent-color: var(--ytw-accent);
        cursor: pointer;
      }

      /* Track list */
      .ytw-list {
        display: none;
        margin-bottom: 8px;
        max-height: min(42vh, 340px);
        overflow-y: auto;
        background: var(--ytw-bg);
        border: 1px solid var(--ytw-line);
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(26, 27, 30, 0.35);
        padding: 6px;
        overscroll-behavior: contain;
      }
      .ytw.list-open .ytw-list {
        display: block;
        animation: ytw-rise 0.18s ease-out;
      }
      @keyframes ytw-rise {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
      }

      .ytw-list ol {
        list-style: none;
        margin: 0;
        padding: 0;
      }
      .ytw-item {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 10px;
        align-items: center;
        width: 100%;
        padding: 6px 8px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }
      .ytw-item:hover {
        background: var(--ytw-raised);
      }
      .ytw-item img {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        object-fit: cover;
        background: var(--ytw-raised);
      }
      .ytw-item span {
        font-size: 0.85rem;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .ytw-item[aria-current="true"] {
        background: var(--ytw-raised);
      }
      .ytw-item[aria-current="true"] span {
        color: var(--ytw-accent);
        font-weight: 600;
      }
      .ytw-empty {
        padding: 14px;
        font-size: 0.85rem;
        color: var(--ytw-muted);
      }

      /* The real YouTube player stays on the page, but tiny and silent-looking */
      .ytw-player {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
      }

      /* ---------- Mobile + tablet: floating music icon + bottom sheet ---------- */
      .ytw-fab,
      .ytw-backdrop,
      .ytw-sheet-head {
        display: none;
      }

      @keyframes ytw-pulse {
        0% {
          transform: scale(0.92);
          opacity: 0.7;
        }
        100% {
          transform: scale(1.35);
          opacity: 0;
        }
      }
      @keyframes ytw-sheet {
        from {
          transform: translateY(24px);
          opacity: 0;
        }
      }

      @media (max-width: 1024px) {
        .ytw {
          left: auto;
          right: 16px;
          bottom: calc(16px + env(safe-area-inset-bottom, 0px));
          transform: none;
          width: auto;
        }

        .ytw-fab {
          display: grid;
          place-items: center;
          position: relative;
          width: 60px;
          height: 60px;
          padding: 0;
          border-radius: 50%;
          background: var(--ytw-bg);
          color: var(--ytw-accent);
          border: 1px solid var(--ytw-line);
          box-shadow: 0 10px 28px rgba(10, 12, 24, 0.4);
          cursor: pointer;
        }
        .ytw-fab:focus-visible {
          outline: 2px solid var(--ytw-accent);
          outline-offset: 3px;
        }
        .ytw-fab-disc {
          position: absolute;
          inset: 0;
          border-radius: 50%;
          background: var(--ytw-raised) center / cover no-repeat;
          animation: ytw-spin 6s linear infinite;
          animation-play-state: paused;
        }
        .ytw.is-playing .ytw-fab-disc {
          animation-play-state: running;
        }
        .ytw-fab-play {
          /* stays still while the picture spins */
          position: relative;
          display: grid;
          place-items: center;
          width: 28px;
          height: 28px;
          border-radius: 50%;
          background: rgba(31, 31, 31, 0.62);
          color: #fff;
        }
        .ytw-fab-play svg {
          width: 16px;
          height: 16px;
          fill: currentColor;
          margin-left: 2px;
        }
        .ytw.is-playing .ytw-fab::after {
          content: "";
          position: absolute;
          inset: 0;
          border-radius: 50%;
          border: 2px solid var(--ytw-accent);
          animation: ytw-pulse 2s ease-out infinite;
        }
        .ytw.sheet-open .ytw-fab {
          display: none;
        }

        .ytw-panel {
          display: none;
        }
        .ytw.sheet-open .ytw-backdrop {
          display: block;
          position: fixed;
          inset: 0;
          z-index: 1;
          background: rgba(24, 24, 24, 0.35);
        }
        .ytw.sheet-open .ytw-panel {
          display: flex;
          flex-direction: column;
          position: fixed;
          z-index: 2;
          bottom: 0;
          left: 0;
          right: 0;
          width: min(100%, 640px);
          margin: 0 auto;
          height: clamp(300px, 55vh, 560px);
          max-height: 90vh;
          background: var(--ytw-bg);
          border: 1px solid var(--ytw-line);
          border-bottom: 0;
          border-radius: 22px 22px 0 0;
          box-shadow: 0 -12px 40px rgba(23, 23, 23, 0.4);
          padding-bottom: env(safe-area-inset-bottom, 0px);
          animation: ytw-sheet 0.22s ease-out;
        }

        .ytw-sheet-head {
          order: 0;
          flex: none;
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 8px 8px 0 18px;
        }
        .ytw-sheet-head span {
          font-size: 0.72rem;
          letter-spacing: 0.08em;
          text-transform: uppercase;
          color: var(--ytw-muted);
        }

        .ytw-bar {
          order: 1;
          flex: none;
          grid-template-columns: 64px 1fr;
          grid-template-areas: "disc meta" "seek seek" "ctrls ctrls";
          row-gap: 10px;
          padding: 4px 18px 12px;
          background: transparent;
          border: 0;
          border-radius: 0;
          box-shadow: none;
        }
        .ytw-disc {
          grid-area: disc;
          width: 64px;
          height: 64px;
        }
        .ytw-meta {
          grid-area: meta;
        }
        .ytw-title {
          font-size: 1rem;
          white-space: normal;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
        .ytw-artist {
          font-size: 0.82rem;
        }
        .ytw-seek {
          grid-area: seek;
          position: static;
          left: auto;
          right: auto;
          bottom: auto;
          width: 100%;
          height: 18px;
        }
        .ytw-ctrls {
          grid-area: ctrls;
          justify-content: center;
          gap: 14px;
        }
        .ytw-toggle {
          display: none;
        } /* list is always visible in the sheet */
        .ytw-btn {
          width: 44px;
          height: 44px;
        }
        .ytw-btn svg {
          width: 20px;
          height: 20px;
        }
        .ytw-btn.ytw-play {
          width: 54px;
          height: 54px;
        }

        .ytw-list,
        .ytw.list-open .ytw-list {
          order: 2;
          flex: 1;
          min-height: 0;
          display: block;
          margin: 0;
          max-height: none;
          animation: none;
          background: transparent;
          border: 0;
          border-top: 1px solid var(--ytw-line);
          border-radius: 0;
          box-shadow: none;
          padding: 6px 10px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .ytw-disc {
          animation: none;
        }
        .ytw.list-open .ytw-list {
          animation: none;
        }
        .ytw.is-playing .ytw-fab::after {
          animation: none;
        }
        .ytw-fab-disc {
          animation: none;
        }
        .ytw.sheet-open .ytw-panel {
          animation: none;
        }
      }