:root {
  --bg-color: #b2f0e6;
  --panel-color: #3b2b20;
  --button-color: #2a1f17;
  --text-color: #f0f0f0;
  --accent-color: #00cc88;
  --font-family: 'Poppins', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html, body {
  height: 100%;
  background: url('../images/bg-1.png') no-repeat center top fixed;
  background-size: cover;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 1.05em;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Accent Text */
h1, h2, h3, h4, h5, h6,
.text-center > p,
form h4,
form label,
.dj-box h3,
.dj-box p,
#liveTrackInfo,
.bg-light p,
.bg-white p,
.text-center p.visitor-count,
.album-section h4,
.album-section p,
.comment-section h4,
.comment-section label,
.comment-section p,
.recent-comments h4,
.recent-comments p {
  color: var(--accent-color);
}

/* Emphasized subtext */
p.subtext {
  font-size: 1.25em;
  font-weight: 500;
  color: var(--accent-color);
}

/* Brighter placeholder text */
textarea::placeholder {
  font-size: 1.15em;
  font-weight: 600;
  color: #33ffbb;
  opacity: 1;
  text-shadow: 0 0 3px #33ffbb;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: var(--panel-color) !important;
  border-bottom: 2px solid var(--accent-color);
}

.navbar-brand, .nav-link {
  color: var(--text-color) !important;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--panel-color);
  color: var(--text-color);
  border-top: 2px solid var(--accent-color);
  padding: 1em 0;
  text-align: center;
}

/* Buttons */
.btn-primary,
.btn-accent {
  background-color: var(--button-color);
  color: #ffffff;
  font-weight: bold;
  padding: 0.75em 1.5em;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-accent:hover {
  background-color: var(--panel-color);
  color: #ffffff;
}

.btn-dark {
  background-color: #000;
  color: var(--accent-color);
  font-weight: bold;
  border: 1px solid var(--accent-color);
  padding: 0.6em 1.2em;
  font-size: 1em;
  border-radius: 6px;
}

.btn-dark:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* DJ Boxes */
.dj-box {
  background-color: var(--panel-color);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 1.5em;
  text-align: center;
  margin-bottom: 1em;
}

/* Track Info */
#liveTrackInfo {
  font-size: 1.2em;
  padding: 1em;
  background-color: var(--panel-color);
  border-radius: 8px;
  border: 2px solid var(--accent-color);
}

/* Album Images */
img.img-fluid.rounded {
  border: 2px solid var(--accent-color);
}

/* Comment Box */
textarea.form-control {
  background-color: var(--panel-color);
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  padding: 1em;
  color: var(--accent-color);
}

textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Recent Comments */
.bg-light,
.bg-white {
  background-color: var(--panel-color) !important;
  border: 1px solid var(--accent-color);
}

/* Visitor Counter */
.text-center p.visitor-count {
  font-size: 1.1em;
  font-weight: bold;
  padding: 1em;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background-color: var(--panel-color);
  display: inline-block;
  margin-top: 1em;
}

/* Fancybox Gallery */
[data-fancybox] img {
  transition: transform 0.3s ease;
}

[data-fancybox] img:hover {
  transform: scale(1.05);
}

/* Discord Widget */
iframe {
  border-radius: 8px;
}

/* Flex Gap Utility */
.gap-3 {
  gap: 1rem;
}

/* Sidebar Links */
.sidebar-link {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.sidebar-link:hover {
  text-decoration: underline;
}

/* Sidebar Images */
.sidebar-image {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
}

/* Friends Page Layout Fixes */
.station-block {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.friends-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Reorder Buttons */
.reorder-btn {
  background-color: var(--button-color);
  color: #fff;
  font-size: 0.9em;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  margin: 0.3em;
  border: 1px solid var(--accent-color);
}

.reorder-btn:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* Cards */
.card {
  background-color: #000;
  color: #fff;
}

.card .card-title,
.card .card-text {
  color: #fff;
}

.card img {
  border: 2px solid #fff;
}

/* Schedule Table */
.schedule-table {
  background-color: #000;
  color: #fff;
  border-color: #444;
}

.schedule-table th,
.schedule-table td {
  background-color: #000;
  color: #fff;
  border: 1px solid #444;
}

.schedule-table th {
  font-weight: bold;
}

.schedule-table td strong {
  color: #fff;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: #000;
  font-size: 1.5em;
  padding: 0.5em 0.7em;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 204, 136, 0.5);
  transition: opacity 0.3s ease;
  opacity: 0;
  z-index: 999;
}

#backToTop:hover {
  background-color: #00cc88;
  color: #fff;
}

#backToTop.show {
  opacity: 1;
}
.friends-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.friends-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.station-block {
  background-color: var(--panel-color);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.station-block img.fixed-size {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}


.fixed-size {
  display: block;
  width: 260px;
  height: 180px;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  margin: 0 auto;
}
.image-wrapper {
  width: 100%;
  max-width: 300px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
}

.station-image {
  width: 40%;
  height: 40%;
  object-fit: cover;
  display: block;
}


.footer-live-stats {
  min-width: 220px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.footer-live-stats p {
  margin: 0;
  color: #fff !important;
  text-shadow: none;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer-live-stats span {
  font-weight: 700;
}

/* === Responsive hardening pass === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
.container.content-box {
  width: min(1200px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}
.content-box,
.content-box .row,
.content-box .col,
.content-box [class*="col-"] { min-width: 0; }
.content-box .bg-light,
.content-box .bg-white,
.content-box .card,
.content-box .dj-box,
.content-box .htr-box,
.content-box .station-block,
.content-box .friend-card,
.content-box .fan-card,
.content-box .person-card,
.content-box #liveTrackInfo {
  overflow-wrap: anywhere;
}
.content-box input[type="text"],
.content-box input[type="email"],
.content-box input[type="password"],
.content-box input[type="url"],
.content-box input[type="number"],
.content-box input[type="search"],
.content-box input[type="file"],
.content-box textarea,
.content-box select {
  width: 100%;
  max-width: 100%;
}
.content-box textarea { max-width: 100%; }
.schedule-table,
.table,
.content-box table {
  width: 100%;
}
.footer-live-stats {
  width: 100%;
  max-width: 360px;
}
.footer-live-stats p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.friends-flex {
  flex-wrap: wrap;
}
.station-block,
.friends-column {
  min-width: 0;
}
.station-image,
.fixed-size,
.station-block img.fixed-size {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.image-wrapper img {
  width: 100%;
  height: auto;
}

@media (max-width: 1199.98px) {
  .container.content-box {
    width: min(100%, calc(100% - 24px));
  }
}

@media (max-width: 991.98px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }
  h1 { font-size: clamp(1.9rem, 5.4vw, 2.45rem); }
  h2 { font-size: clamp(1.55rem, 4.6vw, 2rem); }
  h3 { font-size: clamp(1.3rem, 4.1vw, 1.7rem); }
  .navbar .container {
    width: 100%;
  }
  .navbar-nav {
    gap: .15rem;
    padding-top: .6rem;
  }
  .navbar .nav-link {
    padding: .7rem .2rem;
  }
  .content-box {
    margin-top: 2rem !important;
  }
  .clock-box {
    width: min(100%, 320px);
  }
  iframe[title="Discord Community Widget"] {
    min-height: 520px;
    height: 520px !important;
  }
  .friends-flex {
    flex-direction: column;
    gap: 1.25rem;
  }
  .friends-column {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  html, body {
    font-size: 16px;
  }
  .container.content-box {
    width: calc(100% - 16px);
  }
  .content-box {
    margin-top: 1.25rem !important;
  }
  .subtext {
    font-size: 1.05rem;
    line-height: 1.45;
  }
  .btn,
  .btn-primary,
  .btn-accent,
  .btn-dark {
    max-width: 100%;
    white-space: normal;
  }
  .text-center .btn + .btn,
  .text-center .btn + a.btn,
  .text-center a.btn + a.btn,
  .text-center a.btn + .btn {
    margin-top: .75rem;
  }
  .dj-box,
  .htr-box,
  .bg-light,
  .bg-white,
  .station-block,
  .friend-card,
  .fan-card,
  .person-card,
  #liveTrackInfo {
    padding: 1rem;
  }
  .person-card img,
  .fan-card img,
  .friend-card img {
    height: 200px;
  }
  .content-box .card .row.g-0 {
    --bs-gutter-x: 0;
  }
  .content-box .card .col-md-3,
  .content-box .card .col-md-9,
  .content-box .card .col-md-auto {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .content-box .card img[style*="width:140px"],
  .content-box .card img[style*="width:120px"] {
    width: 100% !important;
    max-width: 220px;
    height: auto !important;
    display: block;
    margin: 0 auto 1rem;
  }
  .footer-live-stats {
    max-width: none;
  }
  .footer-live-stats p {
    font-size: .98rem;
  }
  iframe[title="Discord Community Widget"] {
    min-height: 420px;
    height: 420px !important;
  }
  .schedule-table,
  .content-box table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .navbar-toggler {
    margin-left: auto;
  }
  .content-box .text-center img[style*="max-width: 700px"] {
    max-width: 100% !important;
  }
  .clock-box {
    padding: .9rem;
    font-size: 1rem;
  }
  #liveTrackInfo {
    font-size: 1.05rem;
    line-height: 1.45;
  }
  .person-card img,
  .fan-card img,
  .friend-card img {
    height: 180px;
  }
  .reply-box,
  .comment-section .reply-box {
    overflow-wrap: anywhere;
  }
  .footer-live-stats p {
    flex-direction: column;
    gap: .1rem;
  }
}
