/* Radio KISS - Functional Prototype Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f1f3; color: #222; line-height: 1.5; padding-top: 70px; padding-bottom: 70px; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, .btn { cursor: pointer; border: none; padding: 8px 18px; border-radius: 4px; font-size: 14px; font-family: inherit; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1558b0; }
.btn-secondary { background: #e0e0e0; color: #333; }
.btn-secondary:hover { background: #ccc; }
.btn-danger { background: #d93025; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font-family: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #1a73e8; }
label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 14px; }
.form-group { margin-bottom: 16px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); height: 70px; display: flex; align-items: center; padding: 0 24px; }
.header-logo { font-size: 28px; font-weight: 900; color: #d93025; margin-right: 20px; letter-spacing: 2px; }
.header-live { display: flex; align-items: center; gap: 10px; margin-right: 20px; padding: 6px 14px; background: #fef3f2; border-radius: 6px; font-size: 13px; }
.header-live .live-dot { width: 8px; height: 8px; background: #d93025; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.header-live .play-btn { width: 30px; height: 30px; background: #d93025; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; border: none; }
.header-song-info { font-size: 12px; line-height: 1.3; margin-right: auto; }
.header-song-info .current { font-weight: 600; }
.header-song-info .prev { color: #888; }
.header-show { font-size: 12px; color: #666; margin-right: 20px; white-space: nowrap; }
.header-nav { display: flex; gap: 4px; margin-right: 16px; flex-wrap: wrap; }
.header-nav a { padding: 6px 10px; font-size: 13px; color: #333; border-radius: 4px; white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { background: #e8f0fe; color: #1a73e8; text-decoration: none; }
.header-auth { white-space: nowrap; }
.header-auth .user-name { font-size: 13px; margin-right: 8px; font-weight: 500; }

/* Persistent player */
.player-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #222; color: #fff; height: 64px; display: flex; align-items: center; padding: 0 24px; gap: 16px; }
.player-bar .player-play { width: 40px; height: 40px; background: #1a73e8; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; border: none; flex-shrink: 0; }
.player-bar .player-song { flex: 1; min-width: 0; }
.player-bar .player-song .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .player-song .artist { font-size: 12px; color: #aaa; }
.player-bar .player-volume { display: flex; align-items: center; gap: 8px; }
.player-bar .player-volume input[type=range] { width: 100px; }
.player-bar .player-live-badge { background: #d93025; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { margin-bottom: 40px; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid #1a73e8; padding-bottom: 6px; display: inline-block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Cards */
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-img { width: 100%; height: 180px; background: #ddd; display: flex; align-items: center; justify-content: center; color: #999; font-size: 13px; position: relative; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 6px; }
.card-body p { font-size: 13px; color: #555; }
.card-meta { font-size: 12px; color: #888; margin-top: 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.badge-premium { background: #ffc107; color: #333; }
.badge-login { background: #ff5722; color: #fff; }
.badge-new { background: #4caf50; color: #fff; }
.badge-cat { background: #e8f0fe; color: #1a73e8; }
.badge-exclusive { background: #9c27b0; color: #fff; }

/* Carousel */
.carousel { position: relative; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.carousel-slides { display: flex; transition: transform .3s; }
.carousel-slide { min-width: 100%; padding: 60px 40px; background: linear-gradient(135deg, #1a73e8, #4a90d9); color: #fff; }
.carousel-slide h2 { font-size: 28px; margin-bottom: 10px; }
.carousel-slide p { font-size: 16px; margin-bottom: 20px; opacity: .9; }
.carousel-slide .btn { background: #fff; color: #1a73e8; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; }
.carousel-dots .dot.active { background: #fff; }

/* Schedule strip */
.schedule-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.schedule-item { background: #fff; border-radius: 8px; padding: 14px 20px; min-width: 200px; box-shadow: 0 1px 3px rgba(0,0,0,.08); flex-shrink: 0; }
.schedule-item.now { border-left: 4px solid #d93025; }
.schedule-item .time { font-size: 12px; color: #888; }
.schedule-item .name { font-weight: 600; font-size: 15px; }
.schedule-item .mod { font-size: 12px; color: #666; }

/* Playlist */
.playlist-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.playlist-table th, .playlist-table td { padding: 10px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.playlist-table th { background: #f8f8f8; font-weight: 600; font-size: 12px; color: #666; text-transform: uppercase; }
.star-rating { color: #ccc; cursor: pointer; font-size: 16px; white-space: nowrap; }
.star-rating .star.filled { color: #ffc107; }
.star-rating .star:hover, .star-rating .star:hover ~ .star { color: #ffc107; }

/* Chart / hitparada */
.chart-list { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; gap: 14px; }
.chart-row:last-child { border-bottom: none; }
.chart-pos { font-size: 20px; font-weight: 700; width: 36px; text-align: center; color: #333; }
.chart-move { width: 24px; text-align: center; font-size: 14px; }
.chart-move.up { color: #4caf50; }
.chart-move.down { color: #d93025; }
.chart-move.new { color: #1a73e8; font-size: 11px; font-weight: 700; }
.chart-info { flex: 1; }
.chart-info .artist { font-weight: 600; }
.chart-info .song { color: #555; font-size: 13px; }

/* Moderators */
.mod-card { text-align: center; }
.mod-card .mod-photo { width: 120px; height: 120px; border-radius: 50%; background: #ddd; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cal-header { background: #1a73e8; color: #fff; padding: 8px; text-align: center; font-weight: 600; font-size: 13px; }
.cal-day { padding: 10px; min-height: 80px; font-size: 13px; border: 1px solid #f0f0f0; }
.cal-day .day-num { font-weight: 600; margin-bottom: 4px; }
.cal-day .event-dot { background: #d93025; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; display: inline-block; margin-top: 2px; cursor: pointer; }
.cal-day.other-month { background: #f8f8f8; color: #ccc; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid #e0e0e0; }
.tab { padding: 10px 20px; font-size: 14px; background: none; border: none; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.tab.active { color: #1a73e8; border-bottom-color: #1a73e8; font-weight: 600; }

/* Filters */
.filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-family: inherit; }
.filter-btn.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-overlay.hidden { display: none; }
.modal { background: #fff; border-radius: 8px; padding: 32px; max-width: 440px; width: 90%; text-align: center; }
.modal h3 { margin-bottom: 12px; }
.modal p { color: #555; margin-bottom: 20px; font-size: 14px; }
.modal .btn { margin: 0 6px; }

/* Premium blur */
.premium-blur { position: relative; }
.premium-blur .blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.premium-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.7); border-radius: 8px; }
.premium-overlay p { font-weight: 600; font-size: 16px; margin-bottom: 12px; }

/* Poll results */
.poll-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.poll-bar .label { width: 140px; font-size: 13px; text-align: right; }
.poll-bar .bar-wrap { flex: 1; background: #eee; border-radius: 4px; height: 24px; overflow: hidden; }
.poll-bar .bar-fill { height: 100%; background: #1a73e8; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 11px; color: #fff; font-weight: 600; }

/* Video overlay */
.video-thumb { position: relative; cursor: pointer; }
.video-thumb .play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: rgba(0,0,0,.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }

/* Jukebox */
.jukebox-btn { width: 200px; height: 200px; border-radius: 50%; background: #d93025; color: #fff; font-size: 22px; font-weight: 700; border: 6px solid #b71c1c; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; margin: 30px auto; }
.jukebox-btn.active { animation: jukebox-pulse 1s infinite; }
@keyframes jukebox-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.jukebox-btn:disabled { background: #999; border-color: #777; animation: none; }

/* Countdown */
.countdown { font-size: 32px; font-weight: 700; color: #d93025; text-align: center; margin: 16px 0; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { background: #222; color: #aaa; padding: 40px 0 100px; font-size: 13px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.lock-icon::before { content: "🔒 "; }

/* Station switcher */
.station-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.station-switcher select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}
.station-switcher label {
  font-size: 12px;
  color: #666;
}

/* Module disabled overlay */
.module-disabled-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-disabled-msg {
  text-align: center;
  padding: 40px;
}
.module-disabled-msg h2 {
  margin-bottom: 12px;
  color: #333;
}
.module-disabled-msg p {
  margin-bottom: 24px;
  color: #666;
}

/* Responsive basics */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-nav { display: none; }
  .header-show { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-slide { padding: 30px 20px; }
  .carousel-slide h2 { font-size: 20px; }
}
