/* ================================================
   Başkak YouTube - Frontend Styles
   ================================================ */

:root {
    --byt-primary: #1a3a5c;
    --byt-red: #ff0000;
    --byt-dark: #0f0f0f;
    --byt-text: #2d2d2d;
    --byt-text-light: #606060;
    --byt-light: #f4f7fa;
    --byt-white: #fff;
    --byt-border: #e5e5e5;
    --byt-radius: 12px;
    --byt-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Channel Header */
.baskak-yt-channel {
    background: var(--byt-white);
    border-radius: var(--byt-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: var(--byt-shadow);
}

.baskak-yt-channel-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.baskak-yt-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.baskak-yt-channel-info {
    flex: 1;
    min-width: 200px;
}

.baskak-yt-channel-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--byt-dark);
    margin: 0 0 2px;
    line-height: 1.3;
}

.baskak-yt-channel-handle {
    font-size: 13px;
    color: var(--byt-text-light);
    display: block;
    margin-bottom: 8px;
}

.baskak-yt-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.baskak-yt-stat {
    font-size: 13px;
    color: var(--byt-text-light);
}

.baskak-yt-stat strong {
    color: var(--byt-dark);
    font-weight: 600;
}

.baskak-yt-stat-dot {
    color: var(--byt-text-light);
    margin: 0 4px;
}

.baskak-yt-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--byt-red);
    color: var(--byt-white) !important;
    text-decoration: none !important;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.baskak-yt-subscribe-btn:hover {
    background: #cc0000;
    transform: scale(1.03);
}

/* Video Grid */
.baskak-yt-grid {
    display: grid;
    gap: 24px;
}

.baskak-yt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.baskak-yt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.baskak-yt-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .baskak-yt-cols-3, .baskak-yt-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .baskak-yt-cols-2, .baskak-yt-cols-3, .baskak-yt-cols-4 { grid-template-columns: 1fr; }
}

/* Video Card */
.baskak-yt-card {
    background: var(--byt-white);
    border-radius: var(--byt-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--byt-shadow);
}

.baskak-yt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.baskak-yt-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.baskak-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.baskak-yt-card:hover .baskak-yt-thumb img {
    transform: scale(1.05);
}

.baskak-yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.baskak-yt-card:hover .baskak-yt-play-overlay {
    background: rgba(0,0,0,0.3);
}

.baskak-yt-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.baskak-yt-card:hover .baskak-yt-play-btn {
    opacity: 1;
    transform: scale(1);
}

.baskak-yt-play-btn svg {
    margin-left: 3px;
}

.baskak-yt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.baskak-yt-card-info {
    padding: 16px;
}

.baskak-yt-video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--byt-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baskak-yt-video-meta {
    font-size: 13px;
    color: var(--byt-text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.baskak-yt-no-videos {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Lightbox */
.baskak-yt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baskak-yt-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

.baskak-yt-lightbox-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 960px;
}

.baskak-yt-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 4px 12px;
    transition: opacity 0.2s;
}

.baskak-yt-lightbox-close:hover {
    opacity: 0.7;
}

.baskak-yt-lightbox-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.baskak-yt-lightbox-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    .baskak-yt-channel {
        padding: 20px;
    }
    .baskak-yt-channel-inner {
        flex-direction: column;
        text-align: center;
    }
    .baskak-yt-stats {
        justify-content: center;
    }
}
