/* FischRadio — main layout: fixed cover header, player bar, home grid, footer.
   Mirrors the SYNK responsive system including the mobile breakpoints. */

:root {
  --v2-background: #171717;
  --v2-accent: #e8e3d8;
  --v2-muted: #9ca3af;
  --v2-border: rgba(255,255,255,.1);
}

html { scroll-padding-top: 90px; }
body { background: var(--v2-background) !important; color: #fff; }

#centerLogo { min-width: 80px; min-height: 44px; justify-content: center; }
.v2-logo { display: block; width: 76px; height: auto; object-fit: contain; }

/* Fixed cover-art header */
#songCoverPlayer { border-radius: 0 0 24px 24px !important; border-bottom: 0; }
#songCoverPlayer > div:first-child { border-radius: inherit; box-shadow: inset 0 -1px 0 #ffffff12; }
#songCoverPlayer > div > div:first-child {
  height: 70px; max-width: 1440px; margin: auto;
  padding-left: 80px; padding-right: 80px; border-bottom: 1px solid #ffffff0c;
}
#songCoverPlayer .v2-menu-trigger {
  font-size: 14px; font-weight: 500; background: transparent; border: 0; min-height: 40px; padding: 0;
}
#songCoverPlayer .v2-menu-trigger:hover { color: var(--v2-accent); }
#songCoverPlayer .group > div > div {
  background: #171717f5 !important; border-color: var(--v2-border); box-shadow: 0 12px 36px #0005;
}
#songCoverPlayer .group a { border-radius: 8px; }

/* Player row */
.player-container > div:first-child { max-width: 1280px; margin: 17px auto 0; align-items: center; }
.player-container > div:first-child > div:first-child > div { margin-top: 0; }
#songCover, #djAvatar { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid #ffffff20; }
#songTitle { font-size: 25px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
#songArtist { font-size: 14px; color: #ffffffc7; line-height: 1.6; }
#djName { font-size: 23px; font-weight: 500; letter-spacing: -.4px; }

/* Player control bar (48px) */
.player-container > div:last-child {
  height: 48px; background: #ffffff12 !important;
  border-top: 1px solid #ffffff12; border-radius: 0 0 24px 24px !important;
}
.player-container > div:last-child > div { gap: 24px; }
#songCoverPlayer .v2-primary-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; background: transparent; color: #fff;
  border: 0; border-radius: 8px; margin: 0;
  transition: opacity .2s ease, transform .2s ease;
}
#songCoverPlayer .v2-primary-play:hover { opacity: .8; transform: scale(1.04); }
#songCoverPlayer .v2-primary-play:active { transform: scale(.97); }
.player-container .v2-primary-play iconify-icon { font-size: 24px !important; }
.player-container #waveform { bottom: 48px !important; }

/* Collapsed header */
.header-collapsed { height: 65px !important; }
.header-collapsed > div > div:first-child { height: 65px !important; border-bottom: 0 !important; }
#songCoverPlayer.header-collapsed .player-container { pointer-events: none; opacity: 0; }

