/* Unified Home Theme
   Applied through body.home-theme-unified in shared layouts.
   Home, Live, Login, and Register remain untouched by route scoping.
*/

body.home-theme-unified {
    --tabie-primary: #8c1723;
    --tabie-primary-strong: #75131d;
    --tabie-neutral: #3c3c3c;
    --tabie-bg: #090b18;
    --tabie-bg-2: #111429;
    --tabie-surface: #171a2d;
    --tabie-border: rgba(140, 23, 35, 0.42);
    --tabie-text: #f6f7fb;
    --tabie-muted: #b6b8c9;
    --tabie-font-family: "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    background:
        radial-gradient(1200px 700px at 10% -20%, rgba(140, 23, 35, 0.18), transparent 60%),
        radial-gradient(1000px 600px at 90% -30%, rgba(60, 60, 60, 0.3), transparent 62%),
        var(--tabie-bg);
    color: var(--tabie-text);
    font-family: var(--tabie-font-family);
    min-height: 100vh;
}

body.home-theme-unified .main-content {
    background: transparent !important;
    color: var(--tabie-text);
}

body.home-theme-unified h1,
body.home-theme-unified h2,
body.home-theme-unified h3,
body.home-theme-unified h4,
body.home-theme-unified h5,
body.home-theme-unified h6,
body.home-theme-unified .main-title,
body.home-theme-unified .item-name,
body.home-theme-unified .btn,
body.home-theme-unified input,
body.home-theme-unified textarea,
body.home-theme-unified select {
    font-family: var(--tabie-font-family);
    color: var(--tabie-text);
}

body.home-theme-unified p,
body.home-theme-unified span,
body.home-theme-unified li,
body.home-theme-unified label {
    color: var(--tabie-muted);
}

body.home-theme-unified a {
    color: var(--tabie-text);
}

body.home-theme-unified a:hover {
    color: #ffffff;
}

