@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

:root {
  --primary: #6a1b9a;
  --primary-dark: #4a148c;
  --accent: #ce93d8;
  --bg-light: #f3e5f5;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #5c5c7a;
  --shadow-sm: 0 2px 8px rgba(106, 27, 154, 0.08);
  --shadow-md: 0 4px 16px rgba(106, 27, 154, 0.12);
  --shadow-lg: 0 8px 32px rgba(106, 27, 154, 0.18);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.logo-text {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--primary-dark);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-light);
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
}

/* Hero / Banner */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Section */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.section-header .line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Cards Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Channel / Program Card */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(106, 27, 154, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.card-badge.live {
  background: #e53935;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.card-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(106, 27, 154, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.card-footer .rating {
  color: #ffa726;
  font-weight: 600;
}

.card-footer .watch-btn {
  color: var(--primary);
  font-weight: 600;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tabs button {
  background: var(--bg-white);
  border: 2px solid var(--accent);
  color: var(--primary);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-tabs button:hover,
.filter-tabs button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  padding: 32px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid transparent;
}

.feature-card:hover {
  border-top-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table th,
.schedule-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(106, 27, 154, 0.06);
}

.schedule-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: rgba(106, 27, 154, 0.03);
}

.schedule-table .time {
  font-weight: 600;
  color: var(--primary);
  min-width: 100px;
}

.schedule-table .live-now {
  color: #e53935;
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.info-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.info-card .info-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--primary);
}

.info-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-item .stat-num {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card .team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.team-card .team-info {
  padding: 20px;
}

.team-card h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

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

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-brand .social {
  display: flex;
  gap: 12px;
}

.footer-brand .social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-brand .social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Live Player Section */
.player-hero {
  background: #0a0a1a;
  padding: 48px 0;
  color: white;
}

.player-box {
  background: #1a1a2e;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.player-video {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-video .play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.player-video .play-icon:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.player-video .live-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e53935;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-video .live-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

.player-info h3 {
  font-size: 22px;
  color: white;
  margin-bottom: 4px;
}

.player-info .channel-name {
  color: var(--accent);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .schedule-table th,
  .schedule-table td { padding: 10px 12px; font-size: 13px; }
  .player-info { flex-direction: column; align-items: flex-start; }
  .header-inner { position: relative; }
}

/* Utility */
.text-center { text-align: center; }
.text-purple { color: var(--primary); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }