/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;800;900&display=swap');

/* ১. গ্রিড লেআউট */
.sr-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.sr-item-container {
    display: flex;
    flex-direction: column;
    font-family: 'Frank Ruhl Libre', serif; /* পুরো সেকশনে ফন্ট ফ্যামিলি */
}

/* ২. থাম্বনেইল কভার ফিক্স */
.sr-short-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    cursor: pointer;
}

.sr-media-area, .sr-main-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* ইমেজ কভার ফিক্স */
    display: block;
}

/* ৩. হোভার প্লেয়ার */
.sr-hover-player iframe {
    position: absolute; top:0; left:0; width:100%; height:100%;
    border: none; opacity: 0; transition: opacity 0.5s;
}
.sr-short-card:hover .sr-hover-player iframe { opacity: 1; }

/* ৪. প্লে বাটন */
.sr-center-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 5;
}
.sr-play-shape {
    width: 0; height: 0; border-top: 12px solid transparent;
    border-bottom: 12px solid transparent; border-left: 18px solid #000; margin-left: 5px;
}

/* ৫. ফন্ট সাইজ, ওয়েট এবং ফ্যামিলি স্পেসিফিকেশন */
.sr-card-overlay {
    position: absolute; bottom: 0; width: 100%; padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    z-index: 3;
}
.sr-meta-row { display: flex; justify-content: space-between; align-items: center; }
.sr-user { display: flex; align-items: center; gap: 8px; }
.sr-user img { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #fff; }

/* By Label: 14px / 400 */
span.by-label {
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #fff;
}

/* Author Name: 14px / 700 */
span.author-name {
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff;
}

/* Date Text: 12px / 400 */
.sr-date-text { 
    color: #ffffff !important; 
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 12px !important; 
    font-weight: 400 !important;
    display: block;
    margin-top: 2px;
}

/* Time Badge: 14px / 500 */
.sr-time-badge { 
    background: rgba(0,0,0,0.8); 
    color: #fff; 
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 14px !important; 
    font-weight: 500 !important;
    padding: 3px 10px; 
    border-radius: 4px; 
}

/* External Title: 16px / 700 */
.sr-external-title {
    color: #000000 !important;
    font-family: 'Frank Ruhl Libre', serif !important;
    font-size: 16px !important; 
    font-weight: 700 !important;
    margin-top: 15px;
    line-height: 1.3;
    text-align: left;
}

/* ৬. পপআপ ডিজাইন */
#sr-shorts-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 999999; display: none; align-items: center; justify-content: center;
}
.sr-iframe-holder { width: 100%; max-width: 420px; height: 85vh; margin: auto; border-radius: 15px; overflow: hidden; background: #000; }
.sr-iframe-holder iframe { width: 100%; height: 100%; border: none; }
.sr-close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 1000; }