@import './player.css';

/* ==========================================================================
   Dedicated Music Showcase & Global Audio Player Styling (AnimeTV)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Dedicated Home Section: Music Hub (مخصوص بخش موزیک)
   -------------------------------------------------------------------------- */
.music-hub-section {
    width: 100%;
    margin: 40px 0 28px;
    direction: rtl;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    box-sizing: border-box;
}

.music-hub-card {
    width: 94%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    border-radius: 24px;
    background: linear-gradient(135deg, #0d1520 0%, #09101a 50%, #050b12 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 16px 45px -12px rgba(0, 0, 0, 0.75), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 25px rgba(16, 185, 129, 0.08);
    padding: 22px 24px 20px;
    overflow: hidden;
}

/* Ambient neon flares in background */
.music-hub-card::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -70px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.music-hub-card::after {
    content: '';
    position: absolute;
    bottom: -110px;
    left: -70px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------------------------
   Music Hub Header: سربرگ افقی اختصاصی و مدرن موزیک
   -------------------------------------------------------------------------- */
.music-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.music-hub-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* آیکون دیسک چرخان و براق هدر */
.music-hub-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.music-hub-badge i {
    animation: rotateVinylIcon 12s linear infinite;
}

@keyframes rotateVinylIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-hub-title-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.music-hub-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.music-hub-tag i {
    font-size: 10px;
}

.music-hub-title {
    margin: 0 0 3px;
    font-size: 21px;
    font-weight: 900;
    background: linear-gradient(110deg, #ffffff 30%, #a7f3d0 85%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.music-hub-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11.5px;
    font-weight: 400;
}

/* سمت چپ هدر: ترک فعال، دکمه‌های ناوبری، و دکمه مشاهده همه */
.music-hub-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ویجت کوچک اکنون در حال پخش در هدر */
.music-hub-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 20px;
    padding: 5px 12px;
    color: #34d399;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 260px;
}

.music-hub-now-playing:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.55);
}

.now-playing-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 10.5px;
}

.now-playing-name {
    color: #34d399;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* دکمه‌های هدایت اسلایدر */
.music-hub-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-hub-arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.music-hub-arrow-btn:not(:disabled):hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.music-hub-arrow-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* دکمه مشاهده همه موزیک‌ها */
.music-hub-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.music-hub-view-all-btn:hover {
    background: #10b981;
    color: #032519;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Music Cards Container (تمام‌عرض و اسلایدی)
   -------------------------------------------------------------------------- */
.music-hub-carousel-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

.music-hub-embla {
    overflow: hidden;
    width: 100%;
    direction: rtl;
}

.music-hub-container {
    display: flex;
    gap: 14px;
    padding: 4px 2px;
}

/* --------------------------------------------------------------------------
   Music Card Component (کارت‌های مدرن موزیک)
   -------------------------------------------------------------------------- */
.music-card {
    flex: 0 0 310px;
    max-width: 330px;
    height: 98px;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(20, 28, 44, 0.8) 0%, rgba(13, 20, 32, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    user-select: none;
}

.music-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(26, 38, 58, 0.92) 0%, rgba(17, 26, 42, 0.98) 100%);
    box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.25);
}

.music-card.is-active {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(13, 22, 34, 0.96) 100%);
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.38);
}

/* --------------------------------------------------------------------------
   Vinyl Disc Cover & Center Play Button
   -------------------------------------------------------------------------- */
.music-disc-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-vinyl-disc {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, #2d3748 15%, #1a202c 40%, #0d1117 70%, #05070a 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

/* شیارهای دایره‌ای وینیل */
.music-vinyl-disc::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.45), inset 0 0 0 7px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 2;
}

.music-vinyl-cover {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.music-vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* انیمیشن چرخش نرم دیسک گرامافون */
.music-vinyl-disc.is-spinning {
    animation: spinDisc 5.5s linear infinite;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* دکمه شیشه‌ای پخش/مکث روی دیسک */
.music-play-btn-overlay {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 15, 25, 0.78);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    z-index: 4;
    transition: all 0.22s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.music-card:hover .music-play-btn-overlay {
    background: #10b981;
    border-color: #34d399;
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
}

.music-card.is-active .music-play-btn-overlay {
    background: #10b981;
    border-color: #6ee7b7;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

/* --------------------------------------------------------------------------
   Mini Equalizer Animation (اکولایزر متحرک)
   -------------------------------------------------------------------------- */
.mini-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5px;
    height: 13px;
    width: 14px;
}

.mini-equalizer-bar {
    width: 2.5px;
    background: #ffffff;
    border-radius: 1px;
    animation: bounceBar 0.8s ease-in-out infinite alternate;
}

.mini-equalizer-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.mini-equalizer-bar:nth-child(2) { height: 95%; animation-delay: 0.35s; }
.mini-equalizer-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes bounceBar {
    0% { height: 25%; }
    50% { height: 100%; }
    100% { height: 35%; }
}

/* --------------------------------------------------------------------------
   Music Card Info (محتوا و متن کارت)
   -------------------------------------------------------------------------- */
.music-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: right;
}

.music-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.music-card-title {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-weight: 700;
    direction: ltr;
    font-size: 13.5px;
    color: #f3f4f6;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color 0.2s;
}

.music-card.is-active .music-card-title {
    color: #34d399;
}

.music-card-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1px 6px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
    font-family: 'IRANYekanX', sans-serif;
}

