/* === Shared container styles === */
div.rotatingBanner {
  padding: 0 0 .1rem 0;
  background-repeat: no-repeat;
  background-position: top left;
  border-radius: 8px;
  position: relative;
  margin: .2rem 1rem;
}

#bannerFrame {
  width: 100%;
  height: 266px; /* Adjust as needed */
}

#iframe {
  width: 100%;
  height: 100%;
  border: none;
  font-family: "Ubuntu", sans-serif;
}

#bannerControls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.bubble {
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bubble:hover {
  background-color: #aaa;
}

.bannerPanel {
  display: inline-block;
  margin-right: 5px;
  vertical-align: top;
}

#banner-container {
  width: 100%;
  height: 280px;
  padding: .5em;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: .1em;
  background: #111;
}

/* === Pause button === */
#pause-button {
  background-color: #518BA1;
  margin-bottom: .1em;
  color: #fff;
  font-size: 12px;
  margin-left: 3em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#pause-button:hover {
  background-color: #407A90;
}

/* === Banner Section Base === */
.banner-section {
  width: 90%;
  margin: 0 auto;
  color: #fff;
  border-radius: 8px;
  padding: 0.25rem .4rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.banner-section h2 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

/* === Banner items shared === */
.banner-items {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.banner-item {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.banner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.banner-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.banner-item .info {
  padding: 5px 10px;
  font-size: 0.9em;
}

.bannertitle,
.banneruser {
  color: #eee;
}
.banneruser {
  font-size: 0.85em;
  opacity: 0.85;
}

/* === Type-specific themes === */

/* IMAGES banner */
.banner-section.images {
  background: linear-gradient(135deg, #518BA1 0%, #79B7C3 100%);
  border-left: 6px solid #E77D42;
}
.banner-section.images h2::before {
  content: "📷 ";
}
.banner-section.images .banner-item {
  background: #26464E;
}

/* MUSIC banner */
.banner-section.music {
  background: linear-gradient(135deg, #E77D42 0%, #FFB067 100%);
  border-left: 6px solid #518BA1;
}
.banner-section.music h2::before {
  content: "🎵 ";
}
.banner-section.music .banner-item {
  background: #4A2F1C;
}

/* LYRICS banner */
.banner-section.lyrics {
  background: linear-gradient(135deg, #6BA078 0%, #A1C39B 100%);
  border-left: 6px solid #E77D42;
}
.banner-section.lyrics h2::before {
  content: "✍️ ";
}
.banner-section.lyrics .banner-item {
  background: #3E5440;
  font-family: "Georgia", serif;
}
.banner-section.lyrics .bannertitle {
  border-bottom: 1px dotted rgba(255,255,255,0.4);
}

/* === Scrollbar (nice touch for dark theme) === */
.banner-items::-webkit-scrollbar {
  height: 6px;
}
.banner-items::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.banner-items::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

.track-item {
  position: relative;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  color: white;
  text-align: center;
}

.track-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.track-item .content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.track-item .icon svg {
  width: 60px;
  height: 60px;
  color: white;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.track-item:hover .icon svg {
  transform: scale(1.1);
}

.track-item .text {
  margin-top: 10px;
}

.track-item .title {
  font-weight: bold;
  font-size: 1rem;
}

.track-item .artist {
  font-size: 0.85rem;
  opacity: 0.8;
}


/* Make all text inside track-item links white */
.track-item a {
  color: white;           /* default color for link text */
  text-decoration: none;  /* remove underline */
  display: flex;          /* keep layout if needed */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Optional: slightly muted secondary text */
.track-item a .artist {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* Optional: hover effect for the link */
.track-item a:hover {
  text-decoration: none;  /* keep no underline */
}

.track-item a:hover .icon svg {
  transform: scale(1.1);  /* existing icon hover scale works */
}


/* === Picture-frame effect for image banners === */
.banner-section.images .banner-item {
  position: relative;
  background: #26464E; /* fallback base for inner frame */
  border-radius: 8px;
  overflow: hidden;
  width: 180px;
  height: 130px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4); /* frame shadow */
  border: 8px solid #fff; /* inner frame "matte" */
}

.banner-section.images .banner-item img {
  width: 100%;
  height: 100%;
  border: 2px solid #ccc;  /* optional inner edge for realistic frame */
  border-radius: 4px;
}

/* Optional: subtle inset shadow for depth */
.banner-section.images .banner-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
  border-radius: 8px;
}

/* Optional hover effect for floating frame */
.banner-section.images .banner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}


/* === Lyrics banner items: simple & elegant === */
.banner-section.lyrics .banner-item {
    position: relative;
    background: #3E5440;          /* dark, neutral background */
    border-radius: 8px;
    padding: 12px 10px;
    width: 200px;
    min-height: 100px;
    margin: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
}

/* Hover effect for depth */
.banner-section.lyrics .banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

/* Excerpt styling */
.banner-section.lyrics .banner-item .excerpt {
    font-size: 0.9rem;
    font-style: italic;
    color: #ddd;
    margin-bottom: 8px;
    line-height: 1.3em;
}

/* Link wrapper */
.banner-section.lyrics .banner-item .info a {
    text-decoration: none;
    color: #fff;
    display: block;
}

/* Title styling */
.banner-section.lyrics .banner-item .bannertitle {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* User name */
.banner-section.lyrics .banner-item .banneruser {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* Optional: subtle date display (if ever shown) */
.banner-section.lyrics .banner-item .date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* Optional hover highlight on text */
.banner-section.lyrics .banner-item:hover .bannertitle {
    color: #E77D42;
}

