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

:root {
  --cmg-dark: #151313;
  --cmg-gold: #fcb21d;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --text: var(--white);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.44);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --net-logo: 210px;
  --ch-logo: 130px;
  --logo-outline: rgba(255, 255, 255, 0.18);
  --logo-outline-active: #fcb21d;
  --logo-glow: rgba(252, 178, 29, 0.45);
  --font-sans: 'Karla', sans-serif;
  --font-serif: 'Rufina', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background: #050a1b;
  color: var(--text);
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* full-page landing background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #050a1b;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/back-02.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 32, 0.72) 0%, rgba(5, 12, 32, 0.42) 45%, rgba(5, 12, 32, 0.78) 100%);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wrap > .brand,
.wrap > .section-label,
.wrap > .networks,
.wrap > .panel {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.brand {
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
  padding: 0 6px;
  overflow: visible;
  animation: rise 0.7s var(--ease) both;
}

.brand h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.1em 0.28em 0.1em 0.12em;
  overflow: visible;
  text-wrap: balance;
  background: linear-gradient(
    105deg,
    #c48a12 0%,
    var(--cmg-gold) 22%,
    #ffe08a 42%,
    var(--white) 50%,
    #ffe08a 58%,
    var(--cmg-gold) 78%,
    #c48a12 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 4.5s ease-in-out infinite;
}

.brand .tagline {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  animation: rise 0.7s var(--ease) 0.04s both;
}

.brand .tagline::before,
.brand .tagline::after {
  content: '';
  width: min(52px, 11vw);
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--cmg-gold));
  opacity: 0.9;
}

.brand .tagline::after {
  background: linear-gradient(90deg, var(--cmg-gold), transparent);
}

.brand .tagline span,
.brand p:not(.tagline) {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.4;
}

.section-label {
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 3.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  animation: rise 0.7s var(--ease) 0.06s both;
}

/* mtv / mbc row */
.networks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-bottom: 8px;
  animation: rise 0.7s var(--ease) 0.1s both;
}

.logo-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--net-logo);
  color: var(--text-dim);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
  user-select: none;
}

.logo-btn:hover,
.logo-btn:focus-visible {
  transform: translateY(-4px);
  color: var(--text-soft);
  outline: none;
}

.logo-btn:active { transform: scale(0.97); }

.logo-btn.active {
  color: var(--cmg-gold);
  transform: translateY(-2px);
}

.logo-slot,
.ch-slot {
  width: var(--net-logo);
  height: var(--net-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--logo-outline);
  background: transparent;
  padding: 10px;
  position: relative;
  isolation: isolate;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.ch-slot {
  width: var(--ch-logo);
  height: var(--ch-logo);
  border-radius: 18px;
  padding: 8px;
}

.logo-slot.has-img::after,
.ch-slot.has-img::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.14) 42%,
    transparent 100%
  );
}

.logo-slot.has-img,
.ch-slot.has-img {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.logo-btn:hover .logo-slot,
.ch-btn:hover .ch-slot {
  border-color: rgba(255, 255, 255, 0.34);
}

.logo-btn:hover .logo-slot.has-img::after,
.ch-btn:hover .ch-slot.has-img::after {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.17) 42%,
    transparent 100%
  );
}

.logo-btn.active .logo-slot {
  border: 2px solid var(--logo-outline-active);
  box-shadow:
    0 0 0 1px rgba(252, 178, 29, 0.25),
    0 0 20px rgba(252, 178, 29, 0.28);
  background: transparent;
}

.logo-btn.active .logo-slot.has-img::after {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.16) 42%,
    transparent 100%
  );
}

.logo-btn.active img {
  filter: drop-shadow(0 0 10px rgba(252, 178, 29, 0.3));
}

.logo-slot img,
.ch-slot img {
  display: block;
  position: relative;
  z-index: 1;
  width: 84%;
  height: 84%;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  background: transparent;
  transform-origin: center center;
}

/* Per-logo visual balance — normalized to similar on-screen size */
.ch-btn[data-channel="sirasa"] .ch-slot img,
.ch-btn.active[data-channel="sirasa"] .ch-slot img {
  transform: scale(0.82);
}

