* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f5f5;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.preview-container {
    width: 100%;
    max-width: 375px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.banner-section {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    background: #e5e5e5;
}

.channel-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    text-align: center;
}

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

.avatar-container {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.channel-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d5d5d5, #eeeeee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 24px;
}

.channel-name {
    font-size: 18px;
    font-weight: 500;
    color: #111;
}

.video-section {
    padding: 16px;
}

.video-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.thumbnail-container {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.video-thumbnail {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    object-fit: cover;
    display: none;
}

.thumbnail-placeholder {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    text-align: center;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

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

.video-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    line-height: 1.3;
    margin-bottom: 4px;
}

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

.file-input {
    display: none;
}

.device-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.device-toggle {
    background: #ddd;
    color: #111;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    font-family: "Outfit", sans-serif;
}

.device-toggle.active {
    background: #ff0000;
    color: #fff;
}

.device-info {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.banner-section:hover .banner-placeholder,
.avatar-container:hover .avatar-placeholder,
.thumbnail-container:hover .thumbnail-placeholder {
    background: linear-gradient(135deg, #d0d0d0, #e0e0e0);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.desktop-mode .preview-container {
    max-width: 1200px;
}

.desktop-mode .banner-section {
    height: 200px;
}

.desktop-mode .channel-info {
    padding: 24px;
    gap: 16px;
}

.desktop-mode .channel-avatar,
.desktop-mode .avatar-placeholder {
    width: 80px;
    height: 80px;
}

.desktop-mode .avatar-placeholder {
    font-size: 28px;
}

.desktop-mode .channel-name {
    font-size: 24px;
}

.desktop-mode .video-section {
    padding: 24px;
}

.desktop-mode .video-thumbnail,
.desktop-mode .thumbnail-placeholder {
    width: 320px;
    height: 180px;
}

.desktop-mode .video-title {
    font-size: 16px;
}

@media (max-width: 400px) {
    body {
        padding: 10px;
    }

    .preview-container {
        max-width: 100%;
    }

    .banner-section {
        height: 100px;
    }

    .channel-info {
        padding: 12px;
        gap: 10px;
    }

    .channel-avatar,
    .avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .avatar-placeholder {
        font-size: 20px;
    }

    .channel-name {
        font-size: 16px;
    }

    .video-section {
        padding: 12px;
    }

    .video-thumbnail,
    .thumbnail-placeholder {
        width: 140px;
        height: 79px;
    }

    .thumbnail-placeholder {
        font-size: 10px;
    }
}

@media (prefers-color-scheme: dark) {

    body {
        background-color: #0f0f0f;
        color: #fff;
    }

    .preview-container {
        background: #0f0f0f;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }

    .banner-section {
        background: #1a1a1a;
    }

    .banner-placeholder,
    .thumbnail-placeholder {
        background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
        color: #777;
    }

    .channel-info {
        border-bottom: 1px solid #333;
    }

    .avatar-placeholder {
        background: linear-gradient(135deg, #444, #666);
        color: #777;
    }

    .channel-name,
    .video-title {
        color: #fff;
    }

    .video-meta,
    .device-info {
        color: #aaa;
    }

    .device-toggle {
        background: #333;
        color: #fff;
    }

    .video-duration {
        background: rgba(0,0,0,0.8);
    }

    .banner-section:hover .banner-placeholder,
    .avatar-container:hover .avatar-placeholder,
    .thumbnail-container:hover .thumbnail-placeholder {
        background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
    }
}

.desktop-toggle-btn-hide-for-mob {
    display: none;
}

@media (min-width: 769px) {
    .desktop-toggle-btn-hide-for-mob {
        display: inline-flex;
    }
}