/* Medium-small screens */
@media (min-width: 600px) {
  .cccover img {
    width: 75px;
    height: 75px;
  }
}

/* Tablet and desktop shell */
@media (min-width: 768px) {
  body {
    flex-direction: row;
  }

  .site-header,
  .site-footer {
    position: fixed;
    top: 0;
    z-index: 10000;
    width: var(--sidebar-w);
    height: 100vh;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .site-header {
    left: 0;
  }

  .site-footer {
    right: 0;
  }

  .footer-action {
    max-width: none;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .site-main {
    flex: 1;
    min-height: 100vh;
    margin-left: var(--sidebar-w);
    margin-right: var(--sidebar-w);
    padding: 1rem;
    gap: 1.5rem;
    overflow-y: auto;
  }

  /* =========================
     Stream info (FIXED)
     ========================= */

  .stream-info {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding-block: 1rem;
    padding-inline: 0.35rem;
  }

  .stream-info__current-song {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
  }

  .stream-info__link {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .cctitle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* Larger desktop */
@media (min-width: 1024px) {
  .cccover img {
    width: 90px;
    height: 90px;
  }
}

/* Mobile refinements */
@media (max-width: 767px) {
  .module {
    padding: 1.25rem 1.25rem;
  }

  .module__toggle {
    padding-left: 0.15rem;
    padding-right: 2.25rem;
  }

  .module__title-main {
    gap: 0.35rem;
  }

  .module__emoji {
    font-size: 1.2rem;
  }

  .cc_recenttracks_list article.cctrack {
    gap: 0.3rem;
  }

  .ccdetails {
    gap: 1rem;
  }

  .request-form {
    font-size: 1rem;
  }

  .request-form button[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-main {
    padding: 1rem;
    gap: 1rem;
  }

  .module--stream .module__title--hero {
    font-size: 2.4rem;
  }

  .module__toggle {
    font-size: 1.65rem;
  }

  .cc_recenttracks_list {
    padding: 0.25rem;
  }

  .cc_recenttracks_list article.cctrack {
    padding: 0.65rem 0.75rem;
  }

  .cctime {
    min-width: 62px;
    font-size: 0.85rem;
  }

  .ccdetails {
    font-size: 0.85rem;
  }

  .ccartist,
  .ccalbum {
    max-width: 100px;
  }
}

/* Motion containment and touch comfort for future draggable emojis */
@media (hover: none) and (pointer: coarse) {
  .module__emoji {
    min-width: 1.5em;
    min-height: 1.5em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .accordion-content,
  .module,
  .module__toggle,
  .module__toggle::after,
  .footer-action,
  .stream-info__link,
  .media-player__audio,
  .cc_recenttracks_list article.cctrack,
  .request-form input[type="text"],
  .request-form input[type="email"],
  .request-form button {
    transition: none;
  }

  .module:hover {
    transform: none !important;
  }

  .module__toggle:hover,
  .module__toggle:focus-visible {
    text-shadow: 0 0 5px var(--color-neon-blue);
  }

  .stream-info__link {
    animation: none;
    color: var(--color-header-footer-text);
  }

  [data-emoji],
  .module__emoji {
    transform: none !important;
  }
}
