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

body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #0f0f0f;
    color: #fff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #212121;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: -1px;
}

.channel-header {
    max-width: 1284px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.channel-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 150px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #3f3f3f;
}

.channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.channel-details h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.channel-stats {
    color: #aaa;
    font-size: 14px;
}

.subscribe-btn {
    margin-left: auto;
    padding: 10px 16px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.subscribe-btn:hover {
    background-color: #ff0000;
}

.content {
    max-width: 1284px;
    margin: 0 auto;
    padding: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.02);
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #3f3f3f;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

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

.video-info {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.video-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    flex-shrink: 0;
}

.video-details h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: #aaa;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.close:hover {
    color: #fff;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-size: 20px;
    font-weight: 500;
    margin: 16px 0;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ff4444;
}

.more-videos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.more-videos-message p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 16px;
}

.channel-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #cc0000;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.channel-link:hover {
    background-color: #ff0000;
}