.music-card-anime-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card-anime-icon {
    font-size: 10.5px;
    color: #10b981;
    flex-shrink: 0;
}

.music-card-anime-link {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11.5px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.music-card-anime-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.music-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* نشان‌های اختصاصی: OP / ED / OST */
.music-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 600;
    font-family: 'IRANYekanX', sans-serif;
    letter-spacing: 0.2px;
}

.music-type-badge.type-ost {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.music-type-badge.type-op {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.music-type-badge.type-ed {
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

.music-card-quality {
    color: rgba(255, 255, 255, 0.38);
    font-size: 9.5px;
    font-weight: 400;
}

.music-card-live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #10b981;
    font-size: 10px;
    font-weight: 600;
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Global Bottom Floating / Sticky Music Player Bar
   -------------------------------------------------------------------------- */
.music-player-bar-container {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 74px;
    z-index: 9999;
    background: rgba(13, 17, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
}

/* Right Section: Disc & Track info */
.music-player-bar-track {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 280px;
    max-width: 320px;
}

.music-player-bar-disc {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, #2d3748 15%, #0d1117 80%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.music-player-bar-disc.is-spinning {
    animation: spinDisc 5s linear infinite;
}

.music-player-bar-disc img {
    position: absolute;
    inset: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.music-player-bar-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}

.music-player-bar-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-player-bar-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.music-player-bar-sub a {
    color: #10b981;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-player-bar-sub a:hover {
    text-decoration: underline;
}

/* Center Section: Controls & Progress Seekbar (حرکت از چپ به راست LTR) */
.music-player-bar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 580px;
    gap: 6px;
    margin: 0 20px;
}

.music-player-bar-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    direction: ltr;
}

.music-player-control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.music-player-control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.music-player-control-btn.is-active {
    color: #10b981;
}

.music-player-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    border: none;
    color: #0b1320;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.music-player-play-btn:hover {
    transform: scale(1.08);
    background: #34d399;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.7);
}

/* نوار زمان و پیشرفت قطعه - از چپ به راست LTR */
.music-player-bar-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    direction: ltr !important;
}

.music-player-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'IRANYekanX', 'DanaFaNum', sans-serif;
    min-width: 34px;
    text-align: center;
}

.music-player-slider-track {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
    direction: ltr !important;
}

.music-player-slider-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    position: relative;
    pointer-events: none;
    direction: ltr !important;
    left: 0;
}

.music-player-slider-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
    pointer-events: none;
    opacity: 1;
    transition: transform 0.15s ease;
}

.music-player-slider-track:hover .music-player-slider-thumb {
    transform: translate(50%, -50%) scale(1.25);
    background: #34d399;
}

/* Left Section: Equalizer visualizer, Volume (از چپ به راست LTR) & Dismiss */
.music-player-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 240px;
    justify-content: flex-end;
}

.music-player-equalizer-wrap {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    padding: 0 6px;
}

.player-eq-bar {
    width: 3px;
    background: #10b981;
    border-radius: 2px;
    animation: barBounce 0.75s ease-in-out infinite alternate;
}

.player-eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.player-eq-bar:nth-child(2) { height: 80%; animation-delay: 0.25s; }
.player-eq-bar:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.player-eq-bar:nth-child(4) { height: 50%; animation-delay: 0.15s; }
.player-eq-bar:nth-child(5) { height: 75%; animation-delay: 0.3s; }

@keyframes barBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* کنترل اسلایدر ولوم - چپ به راست LTR */
.music-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr !important;
}

.music-player-volume-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.music-player-volume-btn:hover {
    color: #10b981;
}

.music-player-volume-range {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    direction: ltr !important;
}

.music-player-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
    transition: transform 0.15s ease;
}

.music-player-volume-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-player-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.music-player-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   Extra Bottom Padding when Music Player is Active
   پدینگ بیشتر از پایین فقط زمانی که پلیر فعال است
   -------------------------------------------------------------------------- */
