@layer pages {
/* ===== CSS inline migrado da Fase 3 ===== */

/* Migrado de templates/channels.html */
.channel-list-full {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .channel-card-list {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        background: var(--bg-secondary);
        border-radius: 12px;
        border: 1px solid var(--border);
        text-decoration: none;
        color: var(--text);
        transition: transform 0.2s, border-color 0.2s;
    }

    .channel-card-list:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
    }

    .channel-card-list .avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .channel-meta {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        overflow: hidden;
    }

    .channel-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .channel-stats {
        font-size: 0.85rem;
        color: var(--muted);
    }

    .channel-desc {
        font-size: 0.85rem;
        color: var(--muted);
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

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

    @media (width <= 600px) {
        .channel-list-full {
            grid-template-columns: 1fr;
        }

        .channel-card-list .avatar {
            width: 60px;
            height: 60px;
        }
    }

.channels-page__back-link-flex-layout {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Migrado de templates/channels_by_country.html */
.page-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .breadcrumb {
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: var(--text-secondary, #a0a0a0);
    }

    .breadcrumb a {
        color: var(--primary-color, #6366f1);
        text-decoration: none;
    }

    .breadcrumb a:hover {
        text-decoration: underline;
    }

    .section-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        font-size: 2rem;
    }

    .country-flag-header {
        font-size: 2.5rem;
    }

    /* Grid de 3 colunas para canais por país */
    .channels-country-page .channel-list-full {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }

    @media (width <= 1024px) {
        .channels-country-page .channel-list-full {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (width <= 640px) {
        .channels-country-page .channel-list-full {
            grid-template-columns: 1fr;
        }
    }

    .channels-country-page .channel-list-full .channel-card-list {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        background: var(--card-bg, #1a1a2e);
        border-radius: 12px;
        border: 1px solid var(--border-color, rgb(255 255 255 / 10%));
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .channels-country-page .channel-list-full .channel-card-list:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
    }

    .channels-country-page .channel-list-full .avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
        border-radius: 50%;
    }

    .channels-country-page .channel-list-full .channel-meta {
        text-align: center;
    }

    .channels-country-page .channel-list-full .channel-title {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .channels-country-page .channel-list-full .channel-stats {
        font-size: 0.85rem;
        color: var(--text-secondary, #a0a0a0);
        margin-bottom: 0.5rem;
    }

    .channels-country-page .channel-list-full .channel-desc {
        font-size: 0.85rem;
        color: var(--text-secondary, #a0a0a0);
        line-height: 1.4;
    }

    .back-link {
        text-align: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color, rgb(255 255 255 / 10%));
    }

/* Migrado de templates/channels_countries.html */
.countries-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .country-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        background: var(--card-bg, #1a1a2e);
        border-radius: 12px;
        border: 1px solid var(--border-color, rgb(255 255 255 / 10%));
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .country-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
        border-color: var(--primary-color, #6366f1);
    }

    .country-flag-large {
        font-size: 3rem;
        line-height: 1;
    }

    .country-info {
        flex: 1;
    }

    .country-info .country-name {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 0.25rem;
        color: var(--text-primary, #fff);
    }

    .country-count {
        font-size: 0.9rem;
        color: var(--text-secondary, #a0a0a0);
        margin: 0;
    }

    .page-header .section-title {
        font-size: 2rem;
    }

@media (width <= 768px) {
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .country-card {
        padding: 16px;
    }

    .country-card .country-flag {
        font-size: 32px;
    }
}

@media (width <= 480px) {
    .channels-grid,
    .countries-grid {
        grid-template-columns: 1fr;
    }
}
}
