/* /youtube/youtube.css */
.youtube-section {
    margin: var(--margin-md) auto;
    max-width: 1600px;
    padding: var(--space-md);
}

.info-message {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--second-layer-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--secondary-text-color);
    text-align: center;
}

.info-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-message a:hover {
    text-decoration: underline;
}

.filter-container {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    background: var(--first-layer-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--primary-text-color);
    display: block;
}

.filter-group select {
    width: 100%;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: var(--border-sm);
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    height: 36px;
}

.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Clear filters button i癟in filter-group i癟inde primary-button kullan覺l覺yor */
.filter-group .primary-button {
    width: 100%;
    height: 36px;
    margin: 0;
}

.video-count {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--secondary-text-color);
    text-align: center;
    width: 100%;
}

#videoList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.video-item {
    display: flex;
    flex-direction: column;
    background: var(--first-layer-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    order: 0;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-link {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.1);
}

.video-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.video-thumbnail-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%) scale(0);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.video-thumbnail-link:hover::after,
.video-thumbnail-link:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.video-thumbnail-link:hover::before {
    transform: translate(-40%, -50%) scale(1);
}

.video-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.video-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--primary-text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
    transition: color 0.2s ease;
}

.video-title:hover {
    color: var(--primary-color);
}

.video-channel {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--secondary-text-color);
    font-weight: 500;
}

.channel-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.channel-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.channel-name {
    font-weight: 600;
    color: var(--primary-text-color);
}

.channel-subscribers {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.video-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
}

.meta-label {
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--primary-text-color);
    font-weight: 600;
}

.error-message {
    color: red;
    font-style: italic;
    text-align: center;
    grid-column: 1 / -1;
}

.flag-icon-select {
    width: 16px;
    height: 12px;
    vertical-align: middle;
    margin-right: var(--space-xs);
}

@media (max-width: 1200px) {
    #videoList {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #videoList {
        grid-template-columns: 1fr;
    }
    
    .youtube-section {
        max-width: 100%;
        padding: var(--space-sm);
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group .primary-button {
        width: 100%;
        max-width: 200px;
        margin: var(--space-sm) auto 0;
    }
    
    .video-meta {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.8rem;
    }
    
    .meta-label {
        font-size: 0.7rem;
    }
    
    .video-thumbnail-link {
        aspect-ratio: 16 / 9;
    }
    
    .video-thumbnail {
        aspect-ratio: 16 / 9;
    }
}












/* Video-like Ad Styles */
.video-ad-item {
    display: flex;
    flex-direction: column;
    background: var(--first-layer-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    order: 0;
    position: relative;
}

.video-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-ad-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    overflow: visible;
}

.video-ad-container ins.adsbygoogle {
    width: 100% !important;
    min-height: 200px !important;
    display: block !important;
}

/* SponsoredLabel - En alta sabitlenmiş */
.video-ad-info {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 0 var(--space-md);
}

.sponsored-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .video-ad-info {
        height: auto;
        padding: var(--space-sm) var(--space-md);
    }
}