/* Alpha Script - Dynamic Theme Layer
   يعتمد على CSS variables المطبوعة من includes/theme.php داخل header.php */

html, body { background: var(--alpha-page-bg) !important; color: var(--alpha-text) !important; }
body, p, li, dt, dd, label, .caption, .video-details, .series-description { color: var(--alpha-text); }
a { color: var(--alpha-link); }
a:hover, a:focus { color: var(--alpha-primary-hover); }

/* Header / Search */
.admin-header { background: var(--alpha-header-bg) !important; color: var(--alpha-header-text) !important; border-bottom-color: var(--alpha-primary) !important; }
.admin-header .logo, .admin-header .logo a, .admin-header .user-info, .admin-header .username-btn, .admin-header .toggle-btn { color: var(--alpha-header-text) !important; }
.search-form.desktop-search, .search-form, .mobile-search-box input { background: var(--alpha-input-bg) !important; border-color: var(--alpha-border) !important; }
.search-form input, .mobile-search-box input { color: var(--alpha-input-text) !important; }
.search-form button, .mobile-search-box button { background: var(--alpha-primary) !important; color: var(--alpha-button-text) !important; }

/* Sidebar */
.admin-sidebar, .navslide-wrap { background: var(--alpha-sidebar-bg) !important; }
.admin-sidebar a, .admin-sidebar li, .navslide-wrap a, .navslide-wrap li, .navslide-header, .category-toggle { color: var(--alpha-sidebar-text) !important; }
.admin-sidebar a:hover, .admin-sidebar .nav-menu-item-active > a, .navslide-wrap a:hover { color: var(--alpha-primary) !important; }
.navslide-divider { border-color: var(--alpha-border) !important; }

/* Main surfaces */
#content, #content-main, .container-fluid, .pm-new-videos-page, .alpha-category-page, .series-page { background-color: var(--alpha-page-bg) !important; }
.thumbnail, .category-card, .alpha-series-card, .series-episode-card, .publisher-card, .series-info, .video-details, .pm-video-description { border-color: var(--alpha-border) !important; }
.thumbnail, .category-card, .series-episode-card, .publisher-card { background-color: var(--alpha-card-bg) !important; }

/* Section headings */
.pm-section-head h2, .pm-section-head h3, .category-title, .category-name, .alpha-category-hero, .alpha-category-title,
.series-seasons-title, .alpha-seasons-title, .alpha-seasons-wrapper > .alpha-seasons-title {
    background-color: var(--alpha-primary) !important;
    color: var(--alpha-button-text) !important;
    border-color: var(--alpha-primary) !important;
}
.alpha-category-hero-title { color: var(--alpha-button-text) !important; }

/* Titles / text */
.alpha-series-title a, .alpha-series-title a:link, .alpha-series-title a:visited,
.category-card-title a, .series-episode-title, .series-episode-title a, .publisher-title a {
    color: var(--alpha-text) !important;
}
.alpha-series-title a:hover, .category-card-title a:hover, .series-episode-title a:hover, .publisher-title a:hover { color: var(--alpha-primary) !important; }
.alpha-series-count, .category-series-info, .series-status, .series-count, .pm-video-posting-info, .info-line { color: var(--alpha-muted) !important; }

/* Buttons */
.btn-primary, .publisher-watch-btn, .edit-btn, .download-links a, #show-more-btn,
.alpha-current-episode, .alpha-season-btn.active, .series-season-tab.active,
.server-buttons button.active, .server-buttons button:hover,
.category-pagination li.active a, .alpha-category-pagination li.active a,
.category-pagination a:hover, .alpha-category-pagination a:hover {
    background-color: var(--alpha-button-bg) !important;
    border-color: var(--alpha-primary) !important;
    color: var(--alpha-button-text) !important;
}
.server-buttons button, .alpha-season-btn, .series-season-tab, .alpha-episode-btn,
.alpha-nav-button, .category-pagination a, .alpha-category-pagination a {
    border-color: var(--alpha-primary) !important;
}
.server-buttons button { color: var(--alpha-primary) !important; }

/* Seasons / episodes */
.alpha-seasons-wrapper, .alpha-episodes-area, .series-container { background: var(--alpha-content-bg) !important; }
.alpha-season-btn, .series-season-tab { background: var(--alpha-card-bg) !important; color: var(--alpha-text) !important; }
.alpha-episode-btn { background: var(--alpha-primary) !important; color: var(--alpha-button-text) !important; }
.alpha-episode-btn.alpha-current-episode, .alpha-episode-btn.current, .alpha-episode-btn.active { background: var(--alpha-active-bg) !important; color: var(--alpha-active-text) !important; }
.alpha-nav-button { background: var(--alpha-card-bg) !important; color: var(--alpha-text) !important; }
.alpha-nav-button:hover { background: var(--alpha-primary) !important; color: var(--alpha-button-text) !important; }

