:root {
    --primary-color: #FF0000;
    --secondary-color: #282828;
    --bg-light: #f5f5f5;
}

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

body {
    background: var(--bg-light);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.top-header {
    background: white;
    padding: 1.25rem 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1.5rem;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 1.5rem;
    }
}

.total-subscribers {
    background: white;
    margin: 2rem 0 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.stat-item:hover {
    background-color: #f9f9f9;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #fff4e6;
    color: #ff5100;
}

.stat-icon.channels {
    background: #fff4e6;
    color: #ff5100;
}

.stat-icon.subscribers {
    background: #fff4e6;
    color: #ff5100;
}

.stat-icon.views {
    background: #fff4e6;
    color: #ff5100;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

.channels-grid {
    margin: 2rem 0;
}

.channels-grid .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .channels-grid .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .channels-grid .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

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

.channel-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    height: 100%;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.channel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.channel-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.channel-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: #f1f1f1;
    border-radius: 30px;
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.subscriber-count {
    text-align: left;
    padding: 0;
    margin-top: 0.5rem;
    border-top: none;
}

.subscriber-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.view-count {
    text-align: left;
    padding: 0;
    margin-top: 0.75rem;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-count-number {
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-count-number i {
    color: #888;
    font-size: 0.875rem;
}

.loading-spinner {
    display: inline-block;
    margin-right: 0.5rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.error-message {
    background: #dc3545;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}