:root {
  --color-primary: #0D3B4E;
  --color-primary-light: #155872;
  --color-primary-dark: #072734;
  --color-accent: #D4AF37;
  --color-accent-light: #E9C46A;
  --color-accent-dark: #B8941E;

  --color-bg: #0A0F13;
  --color-bg-alt: #111820;
  --color-surface: #141F29;
  --color-surface-2: #1A2834;
  --color-border: rgba(212, 175, 55, 0.14);
  --color-border-strong: rgba(212, 175, 55, 0.32);

  --color-text: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.38);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 10px 40px -10px rgba(212, 175, 55, 0.35);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.35);

  --container: 1200px;
  --player-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(13, 59, 78, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 35%),
    linear-gradient(180deg, var(--color-bg) 0%, #080C0F 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 16px);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 1.8s ease-in-out infinite;
}

.topbar__text {
  letter-spacing: 0.01em;
}

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  transition: all 0.25s ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover {
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.social-btn--tiktok:hover {
  color: #fff;
  background: linear-gradient(135deg, #00F2EA, #FF0050);
  border-color: transparent;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(13, 59, 78, 0.96) 0%, rgba(7, 39, 52, 0.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3), var(--shadow-glow);
  flex-shrink: 0;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-primary);
}

.brand__logo.is-fallback::after {
  content: 'RM';
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 22px;
}

.brand__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.brand__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.header__live {
  display: flex;
  align-items: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  backdrop-filter: blur(8px);
}

.live-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 rgba(255, 77, 79, 0.7);
  animation: livePulse 1.4s ease-out infinite;
}

.live-badge__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff9b9b;
}

.hero {
  padding: 44px 0 32px;
  position: relative;
}

.hero__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 59, 78, 0.92) 0%, rgba(21, 88, 114, 0.7) 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  position: relative;
  min-height: 360px;
}

.hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.18), transparent 45%);
  pointer-events: none;
}

.hero__content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: flex-start;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.hero__description {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.6;
}

.hero__schedule {
  display: flex;
  gap: 0;
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: flex-start;
  border: 1px solid var(--color-border);
}

.schedule-item {
  padding: 14px 26px;
  background: rgba(10, 15, 19, 0.55);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}

.schedule-item--alt {
  background: rgba(13, 59, 78, 0.55);
  border-left: none;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero__image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(21, 88, 114, 0.92) 0%, rgba(13, 59, 78, 0.4) 40%, transparent 100%);
}

.hero__image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.player-section {
  padding: 16px 0 56px;
}

.section-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin: 0 0 28px 12px;
  padding-left: 18px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
}

.player-card {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  opacity: 0.7;
}

.player-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-meta__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(13, 59, 78, 0.35));
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.player-meta__icon svg {
  width: 26px;
  height: 26px;
}

.player-meta__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.player-meta__quality {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.btn-reload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(13, 59, 78, 0.55);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-reload svg {
  width: 16px;
  height: 16px;
}

.btn-reload:hover {
  background: var(--color-primary);
  border-color: var(--color-border-strong);
  color: var(--color-accent-light);
}

.btn-reload:hover svg {
  animation: spin 0.8s ease;
}

.player-card__status {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(10, 15, 19, 0.55);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-dim);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.status-indicator.is-live {
  background: #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

.status-indicator.is-loading {
  background: #EAB308;
  animation: spin 1s linear infinite;
  border-radius: 2px;
}

.status-indicator.is-error {
  background: #EF4444;
}

.status-text {
  color: var(--color-text-muted);
}

.status-text.is-live {
  color: #86EFAC;
}

.status-text.is-error {
  color: #FCA5A5;
}

.footer {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #051A24 100%);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px 36px;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer__logo {
  width: 54px;
  height: 54px;
}

.footer__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer__location {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  font-size: 15px;
}

.footer__link svg {
  width: 18px;
  height: 18px;
  color: #25D366;
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links a::before {
  content: '›';
  color: var(--color-accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-text);
  padding-left: 4px;
}

.footer__links a:hover::before {
  transform: translateX(3px);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
}

.player-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(13, 59, 78, 0.96) 0%, rgba(7, 39, 52, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  height: var(--player-h);
}

.player-sticky::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.player-sticky__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 24px;
}

.player-sticky__info {
  flex: 1;
  min-width: 0;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.now-playing__icon {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.now-playing.is-playing .now-playing__icon {
  opacity: 1;
}

.now-playing__icon span {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
  border-radius: 999px;
  height: 25%;
}

.now-playing.is-playing .now-playing__icon span:nth-child(1) {
  animation: eq 0.9s -0.3s ease-in-out infinite;
}

.now-playing.is-playing .now-playing__icon span:nth-child(2) {
  animation: eq 0.9s -0.1s ease-in-out infinite;
}

.now-playing.is-playing .now-playing__icon span:nth-child(3) {
  animation: eq 0.9s -0.5s ease-in-out infinite;
}

.now-playing.is-playing .now-playing__icon span:nth-child(4) {
  animation: eq 0.9s -0.7s ease-in-out infinite;
}

.now-playing__label {
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.now-playing__title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.player-sticky__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-border-strong);
  color: var(--color-accent-light);
}

.ctrl-btn--play {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary-dark);
  border: none;
  box-shadow: var(--shadow-gold), 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.ctrl-btn--play:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-primary-dark);
  transform: scale(1.05);
  border: none;
}

.ctrl-btn--play svg {
  width: 22px;
  height: 22px;
}

.ctrl-btn--play .icon-play {
  margin-left: 2px;
}

.volume-wrap {
  position: relative;
  width: 120px;
  height: 24px;
  display: flex;
  align-items: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
  cursor: pointer;
}

.volume-slider__fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 80%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 999px;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.12); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(255, 77, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes eq {
  0%, 100% { height: 25%; }
  50% { height: 95%; }
}

@media (max-width: 960px) {
  .hero__card {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 40px 32px;
  }

  .hero__image {
    min-height: 220px;
  }

  .hero__image img {
    min-height: 220px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --player-h: 148px;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 20px;
  }

  .header__inner {
    padding: 14px 16px;
  }

  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__title {
    font-size: 20px;
  }

  .brand__subtitle {
    font-size: 11px;
  }

  .live-badge {
    padding: 8px 14px;
  }

  .live-badge__text {
    font-size: 11px;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero__content {
    padding: 32px 22px;
    gap: 16px;
  }

  .hero__schedule {
    flex-direction: column;
    width: 100%;
  }

  .schedule-item {
    text-align: center;
  }

  .schedule-item--alt {
    border-top: 1px solid var(--color-border);
  }

  .player-card {
    padding: 22px 18px;
  }

  .player-card__header {
    align-items: flex-start;
  }

  .player-meta {
    gap: 12px;
  }

  .player-meta__icon {
    width: 44px;
    height: 44px;
  }

  .player-meta__title {
    font-size: 15px;
  }

  .btn-reload {
    padding: 10px 16px;
    font-size: 12px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .player-sticky__inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .player-sticky__info {
    width: 100%;
  }

  .now-playing__title {
    max-width: 100%;
  }

  .volume-wrap {
    width: 90px;
  }

  .player-sticky__controls {
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .ctrl-btn--play {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .section-title {
    margin: 0 0 20px 8px;
  }

  .topbar__socials {
    gap: 6px;
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }
}
