/* Video Sayfası Stilleri */
.videos-page { padding-top: 70px; min-height: 100vh; }

.videos-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 50px 0 45px;
    text-align: center;
}

.videos-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.videos-hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.video-guide-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.video-guide-container {
    max-width: 1080px;
}

.video-guide-heading {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.video-guide-kicker {
    display: inline-block;
    margin-bottom: .65rem;
    color: #0369a1;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-guide-heading h2 {
    margin: 0 0 1rem;
    color: #102a43;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.15;
}

.video-guide-heading p,
.video-guide-card p {
    color: #486581;
    font-size: 1.02rem;
    line-height: 1.75;
}

.video-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.video-guide-card {
    padding: clamp(1.2rem, 3vw, 1.6rem);
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(16, 42, 67, .06);
}

.video-guide-card h3 {
    margin: 0 0 .65rem;
    color: #102a43;
    font-size: 1.18rem;
    line-height: 1.35;
}

.video-guide-card p {
    margin: 0;
}

@media (max-width: 700px) {
    .video-guide-grid {
        grid-template-columns: 1fr;
    }

    .video-guide-section {
        padding: 3rem 0;
    }
}

.category-filters {
    padding: 20px 0;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    border-color: #198754;
    box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}

.video-grid-section { padding: 50px 0; background: #fff; }

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: #198754;
}

.video-card-cover {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.video-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card-cover .video-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Yerel/yÃ¶netim paneli kapaklarÄ± farklÄ± oranlarda olabilir. BunlarÄ± kÄ±rpmadan
   16:9 kart iÃ§inde letterbox ile gÃ¶ster; YouTube hqdefault kartlarÄ± cover kalÄ±r. */
.video-card-cover .video-card-media--contain {
    object-fit: contain;
}

.video-card:hover .video-card-cover img { transform: scale(1.08); }
.video-card:hover .video-card-cover img.video-card-media--contain { transform: none; }

.video-card-cover .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.video-card-cover .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.video-card-cover .placeholder-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay { opacity: 1; }

.play-btn {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.play-btn:hover { transform: scale(1.1); }

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 22px solid #1a1a2e;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    margin-left: 6px;
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%);
    color: #1a1a2e;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
}

.duration-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-card-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-title-link {
    color: inherit;
    text-decoration: none;
}

.video-card-title-link:hover { color: #146c43; }

.video-card-desc {
    font-size: 0.92rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.video-views {
    font-size: 0.82rem;
    color: #495057;
    font-weight: 500;
}

.video-card-date {
    font-size: 0.82rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-card-actions { display: flex; gap: 8px; }

.btn-watch {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background: linear-gradient(135deg, #146c43 0%, #0d5030 100%);
    transform: translateX(3px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}

.btn-related {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    background: #e9ecef;
    color: #495057;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-related:hover { background: #dee2e6; color: #212529; }

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active { display: flex; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.72);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.video-modal-close:hover { color: #ffc107; }

.filter-btn:focus-visible,
.video-card-cover:focus-visible,
.btn-watch:focus-visible,
.btn-related:focus-visible,
.video-modal-close:focus-visible,
.kb-pagination-btn:focus-visible,
.kb-cta-strip-btn:focus-visible {
    outline: 3px solid #075fbd;
    outline-offset: 3px;
}

.video-modal-close:focus-visible { outline-color: #fff; }

.video-modal video { width: 100%; max-height: 70vh; display: block; }

.video-modal-info {
    padding: 20px;
    background: #1a1a2e;
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
}

.video-modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }

.video-modal-desc { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.6; }

.featured-section { padding: 60px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }

.no-videos { text-align: center; padding: 80px 30px; background: #fff; border-radius: 18px; grid-column: 1 / -1; }

.no-videos-icon { font-size: 5rem; margin-bottom: 25px; }

.no-videos h3 { font-size: 1.5rem; color: #495057; margin-bottom: 12px; }

.no-videos p { color: #495057; font-size: 1rem; }

[itemscope][itemtype="https://schema.org/VideoObject"] { display: block; }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
    .videos-hero { padding: 35px 0 30px; }
    .filter-container { gap: 8px; padding: 0 10px; }
    .filter-btn { min-height: 44px; padding: 9px 14px; font-size: 0.85rem; }
    .video-card-actions { flex-direction: column; }
    .btn-watch, .btn-related { width: 100%; justify-content: center; }
    .video-modal {
        align-items: flex-start;
        padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
    }
    .video-modal-content { max-height: calc(100dvh - 24px); border-radius: 12px; }
    .video-modal video { max-height: 50dvh; }
    .video-modal-info { padding: 15px; }
    .video-modal-title { font-size: 1.1rem; }
    .video-modal-desc { margin-bottom: 0; }
}

.videos-page ::-webkit-scrollbar { width: 10px; }
.videos-page ::-webkit-scrollbar-track { background: #f5f5f5; }
.videos-page ::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 5px; }
.videos-page ::-webkit-scrollbar-thumb:hover { background: #495057; }
