:root {
  --bg: #0f1115;
  --bg-soft: #151820;
  --panel: #1e1e24;
  --panel-strong: #20242d;
  --field: #171a20;
  --accent: #e63946;
  --accent-strong: #ff5a67;
  --accent-soft: rgba(230, 57, 70, 0.18);
  --text: #ffffff;
  --muted: #a0aec0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 57, 70, 0.16), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(230, 57, 70, 0.1), transparent 26%),
    linear-gradient(180deg, #121212 0%, #0f1115 55%, #090b0f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.38;
  pointer-events: none;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

.shell {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

main {
  padding: 6.25rem 0 0;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(15, 17, 21, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-primary {
  color: var(--text);
}

.brand-accent {
  color: var(--accent);
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.topnav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  background: rgba(230, 57, 70, 0.12);
  transform: translateY(-1px);
}

.hero,
.schedule-section,
.about-section,
.contact-section {
  padding: 2.2rem 0 0;
}

.hero {
  display: grid;
  gap: 1.6rem;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-tag,
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.hero-copy p,
.section-heading p,
.schedule-description,
.schedule-subtitle,
.stat-card p,
.player-note,
.meta-subtitle,
.field span,
.form-status,
.contact-detail span,
.contact-detail p {
  color: var(--muted);
}

.hero-copy p {
  margin: 1rem auto 0;
  max-width: 46rem;
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(230, 57, 70, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.button-block {
  width: 100%;
}

.player-card,
.schedule-item,
.stat-card,
.contact-form,
.contact-card {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(30, 30, 36, 0.96), rgba(20, 23, 29, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 1rem;
}

.player-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    radial-gradient(circle at 50% 12%, rgba(230, 57, 70, 0.18), transparent 32%),
    linear-gradient(180deg, #171a20 0%, #090b0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.player-screen::before {
  content: "THAMIL TV LIVE";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  z-index: -1;
}

#live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.player-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  pointer-events: none;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.player-center-action {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 9rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(15, 17, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.player-center-action:hover,
.player-center-action:focus-visible {
  transform: translate(-50%, calc(-50% - 2px));
  background: rgba(20, 23, 29, 0.86);
}

.player-center-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(230, 57, 70, 0.24);
}

.player-center-icon svg,
.player-control svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.player-center-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.player-center-text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-screen.is-playing:not(.is-muted) .player-center-action {
  opacity: 0;
  pointer-events: none;
}

.player-screen.is-playing .icon-play,
.player-screen.is-paused .icon-pause {
  display: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.08), rgba(9, 11, 15, 0.22) 48%, rgba(9, 11, 15, 0.8)),
    linear-gradient(90deg, rgba(9, 11, 15, 0.42), transparent 48%);
  pointer-events: none;
}

.player-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-top: auto;
}

.overlay-copy {
  max-width: min(92%, 24rem);
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(15, 17, 21, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.player-status,
.player-hint {
  margin: 0;
}

.player-status {
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}

.player-hint {
  margin-top: 0.35rem;
  line-height: 1.6;
}

.player-screen.is-unmuted .player-hint {
  color: rgba(255, 255, 255, 0.72);
}

.player-eq {
  display: inline-flex;
  align-items: end;
  gap: 0.3rem;
  height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.player-eq span {
  width: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(255, 255, 255, 0.8));
  animation: eq-bounce 1.1s ease-in-out infinite;
}

.player-eq span:nth-child(1) {
  height: 28%;
  animation-delay: 0s;
}

.player-eq span:nth-child(2) {
  height: 78%;
  animation-delay: 0.14s;
}

.player-eq span:nth-child(3) {
  height: 48%;
  animation-delay: 0.28s;
}

.player-eq span:nth-child(4) {
  height: 86%;
  animation-delay: 0.42s;
}

.player-eq span:nth-child(5) {
  height: 34%;
  animation-delay: 0.56s;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.92);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  z-index: 2;
  box-shadow: 0 10px 28px rgba(230, 57, 70, 0.35);
  animation: pulse-live 1.8s ease-in-out infinite;
}

.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--text);
}

.player-controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
  margin-top: auto;
  pointer-events: auto;
}

.player-controls-main,
.player-controls-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.player-control {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.player-control:hover,
.player-control:focus-visible {
  transform: translateY(-1px);
  background: rgba(24, 28, 35, 0.9);
  border-color: rgba(230, 57, 70, 0.22);
}

.player-control-link {
  text-decoration: none;
}

.player-live-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.24);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.player-meta article {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.player-meta strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.meta-subtitle {
  display: block;
  margin-top: 0.3rem;
  line-height: 1.55;
}

.player-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.2rem 0.2rem 0;
}

.player-note {
  margin: 0;
  line-height: 1.65;
}

.stream-link {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.24);
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.stream-link:hover,
.stream-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(230, 57, 70, 0.18);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.section-heading h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  max-width: 12ch;
}

.section-heading p {
  max-width: 34rem;
  line-height: 1.75;
}

.schedule-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.4rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
}

.schedule-item.current {
  border-color: rgba(230, 57, 70, 0.38);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(230, 57, 70, 0.14),
    0 0 36px rgba(230, 57, 70, 0.12);
}

.schedule-time {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.schedule-title {
  margin: 0;
  font-size: 1.22rem;
}

.schedule-subtitle,
.schedule-description {
  margin: 0.22rem 0 0;
  line-height: 1.6;
}

.schedule-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.26);
  color: var(--accent-strong);
}

.stats-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 1.4rem;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
}

.stat-card span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1.02rem;
}

.stat-card p {
  margin: 0.45rem 0 0;
  line-height: 1.7;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.contact-form,
.contact-card {
  padding: 1.3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--field);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(160, 174, 192, 0.72);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(230, 57, 70, 0.52);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  line-height: 1.6;
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-detail {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--accent-strong);
}

.footer {
  padding: 2.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.social-links {
  display: inline-flex;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
  border-color: rgba(230, 57, 70, 0.28);
  transform: translateY(-2px);
}

.reveal {
  animation: reveal-up 620ms ease both;
}

.player-card.reveal {
  animation-delay: 120ms;
}

@keyframes pulse-live {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(230, 57, 70, 0.35);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 14px 34px rgba(230, 57, 70, 0.5);
  }
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.74;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .section-heading,
  .contact-grid,
  .player-meta,
  .player-links {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2 {
    max-width: none;
  }

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

  .player-links {
    display: grid;
  }

  .player-copy,
  .player-controls {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .schedule-section,
  .about-section,
  .contact-section {
    padding-top: 1.8rem;
  }

  .player-card,
  .schedule-item,
  .stat-card,
  .contact-form,
  .contact-card {
    border-radius: 24px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .status-pill {
    min-width: 0;
  }

  .player-header {
    align-items: start;
    flex-direction: column;
  }

  .player-controls-main,
  .player-controls-side {
    width: 100%;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(1120px, calc(100% - 1rem));
  }

  main {
    padding-top: 6.6rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .player-card {
    padding: 0.8rem;
  }

  .player-overlay,
  .overlay-copy,
  .player-meta article,
  .contact-form,
  .contact-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .player-overlay {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .player-control,
  .player-live-state {
    width: 100%;
    justify-content: center;
  }

  .player-center-action {
    min-width: 8.25rem;
    padding: 0.9rem 1rem;
  }

  .player-center-icon {
    width: 3rem;
    height: 3rem;
  }

  .section-heading p,
  .hero-copy p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