.ch-btn[data-channel="tv1"] .ch-slot img,
.ch-btn.active[data-channel="tv1"] .ch-slot img {
  transform: scale(0.94);
}

.ch-btn[data-channel="shakthi"] .ch-slot img,
.ch-btn.active[data-channel="shakthi"] .ch-slot img {
  transform: scale(1.28);
}

.ch-btn[data-channel="shakthi-fm"] .ch-slot img,
.ch-btn.active[data-channel="shakthi-fm"] .ch-slot img {
  transform: scale(1.56);
}

.ch-btn[data-channel="sirasa-fm"] .ch-slot img,
.ch-btn.active[data-channel="sirasa-fm"] .ch-slot img {
  transform: scale(1.02);
}

.ch-btn[data-channel="y-fm"] .ch-slot img,
.ch-btn.active[data-channel="y-fm"] .ch-slot img {
  transform: scale(1.22);
}

.ch-btn[data-channel="yes-fm"] .ch-slot img,
.ch-btn.active[data-channel="yes-fm"] .ch-slot img {
  transform: scale(1.04);
}

.ch-btn[data-channel="legends"] .ch-slot img,
.ch-btn.active[data-channel="legends"] .ch-slot img {
  transform: scale(1.04);
}

.ch-btn.active[data-channel="sirasa"] .ch-slot img,
.ch-btn.active[data-channel="tv1"] .ch-slot img,
.ch-btn.active[data-channel="shakthi"] .ch-slot img,
.ch-btn.active[data-channel="shakthi-fm"] .ch-slot img,
.ch-btn.active[data-channel="sirasa-fm"] .ch-slot img,
.ch-btn.active[data-channel="y-fm"] .ch-slot img,
.ch-btn.active[data-channel="yes-fm"] .ch-slot img,
.ch-btn.active[data-channel="legends"] .ch-slot img {
  filter: drop-shadow(0 0 10px rgba(252, 178, 29, 0.3));
}

/* channel panel */
.panel {
  width: 100%;
  max-width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  animation: rise 0.35s var(--ease) both;
}

.panel.open {
  display: flex;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.panel-head {
  text-align: center;
  width: 100%;
  margin-bottom: 18px;
}

.panel-head h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cmg-gold);
  margin-bottom: 8px;
}

.panel-head p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
}

.channels {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 24px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.ch-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--ch-logo);
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  user-select: none;
}

.ch-btn:hover,
.ch-btn:focus-visible {
  transform: translateY(-3px);
  color: var(--text-soft);
  outline: none;
}

.ch-btn.active {
  color: var(--cmg-gold);
  transform: translateY(-2px);
}

.ch-btn.active .ch-slot {
  border: 2px solid var(--logo-outline-active);
  box-shadow:
    0 0 0 1px rgba(252, 178, 29, 0.25),
    0 0 18px rgba(252, 178, 29, 0.28);
  background: transparent;
}

.ch-btn.active .ch-slot.has-img::after {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.16) 42%,
    transparent 100%
  );
}

/* social links */
.socials {
  width: 100%;
  max-width: min(480px, 100%);
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 22px auto 0;
}

.socials.visible {
  display: flex;
  animation: rise 0.3s var(--ease) both;
}

