/* Movie Info Box Styles - Redesigned v3 */

#series-info-box {
    position: fixed;
    z-index: 9999;
    width: 380px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    border: 1px solid #333;
    padding: 15px;
    gap: 15px;
    box-sizing: border-box;
    transform: translateY(10px);
}

#series-info-box.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mib-poster {
    width: 110px;
    flex-shrink: 0;
}

.mib-poster img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: block;
}

.mib-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mib-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.mib-title {
    font-size: 16px; /* Smaller font size as requested */
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    margin-right: 10px;
}

.mib-quality-badge {
    background: #f5b50a; /* Yellow badge from screenshot */
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mib-meta-bar {
    background: #fff; /* White bar from screenshot */
    color: #333;
    display: flex;
    justify-content: space-around;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: bold;
}

.mib-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mib-info-line {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mib-info-label {
    font-weight: bold;
    color: #fff;
}

.mib-info-value {
    color: #ccc;
}

.mib-synopsis-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

.mib-synopsis-label {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.mib-summary {
    font-size: 12px;
    color: #bbb;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mib-watch-btn {
    background: #2fa36a;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.2s;
    margin-top: auto;
    display: block;
}

.mib-watch-btn:hover {
    background: #268458;
}

/* Responsive adjustments */
@media (max-width: 840px) {
    #series-info-box {
        display: none !important;
    }
}
/* ─── Download Now button (desktop hover box) ───────────────────────────── */
.mib-download-btn {
    background: #1a6ebd;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.2s;
    margin-top: 8px;
    display: block;
}

.mib-download-btn:hover {
    background: #145a9e;
}

/* ─── Mobile Series Info Modal ──────────────────────────────────────────── */
#smib-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    backdrop-filter: blur(3px);
}

#smib-mobile-overlay.active {
    display: block;
}

#smib-mobile-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    border: 1px solid #333;
    padding: 20px 15px 30px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: 'Arial', sans-serif;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

#smib-mobile-modal.active {
    display: block;
    transform: translateY(0);
}

#smib-mobile-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #555;
    border-radius: 2px;
    margin: 0 auto 16px;
}

#smib-mobile-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #333;
    border: none;
    color: #fff;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 1;
}

.smib-m-inner {
    display: flex;
    gap: 14px;
}

.smib-m-poster {
    flex-shrink: 0;
    width: 100px;
}

.smib-m-poster img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: block;
}

.smib-m-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.smib-m-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.smib-m-title {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.smib-m-badge {
    background: #f5b50a;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.smib-m-meta-bar {
    background: #fff;
    color: #333;
    display: flex;
    justify-content: space-around;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: bold;
}

.smib-m-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.smib-m-info-line {
    font-size: 12px;
    margin-bottom: 3px;
    line-height: 1.4;
}

.smib-m-label {
    font-weight: bold;
    color: #fff;
}

.smib-m-value {
    color: #ccc;
}

.smib-m-synopsis-container {
    margin-top: 8px;
    margin-bottom: 12px;
}

.smib-m-synopsis-label {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
}

.smib-m-summary {
    font-size: 11px;
    color: #bbb;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#smib-mobile-modal .mib-watch-btn {
    margin-top: 0;
}

#smib-mobile-modal .mib-download-btn {
    margin-top: 8px;
}