/* Page container */
.page { width: calc(100% - 160px) !important; max-width: 1280px !important; margin-top: 279px !important; }
.page > div:not(.v2-home) { padding-top: 0 !important; }
.page h1 { letter-spacing: -.7px; }
.page h2 { letter-spacing: -.3px; }
.page > div > div:first-child:has(> h1) { padding: 28px 30px; }
.page > div > div:first-child:has(> h1) > p { font-size: 14px; line-height: 1.7; }
.page input, .page select, .page textarea,
.modal-container input, .modal-container select, .modal-container textarea { border-radius: 8px !important; }
.page input:focus, .page select:focus, .page textarea:focus { --tw-ring-color: #e8e3d844 !important; }

/* Modals */
.modal-container { z-index: 140 !important; overscroll-behavior: contain; }
.modal-backdrop { z-index: 135 !important; }
.modal-inner > div, .modal-content > div { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

/* Mobile menu */
#mobileMenu { overscroll-behavior: contain; }
#mobileMenu .v2-logo { width: 65px; }
#mobileMenu .mobile-link { font-size: 15px; min-height: 44px; }

/* Home layout */
.v2-home { display: flex; flex-direction: column; gap: 32px; }
.v2-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.v2-section-heading h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 700; letter-spacing: -.35px; margin: 0; line-height: 1.4;
}
.v2-section-heading h2 > iconify-icon { font-size: 21px; }
.v2-section-actions { display: flex; align-items: center; gap: 7px; }
.v2-section-actions > a {
  font-size: 12px; margin-right: 11px;
  display: inline-flex; align-items: center; gap: 7px; color: #ffffffb3;
}
.v2-section-actions > a:hover { color: #fff; }
.v2-section-actions > a iconify-icon { font-size: 14px; }
.v2-section-actions > button {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #ffffff18; background: transparent; border-radius: 50%;
}
.v2-section-actions > button:hover:not(:disabled) { background: #ffffff0c; }
.v2-section-actions > button iconify-icon { font-size: 15px; }

.v2-schedule-heading > div:first-child p { font-size: 12px; color: var(--v2-muted); margin: 4px 0 0; }
.v2-schedule-rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 2px 8px; scrollbar-width: none;
}
.v2-schedule-rail::-webkit-scrollbar { display: none; }

.v2-home-columns { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(320px,1fr); gap: 32px; }
.v2-whats-new, .v2-recent { min-width: 0; }

/* Banner */
.v2-banner-container { height: 468px; position: relative; overflow: hidden; border-radius: 16px; background: #0003; }
.v2-advert-banner, .v2-hiring-banner {
  padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 33px; text-align: center; background: #0001;
}
.v2-banner-symbol { width: 102px; height: auto; object-fit: contain; opacity: .92; }
.v2-banner-copy { margin-bottom: 16px; }
.v2-banner-copy h3 {
  font-size: 33px; max-width: 420px; line-height: 1.22; letter-spacing: -.8px;
  font-weight: 500; margin: 0 auto 13px;
}
.v2-banner-copy p { font-size: 15px; color: #ffffffa6; line-height: 1.6; margin: 0; }
.v2-banner-button {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--v2-accent); color: #171717; padding: 11px 17px;
  border-radius: 8px; font-size: 13px; font-weight: 500; margin-top: 24px;
}
.v2-banner-button:hover { background: #fff; }
.v2-banner-button iconify-icon { font-size: 16px; }
.v2-banner-toolbar {
  position: absolute; bottom: 17px; left: 22px; right: 22px;
  display: flex; align-items: center; justify-content: space-between; z-index: 3;
}
.v2-banner-dots { display: flex; align-items: center; gap: 7px; }
.v2-banner-dots button { width: 7px; height: 7px; border-radius: 50%; background: #ffffff45 !important; position: relative; }
.v2-banner-dots button:before { content: ''; position: absolute; inset: -10px; }
.v2-banner-dots button.bg-white { background: #fff !important; }
.v2-banner-controls { display: flex; gap: 3px; }
.v2-banner-controls button {
  display: flex; align-items: center; justify-content: center;
  width: 29px; height: 29px; border-radius: 50%;
  border: 1px solid #ffffff18; background: transparent; color: #ffffff9c;
}
.v2-banner-controls button:hover { background: #ffffff0c; color: #fff; }
.v2-banner-controls iconify-icon { font-size: 15px; }

/* Recently played list */
.v2-recent-list { height: 468px; overflow-y: auto; scrollbar-width: thin; padding: 0 0 0 2px; }
.v2-recent-list .recently-played-item > div { height: 66px; padding: 8px 5px !important; border-radius: 8px; gap: 12px; }
.v2-recent-list .recently-played-item > div:hover { background: #ffffff06 !important; }
.v2-recent-list img { width: 47px; height: 47px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.v2-recent-list .recently-played-item > div > div { min-width: 0; }
.v2-recent-list .font-semibold { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-recent-list .text-sm { font-size: 12px; line-height: 1.5; margin-top: 3px; color: var(--v2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Social links */
.v2-social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v2-social-links > a {
  display: flex; align-items: center; gap: 18px; padding: 22px 25px;
  border: 1px solid #ffffff10; border-radius: 12px;
}
.v2-social-links > a > div { flex: 1; min-width: 0; }
.v2-discord-link { background: #5865F2; }
.v2-discord-link:hover { background: #4e5be0; }
.v2-x-link { background: #000; }
.v2-x-link:hover { background: #080808; }
.v2-social-icon { display: flex; align-items: center; justify-content: center; width: 39px; flex-shrink: 0; }
.v2-social-icon iconify-icon { font-size: 30px; }
.v2-social-links h3 { font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0 0 3px; }
.v2-social-links p { font-size: 13px; color: #ffffffbf; line-height: 1.5; margin: 0; }
.v2-social-links > a > iconify-icon { font-size: 20px; flex-shrink: 0; color: #ffffffb3; }

/* Online members (home) */
.v2online-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.v2online-heading h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.35px; }
.v2online-intro p { font-size: 13px; color: var(--v2-muted); margin: 4px 0 0; }
.v2online-counts { display: flex; gap: 24px; margin: 0; }
.v2online-counts > div { text-align: right; }
.v2online-counts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--v2-muted); }
.v2online-counts dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.v2online-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.v2online-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ffffff10; border-radius: 10px; }
.v2online-list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.v2online-list span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Responsive: these breakpoints are what make the phone layout work ── */
@media (max-width: 1440px) {
  .player-container > div:first-child { margin-left: 80px; margin-right: 80px; }
}
@media (max-width: 1100px) {
  #songCoverPlayer > div > div:first-child { padding-left: 36px; padding-right: 36px; }
  .player-container > div:first-child { margin-left: 36px; margin-right: 36px; }
  .page { width: calc(100% - 72px) !important; }
  .v2-home-columns { grid-template-columns: minmax(0,1.4fr) minmax(300px,1fr); gap: 24px; }
  .v2-banner-copy h3 { font-size: 29px; }
  .v2-banner-copy p { font-size: 14px; }
}
@media (max-width: 900px) {
  .v2-home-columns { grid-template-columns: minmax(0,1.15fr) minmax(280px,1fr); gap: 20px; }
  .v2-banner-copy h3 { font-size: 27px; }
  .v2-banner-copy p { font-size: 13px; }
  .v2-advert-banner, .v2-hiring-banner { padding: 25px; }
  .v2-section-heading h2 { font-size: 18px; }
  .v2-recent-list .font-semibold { font-size: 13px; }
  .v2-recent-list .text-sm { font-size: 11px; }
  #songCoverPlayer .v2-menu-trigger { font-size: 12px; }
  #songCoverPlayer > div > div:first-child > div:first-child > div:nth-child(2) { gap: 18px; }
  .v2-social-links > a { padding: 21px 19px; gap: 12px; }
  .v2-social-links p { font-size: 12px; }
  .v2-social-links > a > iconify-icon { font-size: 17px; }
}
@media (max-width: 767px) {
  #songCoverPlayer { height: 241px !important; border-radius: 0 0 20px 20px !important; }
  #songCoverPlayer.header-collapsed { height: 65px !important; }
  #songCoverPlayer > div > div:first-child { padding: 12px 20px; height: 67px; }
  .v2-logo { width: 65px; }
  .player-container > div:first-child { margin: 19px 20px 0; gap: 12px; }
  .player-container > div:first-child > div { min-width: 0; }
  .player-container > div:first-child > div:first-child { flex: 1; }
  .player-container > div:first-child > div:first-child > div { margin-left: 12px; min-width: 0; }
  #songCover, #djAvatar { width: 49px; height: 49px; border-radius: 10px; }
  #songTitle { font-size: 18px; }
  #songArtist { font-size: 12px; }
  .player-container .marquee { max-width: min(43vw, 240px); }
  #djName { font-size: 15px; }
  .player-container > div:first-child > div:last-child > div { margin-right: 10px; }
  .player-container > div:last-child { border-radius: 0 0 20px 20px !important; }
  .player-container > div:last-child > div { gap: 0; padding-left: 12px; padding-right: 12px; }
  .player-container .v2-primary-play iconify-icon { font-size: 20px !important; }
  .player-container > div:last-child #muteToggle { min-width: 0; }
  .page { width: calc(100% - 40px) !important; margin-top: 268px !important; }
  .v2-home { gap: 27px; }
  .v2-section-heading { margin-bottom: 13px; gap: 12px; }
  .v2-section-heading h2 { font-size: 18px; gap: 8px; }
  .v2-section-heading h2 > iconify-icon { font-size: 19px; }
  .v2-section-actions { gap: 5px; }
  .v2-section-actions > a { font-size: 11px; margin-right: 4px; }
  .v2-section-actions > a iconify-icon { display: none; }
  .v2-section-actions > button { width: 26px; height: 26px; }
  .v2-home-columns { grid-template-columns: 1fr; gap: 27px; }
  .v2-banner-container { height: 360px; }
  .v2-advert-banner, .v2-hiring-banner { gap: 27px; padding: 24px; }
  .v2-banner-symbol { width: 82px; }
  .v2-banner-copy h3 { font-size: 27px; max-width: 290px; }
  .v2-banner-copy p { font-size: 13px; }
  .v2-banner-button { font-size: 12px; margin-top: 21px; }
  .v2-banner-toolbar { bottom: 14px; left: 20px; right: 17px; }
  .v2-recent-list { height: auto; max-height: 476px; padding: 0; }
  .v2-recent-list .recently-played-item > div { height: 67px; padding: 8px 2px !important; }
  .v2-recent-list img { width: 48px; height: 48px; }
  .v2-recent-list .font-semibold { font-size: 14px; }
  .v2-recent-list .text-sm { font-size: 12px; }
  .v2-social-links { grid-template-columns: 1fr; gap: 14px; }
  .v2-social-links > a { padding: 21px; }
  .v2-social-links h3 { font-size: 15px; }
  .v2-social-links p { font-size: 13px; }
  .v2-social-icon iconify-icon { font-size: 29px; }
  .page > div > div:first-child:has(> h1) { padding: 24px 22px; }
  .page h1 { font-size: 27px; }
  .page > div > div:first-child:has(> h1) > p { font-size: 13px; }
  .v2online-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .v2online-counts { gap: 18px; }
}
@media (max-width: 380px) {
  #djAvatar { display: none; }
  .v2-section-actions > a { font-size: 10px; }
  .v2-banner-copy h3 { font-size: 25px; }
}
