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

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

:root {
    --primary: #880e4f;
    --accent: #e91e63;
    --bg-light: #fce4ec;
    --text-dark: #4a148c;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-600: #757575;
    --gray-800: #424242;
    --shadow-sm: 0 2px 8px rgba(136, 14, 79, 0.12);
    --shadow-md: 0 8px 24px rgba(136, 14, 79, 0.16);
    --shadow-lg: 0 16px 48px rgba(136, 14, 79, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Ma Shan Zheng', cursive;
}

.logo-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 26px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

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

.main-nav {
    display: flex;
    gap: 4px;
}

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

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

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

/* ============ Permanent Free Badge ============ */
.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6f00, #ff3d00);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 61, 0, 0.4);
    animation: pulse 2s infinite;
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 4px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.hero-feature span {
    font-size: 20px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff3d00);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.5);
}

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

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

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

.section-title .free-badge {
    margin-bottom: 12px;
}

.section-title h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 36px;
    color: var(--primary);
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Channel Cards ============ */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.channel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.channel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.channel-card .card-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.channel-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-size='40' fill='rgba(255,255,255,0.2)'%3E📺%3C/text%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.5;
}

.channel-card .card-image .channel-icon {
    font-size: 48px;
    position: relative;
    z-index: 2;
}

.channel-card .live-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f44336;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.channel-card .live-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.channel-card .free-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6f00, #ff3d00);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
}

.channel-card .card-body {
    padding: 20px;
}

.channel-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.channel-card .channel-desc {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.channel-card .channel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-600);
}

.channel-card .watch-btn {
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.channel-card .watch-btn:hover {
    background: var(--accent);
}

/* ============ Category Filter ============ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

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

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

.program-table th {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.program-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.program-table tr:hover {
    background: var(--bg-light);
}

.program-table .time-cell {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.program-table .live-now {
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
}

.program-table .live-tag {
    display: inline-block;
    background: #f44336;
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
    animation: blink 1s infinite;
}

/* ============ Promise Section ============ */
.promise-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 72px 0;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.promise-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.promise-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}

.promise-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.promise-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.promise-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ============ Live Section ============ */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.live-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

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

.live-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #212121 0%, #424242 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.live-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.live-screen .screen-icon {
    font-size: 72px;
    opacity: 0.4;
}

.live-screen .live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f44336;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-screen .live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.live-screen .viewer-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: var(--white);
    font-size: 13px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
}

.live-card .card-body {
    padding: 20px;
}

.live-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.live-card .current-show {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.live-card .watch-now {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), #ff3d00);
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.live-card .watch-now:hover {
    transform: scale(1.02);
}

/* ============ About Page ============ */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.about-hero h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    box-shadow: var(--shadow-md);
}

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

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.team-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-card .desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============ Contact Page ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-info h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

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

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ Footer ============ */
.site-footer {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-col h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 16px;
}

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

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

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

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-col .contact-line {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

/* ============ Responsive ============ */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .story-section {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-features {
        gap: 16px;
    }

    .hero-feature {
        font-size: 14px;
        padding: 8px 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-col ul {
        display: inline-block;
        text-align: left;
    }

    .contact-info,
    .contact-form {
        padding: 24px;
    }

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

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-sub {
        display: none;
    }

    .hero-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .channel-grid,
    .live-grid {
        grid-template-columns: 1fr;
    }
}