/* ================================================
   Content Pages Styles (Live TV, Movies, Series)
   ================================================ */

.content-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Page Hero */
.page-hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-hero-content {
    text-align: center;
    margin-bottom: 32px;
}

.page-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-hero-content h1 i {
    color: var(--accent-primary);
}

.page-hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 24px;
    transition: var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    padding: 24px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-reset {
    margin-left: auto;
}

/* EPG Section */
.epg-section {
    padding: 48px 0;
    background: var(--bg-primary);
}

.epg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.epg-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.epg-header h2 i {
    color: var(--accent-primary);
}

.epg-date-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.epg-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.epg-nav-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

#currentDate {
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.epg-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.epg-timeline {
    display: flex;
    padding: 16px 200px 16px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.epg-time {
    min-width: 120px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.epg-time.current {
    color: var(--accent-primary);
    font-weight: 600;
}

.epg-grid {
    max-height: 400px;
    overflow-y: auto;
}

.epg-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.epg-channel {
    min-width: 200px;
    max-width: 200px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.epg-channel-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-primary);
}

.epg-channel-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.epg-channel-quality {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 4px;
    font-weight: 700;
}

.epg-programs {
    display: flex;
    flex: 1;
    overflow-x: auto;
}

.epg-program {
    min-width: 150px;
    padding: 12px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition-fast);
}

.epg-program:hover {
    background: rgba(255, 255, 255, 0.03);
}

.epg-program.live {
    background: rgba(5, 150, 105, 0.05);
    border-left: 3px solid var(--accent-primary);
}

.epg-program-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epg-program-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Channels Section */
.channels-section {
    padding: 48px 0;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 10px 16px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    color: #000;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.channels-grid.list-view {
    grid-template-columns: 1fr;
}

.channel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.channel-preview {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.channel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.channel-quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.channel-info {
    padding: 16px;
}

.channel-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.channel-current {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* List View Styles */
.channels-grid.list-view .channel-card {
    display: flex;
    align-items: center;
}

.channels-grid.list-view .channel-preview {
    min-width: 200px;
    max-width: 200px;
    aspect-ratio: 16/9;
}

.channels-grid.list-view .channel-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 48px;
}

/* Mini CTA */
.mini-cta {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.mini-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-xl);
}

.mini-cta-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mini-cta-text p {
    color: var(--text-secondary);
}

/* Content Card (Movies/Series) */
.content-card-full {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.content-card-full:hover {
    transform: scale(1.03);
    z-index: 10;
}

.content-card-full .poster {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.content-card-full .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.content-card-full .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: var(--accent-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.content-card-full .badge.new {
    background: var(--accent-purple);
    color: #fff;
}

.content-card-full .info {
    padding: 16px;
}

.content-card-full .title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-full .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-card-full .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
}

/* Featured Section */
.featured-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.section-title-row {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-row i {
    color: var(--accent-primary);
}

.featured-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.featured-slider::-webkit-scrollbar {
    height: 6px;
}

.featured-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.featured-slider::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.featured-item {
    position: relative;
    min-width: 280px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.featured-overlay .badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 8px;
}

.featured-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-overlay .meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.featured-overlay .rating {
    color: #fbbf24;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Payment Section */
.payment-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.payment-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-icon i {
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.payment-icon span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .filters-wrapper {
        justify-content: flex-start;
    }

    .filter-reset {
        margin-left: 0;
        margin-top: 8px;
    }

    .epg-channel {
        min-width: 150px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 1.75rem;
    }

    .search-bar {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 12px;
    }

    .search-bar input {
        width: 100%;
        order: -1;
        padding: 8px 0;
    }

    .search-bar i {
        display: none;
    }

    .search-btn {
        flex: 1;
        margin-top: 8px;
    }

    .filters-wrapper {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .epg-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .mini-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

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

    .section-header-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}