.socials.swap-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.social-head {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.social-link.fb .social-icon { background: #1877F2; }
.social-link.ig .social-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.yt .social-icon { background: #FF0000; }
.social-link.x .social-icon { background: #000000; border: 1px solid rgba(255,255,255,0.15); }
.social-link.tt .social-icon { background: #000000; border: 1px solid rgba(255,255,255,0.12); }

.social-link.web .social-icon {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.social-link.web .social-icon svg {
  color: #ffffff;
  width: 19px;
  height: 19px;
}

.social-link.faq .social-icon {
  background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.32);
}

.social-link.faq .social-icon svg {
  color: #ffffff;
  width: 19px;
  height: 19px;
}

.social-link.fb { border-color: rgba(24, 119, 242, 0.4); }
.social-link.ig { border-color: rgba(225, 48, 108, 0.4); }
.social-link.yt { border-color: rgba(255, 0, 0, 0.4); }
.social-link.x { border-color: rgba(255, 255, 255, 0.22); }
.social-link.tt { border-color: rgba(37, 244, 238, 0.28); }
.social-link.web { border-color: rgba(37, 99, 235, 0.45); }
.social-link.faq { border-color: rgba(124, 58, 237, 0.4); }

.social-link.fb:hover { border-color: #1877F2; background: rgba(24, 119, 242, 0.12); }
.social-link.ig:hover { border-color: #E1306C; background: rgba(225, 48, 108, 0.1); }
.social-link.yt:hover { border-color: #FF0000; background: rgba(255, 0, 0, 0.1); }
.social-link.x:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }
.social-link.tt:hover { border-color: #25F4EE; background: rgba(37, 244, 238, 0.08); }
.social-link.web:hover { border-color: #2563eb; background: rgba(37, 99, 235, 0.12); }
.social-link.faq:hover { border-color: #7c3aed; background: rgba(124, 58, 237, 0.1); }

.social-link strong {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--white);
}

.social-arrow {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.social-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.social-link:hover .social-arrow,
.social-link:focus-visible .social-arrow {
  color: #fff;
  transform: translate(2px, -2px) scale(1.06);
}

.social-link:hover .social-arrow svg,
.social-link:focus-visible .social-arrow svg {
  transform: translate(1px, -1px);
}

.social-link.fb:hover .social-arrow { background: #1877F2; }
.social-link.ig:hover .social-arrow { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.yt:hover .social-arrow { background: #FF0000; }
.social-link.x:hover .social-arrow { background: #000; border: 1px solid rgba(255,255,255,0.25); }
.social-link.tt:hover .social-arrow { background: #25F4EE; color: #010101; }
.social-link.web:hover .social-arrow { background: #2563eb; color: #fff; }
.social-link.faq:hover .social-arrow { background: #7c3aed; color: #fff; }

footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 24px calc(24px + var(--safe-b));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.footer-line {
  width: min(420px, 58%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cmg-gold) 10%, var(--cmg-gold) 90%, transparent);
  opacity: 0.85;
}

footer p {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* desktop title one line */
@media (min-width: 1201px) {
  .wrap {
    max-width: 980px;
    padding: 64px 20px 48px;
  }

  .networks { gap: 24px; }

  .channels {
    gap: 24px 28px;
    max-width: 860px;
  }

  .brand h1 {
    font-size: 3.65rem;
    line-height: 1.08;
    white-space: nowrap;
    padding: 0.08em 0.34em 0.08em 0.14em;
  }

  .brand h1 br { display: none; }

  footer p { font-size: 0.9rem; }
  .footer-line { width: min(560px, 68%); }
}

/* tablet */
@media (max-width: 1200px) and (min-width: 601px) {
  .wrap {
    max-width: 100%;
    width: 100%;
    padding: calc(52px + var(--safe-t)) 40px 32px;
    min-height: calc(100dvh - 72px);
    justify-content: center;
    align-items: center;
  }

  .brand { margin-bottom: 36px; max-width: 920px; }
  .wrap.has-panel .brand { margin-bottom: 20px; }

  .brand h1 {
    font-size: clamp(3rem, 6.5vw, 4.1rem);
    line-height: 1.08;
  }

  .brand .tagline span {
    font-size: clamp(0.94rem, 2vw, 1.06rem);
  }

  .wrap.has-panel .brand .tagline { display: none; }

  .section-label {
    font-size: clamp(1.55rem, 3.5vw, 1.85rem);
    margin-bottom: 28px;
    max-width: 920px;
  }

  .wrap.has-panel .section-label {
    margin-bottom: 18px;
    font-size: 1.28rem;
  }

  .networks {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 36px;
    max-width: 920px;
  }

  .wrap.has-panel .networks {
    flex-direction: row;
    gap: 20px 28px;
  }

  .panel-head h2 { font-size: 1.65rem; }
  .panel-head p { font-size: 1.18rem; }

  .panel {
    margin-top: 28px;
    width: 100%;
    max-width: min(920px, 96%);
    align-self: center;
  }

  .channels {
    gap: 28px 36px;
    max-width: 920px;
  }

  .socials {
    max-width: min(680px, 92%);
    width: 100%;
    margin-top: 28px;
    gap: 12px;
  }

  .social-link strong { font-size: 1.02rem; }

  footer p { font-size: 0.88rem; }
  .footer-line { width: min(520px, 72%); }
}

/* phone */
@media (max-width: 600px) {
  .wrap {
    max-width: 100%;
    width: 100%;
    padding: calc(5vh + 16px + var(--safe-t)) 16px 20px;
    min-height: calc(100dvh - 56px);
    justify-content: center;
    align-items: center;
  }

  .wrap.has-panel {
    justify-content: center;
    align-items: center;
    min-height: calc(100dvh - 56px);
    padding-top: calc(3vh + 12px + var(--safe-t));
  }

  .wrap.has-socials {
    justify-content: center;
    align-items: center;
    min-height: calc(100dvh - 56px);
    padding-top: calc(20px + var(--safe-t));
  }

  .brand { margin-bottom: 22px; }
  .wrap.has-panel .brand { margin-bottom: 10px; }
  .wrap.has-panel .brand .tagline { display: none; }

  .brand h1 {
    font-size: clamp(2.05rem, 8.2vw, 2.55rem);
    line-height: 1.1;
  }

  .brand .tagline span {
    font-size: clamp(0.88rem, 3.2vw, 1rem);
  }

  .brand .tagline::before,
  .brand .tagline::after {
    width: min(28px, 7vw);
  }

  .section-label { font-size: clamp(1.32rem, 4.2vw, 1.48rem); margin-bottom: 28px; }
  .wrap.has-panel .section-label { margin-bottom: 10px; font-size: 1.08rem; }

  .networks {
    flex-direction: column;
    gap: 24px;
  }

  .wrap.has-panel .networks {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
  }

  .networks:not(:has(.logo-btn.active)) .logo-btn:first-child {
    position: relative;
    padding-bottom: 18px;
  }

  .networks:not(:has(.logo-btn.active)) .logo-btn:first-child::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cmg-gold), transparent);
  }

  .wrap.has-panel .networks .logo-btn:first-child { padding-bottom: 0; }
  .wrap.has-panel .networks .logo-btn:first-child::before { display: none; }

  .panel {
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
    align-self: center;
  }

  .wrap.has-panel .panel { margin-top: 14px; }

  .panel-head { margin-bottom: 16px; }
  .wrap.has-socials .panel-head { margin-bottom: 12px; }

  .networks,
  .section-label,
  .brand {
    align-self: center;
    width: 100%;
  }

  .channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 22px;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .wrap.has-socials .channels {
    gap: 16px 18px;
    padding: 0;
    margin-top: 6px;
  }

  .socials {
    max-width: min(420px, 94%);
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }

  .social-link { padding: 12px; gap: 12px; }
  .social-icon { width: 40px; height: 40px; }
  .social-arrow { width: 32px; height: 32px; }
  .social-link strong { font-size: 0.9rem; }
  .footer-line { width: min(320px, 70%); }
  footer { padding: 14px 20px calc(22px + var(--safe-b)); }
  footer p { font-size: 0.8rem; }

  .bg-image {
    background-position: center top;
  }

  .bg-grad {
    background: linear-gradient(
      180deg,
      rgba(5, 12, 32, 0.82) 0%,
      rgba(5, 12, 32, 0.55) 48%,
      rgba(5, 12, 32, 0.85) 100%
    );
  }
}

@media (max-width: 1200px) {
  .bg-image {
    background-position: center 18%;
  }
}

@media (max-width: 360px) {
  .brand h1 { font-size: 1.85rem; }
  .networks { gap: 20px; }
  .wrap.has-panel .networks { gap: 10px; }
}