/* Watch / Play */
.server-buttons button { background: var(--alpha-card-bg) !important; }
.video-player, .video-bibplayer, .wide-player, .pm-video-watch-featured { border-color: var(--alpha-player-border) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--alpha-player-border) 55%, transparent) !important; }
.watch-category-link, .username, strong, h1 { color: var(--alpha-primary) !important; }

/* Forms */
input, textarea, select { background-color: var(--alpha-input-bg); color: var(--alpha-input-text); border-color: var(--alpha-border); }

/* Footer */
.site-footer, .container-footer, footer { background-color: var(--alpha-footer-bg) !important; color: var(--alpha-footer-text) !important; border-color: var(--alpha-border) !important; }
.site-footer a, .container-footer a, footer a { color: var(--alpha-footer-text); }
.site-footer a:hover, .container-footer a:hover, footer a:hover { color: var(--alpha-primary) !important; }

/* Common accent replacements */
.label-danger, .badge-danger { background-color: var(--alpha-primary) !important; }
.pm-label-duration { background-color: rgba(0,0,0,.82) !important; color:#fff !important; }
hr { border-color: var(--alpha-border) !important; }


/* =========================================================
   Dynamic accent coverage - hard-coded legacy theme areas
   ========================================================= */

/* Home slider / legacy arrows */
.sliePrev, .slieNext,
.slick-prev, .slick-next,
.pm-featured-cat-row .pm-section-head .btn.slick-arrow,
.pm-section-head .btn-group .btn.slick-arrow {
    background: var(--alpha-primary) !important;
    background-color: var(--alpha-primary) !important;
    border-color: var(--alpha-primary) !important;
    color: var(--alpha-button-text) !important;
}
.sliePrev:hover, .slieNext:hover,
.slick-prev:hover, .slick-next:hover,
.pm-featured-cat-row .pm-section-head .btn.slick-arrow:hover,
.pm-section-head .btn-group .btn.slick-arrow:hover {
    background: var(--alpha-primary-hover) !important;
    background-color: var(--alpha-primary-hover) !important;
}

/* Main navigation / mobile drawer active states */
.pm-top-nav,
.navslide-wrap ul li.nav-menu-item-active,
.navslide-wrap ul li.nav-menu-item-active > a,
.navslide-wrap ul li a.active,
.navslide-wrap ul li.active > a,
.admin-sidebar ul li.nav-menu-item-active,
.admin-sidebar ul li.nav-menu-item-active > a,
.admin-sidebar ul li.active > a {
    background: var(--alpha-primary) !important;
    background-color: var(--alpha-primary) !important;
    color: var(--alpha-button-text) !important;
}
.navslide-wrap ul li.nav-menu-item-active i,
.navslide-wrap ul li.nav-menu-item-active .mico,
.admin-sidebar ul li.nav-menu-item-active i {
    color: var(--alpha-button-text) !important;
}
.navslide-wrap ul li > a:hover,
.admin-sidebar ul li > a:hover {
    background: var(--alpha-primary) !important;
    background-color: var(--alpha-primary) !important;
    color: var(--alpha-button-text) !important;
}

/* Legacy section bars / badges / buttons */
.pm-section-title,
.pm-section-head h1,
.pm-section-head h2,
.pm-section-head h3,
.pm-section-head h4,
.label-danger,
.badge-danger,
.btn-danger,
.bg-danger,
.alert-danger .btn,
.SeasonsBoxUL.seasons-serie .Tab button.active,
.SeasonsBoxUL.seasons-serie .Tab button:hover,
.SeasonsEpisodesMain a,
.now_ep,
.video-play-button:after {
    background: var(--alpha-primary) !important;
    background-color: var(--alpha-primary) !important;
    border-color: var(--alpha-primary) !important;
}

/* Header underline and accent borders */
.admin-header,
.container-footer,
.pm-section-head,
.navslide-divider {
    border-color: var(--alpha-primary) !important;
}

/* Accent text in legacy widgets */
.navslide-wrap .navslide-header a,
.pm-top-nav a,
.username,
.watch-category-link {
    color: var(--alpha-primary) !important;
}