/* Header (non-home pages) */
body.home-theme-unified .header-center-home.header-default.header-sticky {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-theme-unified .header-center-home .navbar-inner,
body.home-theme-unified .header-center-home .landing-header,
body.home-theme-unified .header-center-home #navbar_main,
body.home-theme-unified .header-center-home .horizontal-nav {
    background: transparent !important;
}

body.home-theme-unified .header-center-home .navbar-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

body.home-theme-unified .header-center-home .nav-link .item-name {
    color: var(--tabie-muted);
    font-size: 20px;
    font-weight: 500;
    transition: color 0.25s ease;
}

body.home-theme-unified .header-center-home .nav-link:hover .item-name,
body.home-theme-unified .header-center-home .nav-link.active .item-name,
body.home-theme-unified .header-center-home .nav-item.active .item-name {
    color: var(--tabie-text);
}

body.home-theme-unified .header-center-home .user-icons,
body.home-theme-unified .header-center-home .user-icons1,
body.home-theme-unified .header-center-home .btn-icon,
body.home-theme-unified .header-center-home .btn-icon1 {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

/* Main containers */
body.home-theme-unified .section-padding,
body.home-theme-unified .details-part,
body.home-theme-unified .showEpisodesPart {
    background: transparent !important;
}

body.home-theme-unified .title-box h1,
body.home-theme-unified .title-box h2,
body.home-theme-unified .title-box h3,
body.home-theme-unified .title-box h4,
body.home-theme-unified .title-box h5 {
    color: var(--tabie-text);
}

body.home-theme-unified .title-box p {
    color: var(--tabie-muted);
}

/* Pills / tabs */
body.home-theme-unified .iq-custom-tab {
    background: rgba(17, 20, 41, 0.72);
    border: 1px solid var(--tabie-border);
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
}

body.home-theme-unified .iq-custom-tab.nav-pills .nav-item .nav-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: 10px;
    color: #d8dced;
}

body.home-theme-unified .iq-custom-tab.nav-pills .nav-item .nav-link.active {
    background: var(--tabie-primary);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

/* Cards */
body.home-theme-unified .iq-card .block-images,
body.home-theme-unified .card--transparent.__js_home-grid-card.card {
    background: linear-gradient(180deg, rgba(23, 26, 45, 0.95), rgba(17, 20, 41, 0.96));
    border: 1px solid rgba(140, 23, 35, 0.32);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

body.home-theme-unified .iq-card .img-box img,
body.home-theme-unified .cast-images .img-box img {
    border-radius: 10px;
}

body.home-theme-unified .iq-card .card-description.with-transition,
body.home-theme-unified .iq-card .block-description {
    background: linear-gradient(180deg, rgba(9, 11, 24, 0.05), rgba(9, 11, 24, 0.9));
}

body.home-theme-unified .iq-card .iq-title a,
body.home-theme-unified .iq-card .movie-time span,
body.home-theme-unified .episode-number,
body.home-theme-unified .posterInfoHead h1 {
    color: var(--tabie-text);
}

/* Buttons */
body.home-theme-unified .iq-button > a,
body.home-theme-unified .iq-button > button.btn,
body.home-theme-unified .iq-button > .btn,
body.home-theme-unified .addRemovInMyListBtn,
body.home-theme-unified .watch-list-not {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    line-height: 1.1;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

body.home-theme-unified .iq-button > a,
body.home-theme-unified .iq-button > button.btn,
body.home-theme-unified .iq-button > .btn {
    background: var(--tabie-primary);
    color: #fff !important;
}

body.home-theme-unified .addRemovInMyListBtn,
body.home-theme-unified .watch-list-not {
    background: var(--tabie-neutral);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.24);
}

body.home-theme-unified .iq-button > a:hover,
body.home-theme-unified .iq-button > button.btn:hover,
body.home-theme-unified .iq-button > .btn:hover,
body.home-theme-unified .addRemovInMyListBtn:hover,
body.home-theme-unified .watch-list-not:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    color: #fff !important;
}

body.home-theme-unified .iq-button .btn.rounded-circle,
body.home-theme-unified .movie-time .btn.rounded-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tabie-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.home-theme-unified .watchlist-label {
    color: #fff;
}

/* Forms */
body.home-theme-unified .form-control,
body.home-theme-unified .textWithIcon input.form-control,
body.home-theme-unified .contact-form .form-control {
    background: rgba(28, 30, 44, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--tabie-text) !important;
    border-radius: 12px;
}

body.home-theme-unified .form-control::placeholder,
body.home-theme-unified .textWithIcon input.form-control::placeholder {
    color: #9ea3bb !important;
    opacity: 1;
}

body.home-theme-unified .form-control:focus,
body.home-theme-unified .textWithIcon input.form-control:focus,
body.home-theme-unified .contact-form .form-control:focus {
    background: rgba(28, 30, 44, 0.98) !important;
    border-color: rgba(140, 23, 35, 0.85);
    box-shadow: 0 0 0 0.2rem rgba(140, 23, 35, 0.2);
    color: #fff !important;
}

body.home-theme-unified .textWithIcon .iconCtrl {
    color: #e6e9f6;
}

/* Show / watch pages */
body.home-theme-unified .mainSliderSection .mainSlider,
body.home-theme-unified .video-container.iq-main-slider {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

body.home-theme-unified #sidebar {
    background: rgba(10, 13, 23, 0.95);
    border-inline-start: 1px solid rgba(140, 23, 35, 0.4);
}

body.home-theme-unified #sidebar-toggle,
body.home-theme-unified #sidebar-close {
    background: rgba(17, 20, 41, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

body.home-theme-unified .skipIntroDiv .btn {
    background: var(--tabie-primary);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Contact / privacy */
body.home-theme-unified .iq-breadcrumb {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-theme-unified .contactInfoLeftText h5,
body.home-theme-unified .contactInfoLeftText span,
body.home-theme-unified .contactInfoLeftText a,
body.home-theme-unified .widget_social_media i {
    color: var(--tabie-text) !important;
}

/* Footer */
body.home-theme-unified .footer.footer-default {
    background: rgba(7, 9, 18, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-theme-unified .footer.footer-default,
body.home-theme-unified .footer.footer-default a,
body.home-theme-unified .footer.footer-default p,
body.home-theme-unified .footer.footer-default li {
    color: #d7d9e7;
}

body.home-theme-unified .footer.footer-default h4,
body.home-theme-unified .footer.footer-default h5,
body.home-theme-unified .footer.footer-default h6 {
    color: #fff;
}

/* LTR readability for English views */
html[dir="ltr"] body.home-theme-unified .header-center-home .nav-link .item-name {
    letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 991px) {
    body.home-theme-unified .header-center-home .nav-link .item-name {
        font-size: 17px;
    }

    body.home-theme-unified .iq-custom-tab {
        overflow-x: auto;
        flex-wrap: nowrap !important;
    }

    body.home-theme-unified .iq-button > a,
    body.home-theme-unified .iq-button > button.btn,
    body.home-theme-unified .iq-button > .btn,
    body.home-theme-unified .addRemovInMyListBtn,
    body.home-theme-unified .watch-list-not {
        font-size: 16px;
        padding: 9px 14px;
    }
}

@media (max-width: 576px) {
    body.home-theme-unified .header-center-home.header-default.header-sticky {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.home-theme-unified .iq-card .block-images,
    body.home-theme-unified .card--transparent.__js_home-grid-card.card {
        border-radius: 12px;
    }
}
