/* M1600px.css - Large Desktop (1600px+) */

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #0f0f0f;
}

.container-fluid {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  overflow: hidden;
}

/* PLAYER AREA */
#player {
  flex: 3;
  background: #000;
  position: relative;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* POSTER OVERLAY */
#posterOverlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(20, 20, 20, 0.95);
  transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
}

#posterOverlay img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  pointer-events: none;
}

#posterOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* SIDEBAR */
#sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

/* KATEGORI */
#categories {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: #0f0f0f;
  padding: 10px 8px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #222;
}

#categories::-webkit-scrollbar {
  display: none;
}

.category {
  padding: 8px 12px;
  background: #222;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  color: #999;
  border: 1px solid #333;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 60px;
  max-width: 100px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category:hover {
  background: #333;
  border-color: #444;
  color: #fff;
}

.category.active {
  background: linear-gradient(90deg, #e91e63, #ff9800);
  color: #fff;
  border-color: #e91e63;
}

/* LIST CHANNEL */
#channelList {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  padding-bottom: 110px;
}

#channelList::-webkit-scrollbar {
  width: 8px;
}

#channelList::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

#channelList::-webkit-scrollbar-track {
  background: transparent;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.channel:hover {
  background: #2a2a2a;
  border-color: #555;
}

.channel.active {
  background: #2d1a2a;
  border: 2px solid #e91e63;
}

.channel img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  margin-right: 14px;
  object-fit: contain;
  background: #fff;
}

.channel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.channel-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-status {
  font-size: 9px;
  color: #999;
  margin-left: 10px;
}

.channel-status.live {
  color: #ff1744;
  font-weight: 600;
}

.channel-status.online {
  color: #4caf50;
  font-weight: 600;
}

/* BOTTOM BUTTONS */
.bottom-buttons {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding: 12px;
  background: #0f0f0f;
  border-top: 1px solid #222;
  z-index: 10;
}

.bottom-buttons button {
  flex: 1;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bottom-buttons button:hover {
  background: #333;
  border-color: #444;
}

#mobile-bottom-buttons {
  display: none !important;
}

.mobile-only {
  display: none !important;
}

/* COUNTDOWN STYLES */
.countdown-container {
  text-align: center;
  padding: 36px;
  max-width: 550px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
}

.countdown-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.countdown-labels {
  display: flex;
  justify-content: space-between;
  max-width: 450px;
  margin: 0 auto 12px;
}

.countdown-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
  font-weight: 500;
}

.countdown-digits {
  font-family: 'Poppins', monospace;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 3px;
}

.countdown-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.countdown-btn {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #222;
  color: white;
  border: 1px solid #333;
}

.btn-secondary {
  background: #333;
  color: white;
  border: 1px solid #444;
}

.countdown-btn:hover {
  background: #444;
}