body.has-music-player,
body.has-music-player section.main-content,
body.has-music-player .main-content .body {
    padding-bottom: 50px !important;
}

body.has-music-player .musics-archive-page {
    padding-bottom: 125px !important;
}

/* --------------------------------------------------------------------------
   Musics Archive Page Layout
   -------------------------------------------------------------------------- */
.musics-archive-page {
    direction: rtl;
    padding: 24px 30px 100px;
    box-sizing: border-box;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
}

.musics-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.musics-archive-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.musics-archive-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 19px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.musics-archive-title-group h1 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.musics-archive-title-group p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.musics-archive-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

/* Filter tabs & Search Bar in Archive */
.musics-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.musics-archive-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.musics-archive-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.musics-archive-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.musics-archive-filter-btn.is-active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.musics-archive-search-box {
    position: relative;
    min-width: 260px;
}

.musics-archive-search-box input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.musics-archive-search-box input:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.09);
}

.musics-archive-search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Archive Grid */
.musics-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.musics-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.musics-empty-state i {
    font-size: 42px;
    color: rgba(16, 185, 129, 0.35);
    margin-bottom: 14px;
    display: block;
}

/* ==========================================================================
   Single Anime Modern Navigation Tabs (Android Style)
   ========================================================================== */
.single-modern-tabs-bar {
    width: 97%;
    margin: 18px 0 24px;
    direction: rtl;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}

.single-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 22, 31, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 8px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    overflow-x: auto;
}

.single-tab-btn {
    flex: 1;
    min-width: 130px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
    user-select: none;
    outline: none;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
}

.single-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tab-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.tab-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.tab-main-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #d1d5db;
    line-height: 1.3;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.tab-sub-label {
    font-size: 10.5px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
    white-space: nowrap;
    transition: color 0.25s ease;
}

/* Active Tab State */
.single-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.06));
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
}

.single-tab-btn.is-active .tab-icon-wrap {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.single-tab-btn.is-active .tab-main-label {
    color: #34d399;
    font-weight: 800;
}

.single-tab-btn.is-active .tab-sub-label {
    color: #10b981;
}

.tab-active-indicator {
    position: absolute;
    bottom: -1px;
    right: 20%;
    left: 20%;
    height: 3px;
    background: #10b981;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 10px #10b981;
}

/* ==========================================================================
   Single Anime Musics Tab (Android Style)
   ========================================================================== */
.single-musics-tab-container {
    width: 100%;
    direction: rtl;
    box-sizing: border-box;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    padding-bottom: 40px;
}

.single-musics-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.single-musics-status-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.single-musics-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.single-musics-status-text h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #f3f4f6;
}

.single-musics-status-text p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.single-musics-play-all-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    font-family: inherit;
}

.single-musics-play-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.single-musics-play-all-btn i {
    font-size: 15px;
}

