/* ========================================================= */
/* IPHONE RADIO PLAYER WIDGET — HEARTBEAT.FM LANDING PAGE    */
/* Ultra-realistic iPhone frame with iOS Live Music Widget    */
/* ========================================================= */

.iphone-radio-container {
  position: fixed;
  right: 28px;
  bottom: 48px;
  width: 325px;
  height: 615px;
  background: #000000;
  border-radius: 46px;
  box-shadow: 
    0 0 0 3.5px #2c2c2e,
    0 0 0 5px #1c1c1e,
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(34, 197, 94, 0.18);
  padding: 12px;
  box-sizing: border-box;
  z-index: 100;
  display: none;
  flex-direction: column;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Outfit', sans-serif;
  animation: iphoneSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes iphoneSlideUp {
  0% { transform: translateY(80px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0px) scale(1); opacity: 1; }
}

/* Side Action & Volume Buttons on Outer Chassis */
.iphone-radio-container::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 110px;
  width: 3px;
  height: 48px;
  background: #3a3a3c;
  border-radius: 2px;
  box-shadow: 0 65px 0 #3a3a3c, 0 120px 0 #3a3a3c;
}

.iphone-radio-container::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 150px;
  width: 3px;
  height: 65px;
  background: #3a3a3c;
  border-radius: 2px;
}

/* Glass Screen Surface */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0e111a 0%, #05070d 100%);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dynamic Island */
.iphone-island-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 28px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.iphone-clock {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #ffffff;
}

.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: all 0.25s ease;
}

.iphone-island:hover {
  width: 130px;
  background: #0a0a10;
}

.island-camera-dot {
  width: 9px;
  height: 9px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 50%;
}

.island-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.island-bar {
  width: 2px;
  background: #22c55e;
  border-radius: 1px;
  animation: island-eq 0.8s infinite alternate;
}
.island-bar:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.island-bar:nth-child(2) { height: 10px; animation-delay: 0.3s; }
.island-bar:nth-child(3) { height: 6px; animation-delay: 0.2s; }

@keyframes island-eq {
  from { height: 3px; }
  to { height: 11px; }
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #ffffff;
}

/* Header & Tab Controls */
.iphone-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 12px;
}

.iphone-tab-pill-group {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2px;
}

.iphone-tab-pill {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 14px;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iphone-tab-pill.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.iphone-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.iphone-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Search Bar */
.iphone-search-wrapper {
  margin-bottom: 12px;
  position: relative;
}

.iphone-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px 12px 7px 30px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.iphone-search-input::placeholder {
  color: #71717a;
}

.iphone-search-input:focus {
  border-color: #22c55e;
  background: rgba(255, 255, 255, 0.12);
}

.iphone-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #71717a;
  pointer-events: none;
}

/* VIEW 1: NOW PLAYING VIEW */
.iphone-now-playing-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  padding-bottom: 4px;
}

/* Big Album / Station Art Card */
.iphone-art-card {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c1917, #0a0a0c);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.iphone-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-art-placeholder {
  font-size: 64px;
  animation: vinylSpin 14s linear infinite;
}

@keyframes vinylSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Station Details */
.iphone-track-meta {
  text-align: center;
  width: 100%;
  margin-top: 4px;
}

.iphone-station-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.iphone-station-dj {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.iphone-station-sub {
  font-size: 11px;
  color: #71717a;
  margin-top: 2px;
}

/* iOS Scrubber Timeline */
.iphone-scrubber-group {
  width: 100%;
  margin-top: 8px;
}

.iphone-scrubber-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.iphone-scrubber-fill {
  width: 65%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
}

.iphone-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #71717a;
  margin-top: 4px;
  font-weight: 500;
}

/* Playback Control Buttons */
.iphone-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin-top: 8px;
}

.iphone-ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.iphone-ctrl-btn:hover {
  transform: scale(1.1);
}

.iphone-ctrl-btn:active {
  transform: scale(0.95);
}

.iphone-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

.iphone-play-btn:hover {
  background: #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
}

/* Volume Slider Row */
.iphone-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 92%;
  margin-top: 10px;
}

.iphone-vol-icon {
  font-size: 12px;
  color: #71717a;
}

.iphone-vol-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.iphone-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* VIEW 2: STATIONS DIRECTORY VIEW */
.iphone-stations-view {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.iphone-station-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iphone-station-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateX(2px);
}

.iphone-station-card.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.iphone-station-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #181822;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.iphone-station-info {
  flex: 1;
  min-width: 0;
}

.iphone-station-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iphone-station-genre {
  font-size: 10px;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* VIEW 3: BROADCAST / GO LIVE VIEW INSIDE IPHONE */
.iphone-broadcast-view {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.iphone-broadcast-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iphone-broadcast-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.iphone-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iphone-field-label {
  font-size: 10px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.iphone-select-input, .iphone-text-input {
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 11px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.iphone-select-input:focus, .iphone-text-input:focus {
  border-color: #ff334b;
}

.iphone-live-btn {
  background: linear-gradient(135deg, #ff0044, #e51d24);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  padding: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(229, 29, 36, 0.4);
  transition: all 0.2s ease;
}

.iphone-live-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(229, 29, 36, 0.6);
}

.iphone-sub-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.iphone-sub-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.iphone-host-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(229, 29, 36, 0.15), rgba(15, 15, 24, 0.8));
  border: 1px dashed rgba(229, 29, 36, 0.4);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.iphone-host-card:hover {
  border-color: #ff334b;
  background: rgba(229, 29, 36, 0.25);
}

/* Home Indicator Bar at Bottom of iPhone */
.iphone-home-indicator {
  width: 110px;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  margin: 6px auto 0;
  opacity: 0.6;
}
