/* Base & Reset */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #09090b;
    --bg-card: #18181b;
    --bg-input: #27272a;

    --accent-primary: #f43f5e;
    /* Rose 500 */
    --accent-secondary: #3b82f6;
    /* Blue 500 */
    --accent-glow: rgba(244, 63, 94, 0.3);

    --text-main: #ffffff;
    --text-muted: #a1a1aa;

    --border: rgba(255, 255, 255, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(244, 63, 94, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideDown 0.8s ease-out;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Input Section */
.search-wrapper {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow-card);
    transition: all 0.3s ease;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 30px var(--accent-glow);
}

/* Turnstile Widget */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.cf-turnstile {
    transform-origin: center;
}

/* Platform Switcher */
.platform-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.15s backwards;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.platform-btn.active {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.platform-btn svg {
    width: 20px;
    height: 20px;
}

.input-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
}

.input-field::placeholder {
    color: #52525b;
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-primary), #e11d48);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: scale(1.02);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Result Card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.result-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

/* Cover Image */
.video-cover {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    outline: 2px solid var(--accent-secondary);
}

.author-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.author-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e4e4e7;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--bg-input);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Download Actions */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #3f3f46;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.action-btn.primary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.action-btn.primary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Gallery Section */
.image-gallery-section {
    margin-top: 30px;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.image-gallery-section.active {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-title svg {
    color: var(--accent-primary);
}

.image-count-badge {
    background: linear-gradient(135deg, var(--accent-primary), #e11d48);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.download-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-all-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: zoom-in;
    transition: transform 0.3s;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-slide .download-single-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.carousel-slide:hover .download-single-btn {
    opacity: 1;
    transform: translateY(0);
}

.download-single-btn:hover {
    background: var(--accent-primary);
}

/* Slide Download Button */
.slide-download-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-slide:hover .slide-download-btn {
    opacity: 1;
    transform: translateY(0);
}

.slide-download-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.slide-download-btn svg {
    stroke: white;
}

.carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.thumbnail-item.active {
    border-color: var(--accent-primary);
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-glow);
}

.thumbnail-item:hover:not(.active) {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.search-btn.loading .loader {
    display: block;
}

.search-btn.loading .btn-text,
.search-btn.loading .btn-icon {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: #3f3f46;
    font-size: 0.9rem;
}

/* Guide Section */
.guide-section {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
    color: #e4e4e7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.info-block h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-list {
    list-style-position: inside;
    padding-left: 10px;
}

.steps-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.steps-list strong {
    color: var(--text-main);
}

.examples-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.examples-box code {
    font-family: monospace;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    word-break: break-all;
}

.note {
    font-size: 0.85rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
}

/* Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
        max-width: 100%;
    }

    .header {
        margin-bottom: 30px;
    }

    .logo {
        font-size: 2.2rem;
    }

    /* Search Bar */
    .search-wrapper {
        padding: 6px;
        margin-bottom: 30px;
    }

    .input-field {
        font-size: 1rem;
        padding: 0 15px;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Result Card */
    .result-card {
        padding: 20px;
    }

    .result-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-cover {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-item {
        padding: 10px 5px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns on mobile */
        gap: 8px;
    }

    /* Actions */
    .action-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Guide Section Mobile */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-block {
        padding: 20px;
    }

    .info-block h2 {
        font-size: 1.2rem;
    }

    /* Image Gallery Mobile */
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-all-btn {
        width: 100%;
        justify-content: center;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .carousel-slide .download-single-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .search-btn span:first-child {
        display: none;
    }

    /* Hide text, show icon only */
    .search-btn {
        padding: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on very small screens */
    }
}

/* YouTube Theme Overrides */
.youtube-theme {
    --accent-primary: #ff0000;
    --accent-secondary: #cc0000;
    --accent-glow: rgba(255, 0, 0, 0.3);
}

.youtube-theme .logo {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Platform Switcher */
.platform-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.platform-btn.active {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

.platform-btn svg {
    width: 20px;
    height: 20px;
}

/* YouTube Search Button */
.youtube-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
}

.youtube-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

/* YouTube Result Card */
.youtube-result {
    border-color: rgba(255, 0, 0, 0.2);
}

.youtube-layout {
    grid-template-columns: 1fr;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video Title */
.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Channel Info */
.channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.channel-name {
    color: var(--text-main);
    font-weight: 500;
}

.separator {
    opacity: 0.5;
}

/* Download Section */
.download-section {
    margin-top: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.download-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-main);
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.download-option:hover {
    background: #3f3f46;
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.download-option .quality {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff0000;
}

.download-option .format {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.download-option .size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Best Quality Option */
.download-option.best-option {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.download-option.best-option:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.best-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-top: 8px;
}

.recommended-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    margin-top: 6px;
}

.no-audio-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    margin-top: 6px;
}

.quality-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.format-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Audio Section */
.audio-section {
    margin-top: 20px;
}

.audio-btn {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

.audio-btn:hover {
    background: rgba(255, 0, 0, 0.2) !important;
}

.audio-btn .btn-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-btn svg {
    color: #ff0000;
}

/* YouTube Icon */
.youtube-icon svg {
    stroke: #ff0000;
}

/* Responsive */
@media (max-width: 768px) {
    .youtube-layout {
        grid-template-columns: 1fr;
    }

    .video-thumbnail {
        max-width: 100%;
    }

    .platform-switcher {
        flex-wrap: wrap;
    }

    .platform-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}