/* =========================================
   0. KRİTİK CSS SIFIRLAMA & RESET
   ========================================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 420px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff !important;
    margin-top: 0 !important; 
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 850px;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 1;
    margin-bottom: 35px;
    font-weight: 500;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #f8f9fa;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* HERO ARAMA KUTUSU */
.hero-search {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.search-box-wrapper {
    position: relative;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-box-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.search-box-wrapper input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 12px 20px;
    font-size: 1.05rem;
    outline: none;
    color: #222;
    font-weight: 600;
}

.search-btn-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.search-btn-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

/* HERO BUTONLAR */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-hero-primary, .btn-hero-secondary {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.5);
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: #fff;
    color: var(--primary-color) !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   2. FEATURES STRIP
   ========================================= */
.features-strip {
    background: var(--bg-card);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.icon-video { color: var(--primary-color); background: rgba(var(--primary-rgb), 0.1); }
.icon-music { color: var(--accent-color); background: rgba(69, 123, 157, 0.1); }
.icon-lyrics { color: #fb8500; background: rgba(251, 133, 0, 0.1); }

.feat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.feat-text strong { font-size: 1rem; color: var(--text-main); font-weight: 700; }
.feat-text span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   3. GENEL İÇERİK YAPISI
   ========================================= */
.content-section {
    padding: 40px 0; 
    width: 100%;
}

.pt-compact {
    padding-top: 30px;
}

.bg-soft {
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Header Compact */
.section-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.header-left h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 700;
}

.btn-link-simple {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link-simple:hover { color: var(--primary-color); }

.color-danger { color: #e63946 !important; }
.color-primary { color: var(--primary-color) !important; }
.color-warning { color: #f39c12 !important; }

/* =========================================
   4. VIDEO GRID (STANDART)
   ========================================= */
.grid-video-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card-standard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card-standard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.thumb-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    display: block;
    overflow: hidden;
    width: 100%;
}

.thumb-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card-standard:hover .thumb-container img {
    transform: scale(1.08);
}

.overlay-play {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.2s;
}

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

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

/* DÜZELTME BURADA: Kart Detayları MASAÜSTÜ ve GENEL */
.card-details {
    padding: 15px;
    display: flex;
    flex-direction: row; /* DÜZELTME: Yan yana dizilim */
    gap: 12px; /* Avatar ile yazı arası boşluk */
    align-items: flex-start; /* Yukarı hizala */
}

.avatar-col {
    flex-shrink: 0; /* Küçülmesini engelle */
}

.avatar-col img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.text-col {
    flex: 1;
    overflow: hidden; /* Taşmayı engelle */
}

.text-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-col h3 a { color: var(--text-main); text-decoration: none; }
.text-col h3 a:hover { color: var(--primary-color); }

.meta-row {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.channel-link { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.channel-link:hover { color: var(--text-main); }
.dot { font-size: 0.6rem; opacity: 0.5; }

/* =========================================
   5. MUSIC GRID
   ========================================= */
.grid-music-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.music-card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.music-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.music-cover {
    position: relative;
    padding-top: 100%;
    background: #eee;
}

.music-cover img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.hover-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.music-card-compact:hover .hover-icon { opacity: 1; }

.music-info {
    padding: 12px;
    text-align: center;
}

.music-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   6. LYRICS GRID
   ========================================= */
.grid-lyrics-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.lyric-card-row {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    gap: 15px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.lyric-card-row:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.03);
    transform: translateX(5px);
}

.icon-side {
    width: 40px; height: 40px;
    background: rgba(251, 133, 0, 0.1);
    color: #fb8500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.text-side {
    flex: 1;
    min-width: 0; 
    overflow: hidden;
}

.text-side h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-side span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-side {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* =========================================
   7. MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 992px) {
    .features-strip { display: none; }
    .hero-section { min-height: auto; padding: 40px 0; }
    .grid-video-standard {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero-content { padding: 30px 15px; }
    .hero-content h1 { font-size: 1.8rem; margin-bottom: 10px; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    
    .search-box-wrapper { padding: 4px; }
    .search-box-wrapper input { padding: 10px 15px; font-size: 0.95rem; }
    
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

    /* Mobilde Videoları TEK SÜTUN ve BÜYÜK KART yap */
    .grid-video-standard {
        grid-template-columns: 1fr; /* Tek sütun */
        gap: 20px; /* Boşluğu artır */
    }

    .video-card-standard {
        flex-direction: column; /* Alt alta dizilim (resim üstte) */
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Hafif gölge */
        border: 1px solid var(--border-color); /* Sınırları belirginleştir */
        background: var(--bg-card);
        padding-bottom: 0;
    }
    
    .thumb-container {
        width: 100%; /* Tam genişlik */
        height: auto; /* Yükseklik otomatik (aspect ratio ile korunur) */
        padding-top: 56.25%; /* 16:9 oranını koru */
        border-radius: 12px 12px 0 0; /* Sadece üst köşeleri yuvarla */
        flex-shrink: 0;
    }
    
    .duration-badge { 
        font-size: 0.7rem; 
        padding: 3px 6px; 
        bottom: 8px; right: 8px; 
    }
    
    /* DÜZELTME BURADA: Mobilde de YAN YANA dizilim (Avatar Solda, Metin Sağda) */
    .card-details {
        padding: 12px;
        flex-direction: row; /* Yan yana */
        align-items: flex-start; /* Yukarı hizala */
        gap: 12px; /* Boşluğu artır */
    }
    
    .avatar-col { 
        display: block; /* Görünür yap */
    } 
    
    .avatar-col img {
        width: 36px; height: 36px; /* Mobilde biraz küçült */
    }

    .text-col h3 {
        font-size: 0.95rem; /* Başlığı biraz küçült */
        line-height: 1.3;
        margin-bottom: 3px;
        -webkit-line-clamp: 2; /* 2 satırda kes */
    }
    
    .meta-row { font-size: 0.75rem; color: var(--text-muted); }

    /* Müzik - 2'li Izgara (Değişmedi) */
    .grid-music-standard {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Sözler - Tek Sütun */
    .grid-lyrics-standard {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .lyric-card-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}