.play-all-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.play-all-labels span {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.play-all-labels small {
    font-size: 10px;
    opacity: 0.85;
    line-height: 1.2;
}

.single-musics-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.single-music-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.single-music-filter-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.single-music-filter-btn.is-active {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.single-musics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-music-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.single-music-row-card:hover {
    background: #1C222D;
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.single-music-row-card.is-active {
    background: linear-gradient(135deg, rgba(22, 26, 34, 0.98), rgba(28, 34, 45, 0.98));
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.single-music-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.single-music-index {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    min-width: 24px;
    text-align: center;
    font-family: 'IRANYekanX', sans-serif;
}

.single-music-index.is-active {
    color: #34d399;
}

.single-music-disc-thumb {
    flex-shrink: 0;
}

.single-music-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.single-music-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.single-music-title-line h5 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.single-music-title-line h5.is-active {
    color: #34d399;
}

.single-music-playing-badge {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    animation: livePulse 1.4s infinite ease-in-out;
}

.single-music-anime-sub {
    font-size: 11.5px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-music-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 14px;
}

.single-music-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 3px 8px;
    color: #9ca3af;
    font-size: 11px;
}

.single-music-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.single-music-play-btn:hover {
    background: #10b981;
    border-color: #10b981;
    color: #0A170F;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.single-music-play-btn.is-playing {
    background: #10b981;
    border-color: #10b981;
    color: #0A170F;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.single-music-play-btn.is-paused {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #34d399;
}

.mini-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.mini-equalizer-bar {
    width: 2.5px;
    background: #0A170F;
    border-radius: 1px;
    animation: miniEq 0.8s infinite ease-in-out alternate;
}

.mini-equalizer-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.mini-equalizer-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.mini-equalizer-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes miniEq {
    0% { height: 25%; }
    100% { height: 100%; }
}

.single-musics-empty {
    text-align: center;
    padding: 60px 20px;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    color: #9ca3af;
}

.single-musics-empty i {
    font-size: 42px;
    color: rgba(16, 185, 129, 0.35);
    margin-bottom: 12px;
    display: block;
}

/* ==========================================================================
   Single Anime Episodes & Downloads (Android Style)
   ========================================================================== */
.single-info-product-wrap.episodes {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.single-info-product-wrap.episodes .head-episode {
    position: static !important;
    width: 100% !important;
    right: auto !important;
    top: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 4px;
}

.single-info-product-wrap.episodes .head-episode h2 {
    background: transparent !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #f3f4f6 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-info-product-wrap.episodes .head-episode h2 > span {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
    color: #9ca3af !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

.single-info-product-wrap.episodes .head-episode .header__sort a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 14px;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-info-product-wrap.episodes .head-episode .header__sort a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

/* Bulk Toolbar */
.bulk-download-toolbar {
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.media-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-status > a {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.media-status > a.active {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Bulk Download Button */
.bulk-download-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    padding: 7px 16px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    font-family: inherit;
}

.bulk-download-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Group Buy Button */
.buy-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.18));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 6px 15px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
    font-family: inherit;
}

.buy-group-btn:hover {
    background: rgba(245, 158, 11, 0.26);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

/* Quality Pills */
.quality-wrapper {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quality-wrapper li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 5px 14px;
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.quality-wrapper li:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    opacity: 1 !important;
}

.quality-wrapper li.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Last Seen & Sort Row */
.content__header {
    background: rgba(22, 26, 34, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.last-seen {
    color: #9ca3af;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.last-seen a {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s;
}

.last-seen a:hover {
    background: #10b981;
    color: #0A170F;
}

.header__sort a {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.header__sort a.sort--selected {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12);
}

/* Episode Cards Grid */
.body__content .content .content__list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.body__content .content .content__list .content__item {
    width: 100% !important;
    align-self: start !important;
    height: auto !important;
    margin: 0 !important;
    background: #222327 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.body__content .content .content__list .content__item:hover {
    background: #1C222D !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.body__content .content .content__list .content__item.is-visited {
    border-color: rgba(16, 185, 129, 0.25) !important;
}

/* Card Content Layout */
.content__item .item__info {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.content__item .item__info > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: auto !important;
}

.info__scene {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-badge {
    font-size: 15px;
    font-weight: 800;
    color: #f3f4f6;
    font-family: 'IRANYekanX', 'DanaFaNum-Bold', sans-serif;
}

.new-badge {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: #34d399;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.free-label {
    background: rgba(59, 130, 246, 0.16) !important;
    border: 1px solid rgba(59, 130, 246, 0.38) !important;
    color: #60a5fa !important;
    padding: 1px 7px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.content__item .date {
    font-size: 11px !important;
    color: #6b7280 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quality chips on cards */
.ep-qualities-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.ep-q-chip {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

.ep-q-chip.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

/* Action Buttons inside Card */
.content__item .item__info .butt {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.content__item .item__info .butt a,
.content__item .item__info .butt span.ep-btn-download {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-direction: row !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.content__item .item__info .butt a.ep-btn-play {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.16)) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

.content__item .item__info .butt a.ep-btn-play:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #0A170F !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38) !important;
}

.content__item .item__info .butt a.ep-btn-download,
.content__item .item__info .butt span.ep-btn-download {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d1d5db !important;
}

.content__item .item__info .butt a.ep-btn-download:hover,
.content__item .item__info .butt span.ep-btn-download:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.content__item .item__info .butt a i,
.content__item .item__info .butt span.ep-btn-download i {
    font-size: 12px !important;
    margin: 0 !important;
}

.content__item .item__info .butt a span,
.content__item .item__info .butt span.ep-btn-download span {
    font-size: 12px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Locked Card Overlay (.blur) */
.content__item .blur {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(14, 18, 26, 0.88) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border-radius: 13px !important;
}

.content__item .blur:hover {
    background: rgba(14, 18, 26, 0.78) !important;
}

.blur-lock-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    padding: 7px 16px;
    transition: all 0.2s ease;
}

.content__item .blur:hover .blur-lock-box {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.blur-lock-icon {
    color: #fbbf24;
    font-size: 13px;
}

.content__item .blur span {
    color: #fbbf24 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: 'IRANYekanX', sans-serif !important;
}

/* ==========================================================================
   Android-Style Single Episodes & Subtitles View
   ========================================================================== */
.android-episodes-view {
    width: 100%;
    margin-top: 14px;
}

/* Notice message + Settings button row */
.android-notice-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    width: 100%;
}

.android-notice-settings-row .android-sub-notice {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0 !important;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    font-size: 11px;
    line-height: 1.6;
    border-radius: 12px;
    padding: 8px 14px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.android-notice-spacer {
    flex: 1;
}

.android-quick-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 9px 16px;
    color: #9CA3AF;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.android-quick-settings-btn:hover {
    background: #1C222D;
    color: #FFFFFF;
    border-color: rgba(0, 230, 118, 0.35);
    transform: translateY(-1px);
}

.android-quick-settings-btn i {
    color: #00E676;
    font-size: 13px;
}

/* 1. Android Top Info Bar (Watched, Player Selector, Group Buy in ONE ROW) */
.android-episodes-top-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.android-watched-box,
.android-player-selector-btn,
.android-bulk-download-card-top,
.android-group-buy-card-top {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.android-bulk-download-card-top {
    border-color: rgba(0, 230, 118, 0.25);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.android-bulk-download-card-top:hover {
    background: #1C222D;
    border-color: rgba(0, 230, 118, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 230, 118, 0.15);
}

.android-bulk-download-card-top .android-bulk-download-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(0, 230, 118, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00E676;
    font-size: 13px;
    flex-shrink: 0;
}

.android-bulk-download-card-top .android-bulk-download-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.android-bulk-download-card-top .android-bulk-download-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #F3F4F6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-bulk-download-card-top .android-bulk-download-sub {
    font-size: 9.5px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-watched-icon {
    font-size: 20px;
    color: #00E676;
    flex-shrink: 0;
}

.android-watched-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.android-watched-title {
    font-size: 11.5px;
    color: #F3F4F6;
    font-weight: 700;
}

.android-watched-sub {
    font-size: 10.5px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-last-seen-play {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.35);
    color: #00E676 !important;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.android-last-seen-play:hover {
    background: #00E676;
    color: #0A170F !important;
}

.android-player-selector-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.android-player-selector-btn:hover {
    background: #1C222D;
    border-color: rgba(0, 230, 118, 0.35);
    transform: translateY(-1px);
}

.android-player-icon {
    font-size: 16px;
    color: #00E676;
    flex-shrink: 0;
}

.android-player-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.android-player-title {
    font-size: 11.5px;
    color: #F3F4F6;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-player-hint {
    font-size: 9.5px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-player-chevron {
    font-size: 11px;
    color: #9CA3AF;
    margin-right: 2px;
    flex-shrink: 0;
}

/* Group Buy in Top Row */
.android-group-buy-card-top {
    border-color: rgba(0, 230, 118, 0.25);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.android-group-buy-card-top:hover {
    background: #1C222D;
    border-color: rgba(0, 230, 118, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 230, 118, 0.12);
}

.android-group-buy-card-top .android-group-buy-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(0, 230, 118, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00E676;
    font-size: 13px;
    flex-shrink: 0;
}

.android-group-buy-card-top .android-group-buy-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.android-group-buy-card-top .android-group-buy-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #F3F4F6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-group-buy-card-top .android-group-buy-sub {
    font-size: 9.5px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-group-buy-card-top .android-group-buy-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00E676;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 2. Android Segmented Switcher */
.android-segmented-container {
    display: flex;
    align-items: center;
    height: 46px;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.android-segmented-tab {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #9CA3AF;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.android-segmented-tab i {
    font-size: 13px;
}

.android-segmented-tab:hover {
    color: #F3F4F6;
    background: rgba(255, 255, 255, 0.04);
}

.android-segmented-tab.is-active {
    background: #1C222D;
    border-color: rgba(0, 230, 118, 0.35);
    color: #F3F4F6;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.android-segmented-tab.is-active i {
    color: #00E676;
}

.android-segmented-tab.android-segmented-bulk {
    color: #34D399;
}

.android-segmented-tab.android-segmented-bulk:hover {
    background: rgba(16, 185, 129, 0.12);
}

/* 3. Android Filter & Sort Row */
.android-filter-sort-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.android-filter-sort-card {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161A22;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #9CA3AF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.android-filter-sort-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1C222D;
}

.android-filter-sort-card > i {
    font-size: 14px;
    color: #00E676;
}

.android-filter-sort-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex: 1;
    margin: 0 10px;
}

.android-filter-sort-label {
    font-size: 9.5px;
    color: #6B7280;
}

.android-filter-sort-value {
    font-size: 12px;
    font-weight: 700;
    color: #F3F4F6;
}

.android-filter-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.android-filter-header-main > i {
    font-size: 14px;
    color: #00E676;
}

.quality-filter-card {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
}

.quality-filter-card .android-quality-chips-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.android-q-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.15s ease;
}

.android-q-chip:hover {
    color: #F3F4F6;
    background: rgba(255, 255, 255, 0.1);
}

.android-q-chip.is-active {
    background: rgba(0, 230, 118, 0.18);
    border-color: rgba(0, 230, 118, 0.4);
    color: #00E676;
    font-weight: 700;
}

/* 5. Android Quality Pills on Episode Card */
.ep-qualities-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.ep-q-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10.5px;
    color: #9CA3AF;
    transition: all 0.15s ease;
}

.ep-q-pill .ep-q-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #D1D5DB;
}

.ep-q-pill .ep-q-res {
    font-weight: 600;
    color: #D1D5DB;
}

.ep-q-pill .ep-q-size {
    font-size: 9.5px;
    color: #6B7280;
}

.ep-q-pill.active {
    background: rgba(0, 230, 118, 0.14);
    border-color: rgba(0, 230, 118, 0.35);
    color: #00E676;
}

.ep-q-pill.active .ep-q-badge {
    background: rgba(0, 230, 118, 0.25);
    color: #00E676;
}

.sub-format-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

/* 6. Android-Style Accordion Episode Card & Rows */
.content__item.android-ep-card {
    align-self: start !important;
    height: auto !important;
    padding: 0 !important;
    background: #161A22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.content__item.android-ep-card:hover {
    background: #191E28 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.content__item.android-ep-card.is-locked-card {
    background: #14171E !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    opacity: 0.72;
}

.content__item.android-ep-card.is-locked-card:hover {
    opacity: 0.9;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.content__item.android-ep-card.is-locked-card .android-ep-title {
    color: #9CA3AF !important;
}

.content__item.android-ep-card.is-locked-card .android-ep-date {
    color: #4B5563 !important;
}

.content__item.android-ep-card.is-locked-card .android-ep-rows,
.content__item.android-ep-card.is-locked-card .android-ep-rows *,
.content__item.android-ep-card.is-locked-card .android-quality-row,
.content__item.android-ep-card.is-locked-card .android-quality-row * {
    cursor: pointer !important;
}

.content__item.android-ep-card.is-locked-card .android-quality-row {
    opacity: 0.45;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.content__item.android-ep-card.is-locked-card .android-quality-row:hover {
    background: rgba(245, 158, 11, 0.08) !important;
    opacity: 0.85 !important;
}

.content__item.android-ep-card.is-locked-card .android-qr-res {
    color: #9CA3AF !important;
}

.content__item.android-ep-card.is-locked-card .android-qr-play-btn {
    background: rgba(0, 230, 118, 0.16) !important;
    color: rgba(0, 230, 118, 0.45) !important;
    box-shadow: none !important;
}

.content__item.android-ep-card.is-locked-card .android-qr-play-btn:hover {
    background: rgba(0, 230, 118, 0.3) !important;
    color: #00E676 !important;
    transform: scale(1.05);
}

/* Accordion Header */
.android-ep-header {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background 0.15s ease;
}

.android-ep-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.android-ep-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'IRANYekanX', 'DanaFaNum-Bold', sans-serif;
}

.android-ep-new-badge {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 1.5px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.android-ep-free-badge {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    padding: 1.5px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.android-ep-date {
    color: #6B7280;
    font-size: 11.5px;
    margin-right: 8px;
    font-family: inherit;
}

.android-ep-lock-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.android-ep-lock-pill:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.android-ep-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.android-ep-quality-count {
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
}

.android-ep-chevron {
    color: #9CA3AF;
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* Accordion Quality Rows */
.android-ep-rows {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(14, 18, 25, 0.45);
}

.android-quality-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    height: 48px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.android-quality-row:last-child {
    border-bottom: none;
}

.android-quality-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.android-qr-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.android-qr-res {
    font-size: 13.5px;
    font-weight: 700;
    color: #F3F4F6;
    font-family: 'IRANYekanX', 'DanaFaNum-Bold', sans-serif;
}

.android-qr-badge {
    background: rgba(255, 255, 255, 0.07);
    color: #9CA3AF;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9.5px;
    font-weight: 600;
}

.android-qr-lock {
    color: #fbbf24;
    font-size: 11px;
    margin-right: 4px;
}

.android-qr-center {
    display: flex;
    align-items: center;
}

.android-qr-size {
    color: #6B7280;
    font-size: 11.5px;
    font-family: sans-serif;
    direction: ltr;
}

.android-qr-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Green play button matching Android screenshot */
.android-qr-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #00E676;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A170F;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
}

.android-qr-play-btn:hover {
    background: #34d399;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.55);
}

.android-qr-dl-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.android-qr-dl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.android-qr-buy-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    margin: 0;
}

.android-qr-buy-btn:hover {
    background: #f59e0b;
    color: #0A170F;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Subtitle download green box (Android style at end of qualities) */
.android-ep-sub-box {
    margin: 12px 18px;
    padding: 12px 16px;
    background: #00E676;
    border: none;
    border-radius: 9px;
    color: #0A170F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.25);
    user-select: none;
}

.android-ep-sub-box:hover {
    background: #34D399;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 230, 118, 0.4);
}

.android-ep-sub-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'IRANYekanX', 'DanaFaNum-Bold', sans-serif;
}

.android-ep-sub-icon {
    font-size: 15px;
}

.android-ep-sub-label {
    letter-spacing: -0.2px;
}

.android-ep-sub-box.is-locked-sub {
    background: rgba(0, 230, 118, 0.08) !important;
    border: 1px dashed rgba(0, 230, 118, 0.22) !important;
    color: rgba(0, 230, 118, 0.5) !important;
    box-shadow: none !important;
    opacity: 0.55 !important;
}

.android-ep-sub-box.is-locked-sub:hover {
    opacity: 0.85 !important;
    background: rgba(0, 230, 118, 0.15) !important;
    color: #00E676 !important;
    border-style: solid !important;
    border-color: rgba(0, 230, 118, 0.4) !important;
}

/* Bulk download card in filter/sort row */
button.android-filter-sort-card.android-bulk-download-card {
    font-family: inherit;
    border: 1px solid rgba(0, 230, 118, 0.25);
    background: #161A22;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

button.android-filter-sort-card.android-bulk-download-card:hover {
    border-color: rgba(0, 230, 118, 0.5);
    background: #1C222D;
    color: #FFFFFF;
}

button.android-filter-sort-card.android-bulk-download-card:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Ensure single page and episodes list can fully expand and scroll to bottom */
.body-outline,
#page-wrap,
#smart-view,
#main-streams,
#episodes-section,
.global-page,
.global-page.full,
.tabs,
.tabs.active-tab-view,
#episodes,
.single-info-product-wrap,
.body__content.android-episodes-view,
.content-tab.js-episode-view,
.content,
.content__list.js-episode-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.android-ep-rows {
    padding-bottom: 6px;
}

/* Generous bottom padding so the last episodes never get covered */
.body__content.android-episodes-view {
    padding-bottom: 5px !important;
}

body.has-music-player .body__content.android-episodes-view {
    padding-bottom: 200px !important;
}

/* 7. Collapsible Episode List with Fade Overlay */
.episodes-collapse-container {
    position: relative;
    width: 100%;
}

.episodes-collapse-container.is-collapsed .episodes-list-wrapper {
    max-height: 352px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 230px, rgba(0, 0, 0, 0.45) 295px, transparent 352px);
    mask-image: linear-gradient(to bottom, #000 0%, #000 230px, rgba(0, 0, 0, 0.45) 295px, transparent 352px);
}

.episodes-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(35, 36, 40, 0) 0%, rgba(35, 36, 40, 0.6) 40%, rgba(35, 36, 40, 0.95) 80%, #232428 100%);
    z-index: 10;
}

.day .episodes-fade-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.95) 80%, #ffffff 100%);
}

.show-more-episodes-btn {
    font-family: 'IRANYEKANX';
}

.show-more-episodes-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 28px;
    background: #181c24;
    border: 1px solid rgba(0, 230, 118, 0.4);
    border-radius: 30px;
    color: #00E676;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 230, 118, 0.15);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-more-episodes-btn:hover {
    background: #00E676;
    color: #0c1017;
    border-color: #00E676;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 230, 118, 0.4);
}

.show-more-episodes-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.show-more-episodes-btn:hover i {
    transform: translateY(2px);
}

.day .show-more-episodes-btn {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.5);
    color: #059669;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.day .show-more-episodes-btn:hover {
    background: #059669;
    color: #ffffff;
}

.episodes-collapse-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.show-less-episodes-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-less-episodes-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #F3F4F6;
    transform: translateY(-1px);
}

.show-less-episodes-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.show-less-episodes-btn:hover i {
    transform: translateY(-2px);
}

.day .show-less-episodes-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4B5563;
}

.day .show-less-episodes-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
}

/* ==========================================================================
   Music Sara Page & Cards (Faithfully replicated from Android version)
   ========================================================================== */
.music-sara-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 6px 14px 110px;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.music-sara-header-block {
    margin-bottom: 18px;
}

.music-sara-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 14px;
}

.music-sara-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.music-sara-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.music-sara-header-titles {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.music-sara-header-title-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-sara-header-icon-badge {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.music-sara-header-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.music-sara-header-subtitle-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.music-sara-total-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 5px 12px;
    border-radius: 10px;
    color: #10B981;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.music-sara-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 14px;
    margin-top: 14px;
    gap: 10px;
    transition: all 0.25s ease;
}

.music-sara-search-box:focus-within {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.18);
}

.music-sara-search-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.music-sara-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    text-align: right;
    padding: 0;
}

.music-sara-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.music-sara-search-clear-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 2px;
    font-size: 13px;
    transition: color 0.2s ease;
}

.music-sara-search-clear-btn:hover {
    color: #ffffff;
}

.music-sara-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.music-sara-play-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.music-sara-play-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    filter: brightness(1.08);
}

.music-sara-play-all-btn i {
    font-size: 13px;
}

.music-sara-filters-scroll {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.music-sara-filter-chip {
    padding: 6px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-sara-filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.music-sara-filter-chip.is-active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
    color: #10B981;
    font-weight: 700;
}

/* Card Container */
.music-sara-card {
    background: rgba(22, 26, 36, 0.88);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 11px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-sara-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(26, 31, 44, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.music-sara-card.is-active {
    border-color: rgba(16, 185, 129, 0.75);
    background: rgba(15, 38, 28, 0.95);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.music-sara-card-main-content {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    gap: 13px;
    user-select: none;
}

.music-sara-poster-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1C222D;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.music-sara-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-sara-poster-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8.5px;
    backdrop-filter: blur(2px);
}

.music-sara-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.music-sara-music-title {
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.2s ease;
}

.music-sara-music-title.is-active {
    color: #34D399;
}

.music-sara-anime-title {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.2s ease;
}

.music-sara-anime-title:hover {
    color: #10B981;
}

.music-sara-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.music-sara-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 6px;
    color: #9CA3AF;
    font-size: 10px;
    font-weight: 500;
}

.music-sara-time-badge i {
    font-size: 9.5px;
}

.music-sara-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.music-sara-type-badge.type-op {
    background: rgba(244, 63, 94, 0.12);
    color: #F43F5E;
}

.music-sara-type-badge.type-ed {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
}

.music-sara-added-date {
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

.music-sara-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F3F4F6;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.music-sara-play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.music-sara-play-btn.is-active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    color: #10B981;
}

.music-sara-play-btn i {
    font-size: 14px;
}

.music-sara-mini-equalizer {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5px;
    height: 16px;
    width: 16px;
}

.music-sara-mini-bar {
    width: 2.8px;
    background: #10B981;
    border-radius: 2px;
    animation: saraEqualizerWave 0.75s ease-in-out infinite alternate;
}

.music-sara-mini-bar:nth-child(1) {
    animation-delay: 0s;
    height: 8px;
}

.music-sara-mini-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 14px;
}

.music-sara-mini-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 10px;
}

@keyframes saraEqualizerWave {
    0% {
        transform: scaleY(0.3);
    }
    100% {
        transform: scaleY(1);
    }
}

/* Card Bottom Actions */
.music-sara-card-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.16);
}

.music-sara-reactions-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.music-sara-reaction-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-sara-reaction-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.music-sara-reaction-btn.is-like {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.music-sara-reaction-btn.is-dislike {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.music-sara-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: rgba(239, 68, 68, 0.85);
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-sara-remove-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #EF4444;
}

.music-sara-remove-btn i {
    font-size: 11px;
}

/* Empty State */
.music-sara-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.music-sara-empty-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.05) 100%);
    color: #10B981;
    font-size: 36px;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.music-sara-empty-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.music-sara-empty-subtitle {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 22px;
    max-width: 480px;
    margin-bottom: 24px;
}

.music-sara-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.music-sara-explore-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    filter: brightness(1.08);
    color: #fff;
}

/* Day Mode Adaptations */
.day .music-sara-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.day .music-sara-card:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.day .music-sara-card.is-active {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10B981;
}

.day .music-sara-music-title {
    color: #111827;
}

.day .music-sara-anime-title {
    color: #6B7280;
}

.day .music-sara-header-title-text {
    color: #111827;
}

.day .music-sara-header-subtitle-text {
    color: #6B7280;
}

.day .music-sara-back-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #111827;
}

.day .music-sara-search-box {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.day .music-sara-search-input {
    color: #111827;
}

.day .music-sara-search-input::placeholder {
    color: #9CA3AF;
}

.day .music-sara-search-icon {
    color: #9CA3AF;
}

.day .music-sara-filter-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #4B5563;
}

.day .music-sara-filter-chip:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.day .music-sara-play-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.day .music-sara-card-actions-row {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.day .music-sara-reaction-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #6B7280;
}

.day .music-sara-empty-title {
    color: #111827;
}

.day .music-sara-empty-subtitle {
    color: #6B7280;
}

