/* ============================================
   黄果短剧 - 含羞草黄主题
   Warm / Golden / Premium / Seductive
   ============================================ */

/* === CSS Variables Override === */
:root {
    --tpl-bg-base: #fffdf5 !important;
    --tpl-bg-card: #fffaf0 !important;
    --tpl-bg-hover: #fff5e0 !important;
    --tpl-text: #3d2b00 !important;
    --tpl-text-subtle: #8a7040 !important;
    --tpl-border: #f0e0b0 !important;
    --hg-accent: #e89010;
    --hg-accent-dark: #c97800;
    --hg-accent-glow: rgba(232, 144, 16, 0.3);
    --hg-gold: #d4a017;
    --hg-warm: #f5b042;
    --hg-cream: #fff8e7;
    --hg-gradient: linear-gradient(180deg, #fffdf5 0%, #fff8e7 50%, #fff5e0 100%);
    --hg-card-gradient: linear-gradient(180deg, #fffaf0 0%, #fff5e0 100%);
    --hg-accent-gradient: linear-gradient(135deg, #f5b042 0%, #e89010 100%);
    --hg-sexy-gradient: linear-gradient(135deg, #ffb347 0%, #e89010 50%, #c97800 100%);
}

/* === Body Background === */
body {
    background: var(--hg-gradient) !important;
    background-attachment: fixed !important;
    color: var(--tpl-text) !important;
}

body.bstem {
    background: var(--hg-gradient) !important;
    color: var(--tpl-text) !important;
}

/* Override dark theme completely */
body.bstem, .bstem .head_box, .bstem .head_box.nav_top,
.bstem .play_boxbg, .bstem .foot, .bstem #graypage,
.bstem .mac_results, .bstem .listnow.nav_fixed,
.bstem .rank_hom .rank_info, .bstem .remaining_w,
.bstem .hot_banner, .bstem .content_desc .hidden_btn,
.bstem .content_desc .show_btn, .bstem .foot_mnav,
.bstem .gbook_form textarea, .bstem .msg_code input,
.bstem .page li .num, .bstem .page li a,
.bstem .qrcode_text, .bstem .art_navlist,
.bstem .detail_list, .bstem .dropdown,
.bstem .hl_content, .bstem .hom_sm_list .smlist_box,
.bstem .input_row .pannel, .bstem .input_wrap .comm,
.bstem .mac_report .remaining-r, .bstem .commlist_row .pannel,
.bstem .hongbo_tips, .bstem .content_playlist li a,
.bstem .head_user li .user .user_list, .bstem .all_menu_box,
.bstem .am-share-footer .copy_btn, .bstem .am-share-footer .share_btn,
.bstem .am-share-url, .bstem .actor_part,
.bstem .mac_pop .pop_top, .bstem #rating.rating-list {
    background: var(--hg-cream) !important;
    color: var(--tpl-text) !important;
}

/* === Header === */
.head_box, .bstem .head_box.nav_top {
    background: rgba(255, 253, 245, 0.92) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(232, 144, 16, 0.15) !important;
    box-shadow: 0 2px 12px rgba(200, 150, 50, 0.08) !important;
}

.bstem .head_box.nav_top .top_ico a,
.bstem .head_box.nav_top a,
.bstem .head_menu_a a, .bstem .head_menu_b a.menu,
.bstem .head_user a, .bstem .head_hot_search a,
.bstem .hot_search_tit, .bstem .head_user li a,
.head_user li a, .head_menu_a a, .head_menu_b a.menu,
.head_user a, .head_hot_search a, .hot_search_tit {
    color: var(--tpl-text) !important;
}

.head_menu_a a:hover, .head_menu_b a.menu:hover {
    color: var(--hg-accent) !important;
    text-shadow: 0 0 8px var(--hg-accent-glow) !important;
}

/* Search bar */
.head_hot_search, .mac_results {
    background: rgba(255, 250, 240, 0.95) !important;
    border: 1px solid rgba(232, 144, 16, 0.2) !important;
    border-radius: 24px !important;
}

.head_hot_search input {
    background: transparent !important;
    color: var(--tpl-text) !important;
}

/* Logo */
.head_logo .logo_w { display: block !important; }
.head_logo .white_logo { display: none !important; }

/* === Banner === */
.home-banner, .banner_box {
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
}

.home-banner::after, .banner_box::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(to top, var(--hg-cream) 0%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* === Video Cards === */
.module_vod .vodlist_item, .img-list li,
.vodlist_item, .silder-cnt .img-list li {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--hg-card-gradient) !important;
}

.module_vod .vodlist_item .thumb, .img-list li .thumb,
.vodlist_item .thumb img, .img-list li img {
    border-radius: 12px !important;
    transition: all 0.4s ease !important;
}

/* Card hover - warm golden glow */
.module_vod .vodlist_item:hover, .img-list li:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(232, 144, 16, 0.2), 0 0 0 1px rgba(232, 144, 16, 0.1) !important;
}

.module_vod .vodlist_item:hover .thumb img, .img-list li:hover img {
    transform: scale(1.08) !important;
    filter: brightness(1.05) saturate(1.15) !important;
}

/* Thumbnail gradient overlay */
.vodlist_item .thumb::after, .img-list li .thumb::after,
.module_vod .vodlist_item .thumb::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(255, 248, 231, 0.85) 0%, rgba(255, 248, 231, 0.15) 35%, transparent 60%) !important;
    border-radius: 12px !important;
    pointer-events: none !important;
}

/* Card title */
.vodlist_title a, .module_vod .vodlist_title a,
.classify_item, .bstem .vodlist_title a {
    color: var(--tpl-text) !important;
    font-weight: 600 !important;
}

.vodlist_title a:hover {
    color: var(--hg-accent) !important;
}

/* === Category Tabs === */
.latest-tab-nav .nav-list li span {
    border-radius: 20px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
    color: var(--tpl-text) !important;
}

.latest-tab-nav .nav-list li.current span,
.latest-tab-nav .nav-list li:hover span {
    background: var(--hg-accent-gradient) !important;
    color: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px var(--hg-accent-glow) !important;
    text-shadow: none !important;
}

/* === Badges === */
.vod_remarks, .vodlist_item .remarks, .thumb .remarks {
    background: var(--hg-accent-gradient) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-shadow: none !important;
}

.vod_class span, .vod_tag {
    background: rgba(232, 144, 16, 0.12) !important;
    color: var(--hg-accent-dark) !important;
    border: 1px solid rgba(232, 144, 16, 0.25) !important;
    border-radius: 4px !important;
    padding: 1px 6px !important;
    font-size: 10px !important;
}

/* === Section Titles === */
.layout .title::before, .module .title::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 20px !important;
    background: var(--hg-accent-gradient) !important;
    border-radius: 2px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* === Play Page === */
.play_boxbg, .bstem .play_boxbg {
    background: var(--hg-gradient) !important;
}

.player_video {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(232, 144, 16, 0.12) !important;
}

/* Play list */
.content_playlist li a, .play_list li a {
    background: var(--hg-card-gradient) !important;
    border: 1px solid var(--tpl-border) !important;
    border-radius: 8px !important;
    color: var(--tpl-text) !important;
    transition: all 0.3s ease !important;
}

.content_playlist li a:hover, .play_list li a:hover,
.content_playlist li a.current, .play_list li a.current {
    background: var(--hg-accent-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px var(--hg-accent-glow) !important;
}

/* === Detail Page === */
.vod_detail, .detail_box, .play_box,
.detail_list, .hl_content, .pannel {
    background: var(--hg-bg-card) !important;
    border-radius: 16px !important;
    border: 1px solid var(--tpl-border) !important;
}

/* === Footer === */
.foot, .footer, .bstem .foot {
    background: rgba(255, 250, 240, 0.95) !important;
    border-top: 1px solid rgba(232, 144, 16, 0.1) !important;
    color: var(--tpl-text-subtle) !important;
}

/* === Buttons === */
.btn-primary, .mac-btn-primary, .user_buy a,
.popedom_upgrade_btn, .upgrade_btn {
    background: var(--hg-accent-gradient) !important;
    border: none !important;
    border-radius: 24px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px var(--hg-accent-glow) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .mac-btn-primary:hover, .user_buy a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(232, 144, 16, 0.4) !important;
}

/* === Login === */
.auth-ui, .login_box, .reg_box {
    background: var(--hg-bg-card) !important;
    border-radius: 16px !important;
    border: 1px solid var(--tpl-border) !important;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: var(--hg-cream) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--hg-accent-gradient) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hg-accent-dark) !important;
}

/* === Selection === */
::selection {
    background: var(--hg-warm) !important;
    color: #fff !important;
}

/* === Skeleton Loading === */
.home-skeleton-card .thumb, .home-skeleton .thumb {
    background: linear-gradient(90deg, #fff5e0, #ffefcc, #fff5e0) !important;
}

/* === Rank List === */
.rank_hom .rank_info, .rank-list .rank_item {
    background: var(--hg-card-gradient) !important;
    border: 1px solid var(--tpl-border) !important;
    border-radius: 12px !important;
}

.rank_item .rank_num {
    color: var(--hg-accent) !important;
    font-weight: 700 !important;
}

/* === Tag Wall === */
.vod_tagwall a, .tag-wall a {
    background: var(--hg-card-gradient) !important;
    border: 1px solid var(--tpl-border) !important;
    border-radius: 16px !important;
    color: var(--tpl-text-subtle) !important;
    transition: all 0.3s ease !important;
}

.vod_tagwall a:hover, .tag-wall a:hover {
    background: rgba(232, 144, 16, 0.1) !important;
    border-color: var(--hg-accent) !important;
    color: var(--hg-accent-dark) !important;
}

/* === VIP Badge === */
.vip-icon, .member-badge, .group_vip {
    background: linear-gradient(135deg, #d4a017, #b8860b) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 1px 6px !important;
    font-size: 10px !important;
}

/* === Filter Bar === */
.screen_list.sx_tz li a, .mac-cat-filter-item {
    background: var(--hg-card-gradient) !important;
    border: 1px solid var(--tpl-border) !important;
    border-radius: 16px !important;
    color: var(--tpl-text-subtle) !important;
    transition: all 0.3s ease !important;
}

.screen_list.sx_tz li a:hover, .mac-cat-filter-item:hover,
.screen_list.sx_tz li a.current, .mac-cat-filter-item.active {
    background: rgba(232, 144, 16, 0.1) !important;
    border-color: var(--hg-accent) !important;
    color: var(--hg-accent-dark) !important;
}

/* === Pagination === */
.page li .num, .page li a {
    background: var(--hg-card-gradient) !important;
    border: 1px solid var(--tpl-border) !important;
    border-radius: 8px !important;
    color: var(--tpl-text) !important;
}

.page li .num:hover, .page li a:hover,
.page li .current {
    background: var(--hg-accent-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* === Glow for Featured === */
@keyframes hg-glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(232, 144, 16, 0.15); }
    50% { box-shadow: 0 0 20px rgba(232, 144, 16, 0.3); }
}

/* === Override ALL bstem dark styles === */
.bstem a, .bstem a:link, .bstem h1, .bstem h2, .bstem h3,
.bstem h4, .bstem h5, .bstem h6, .bstem input, .bstem textarea,
.bstem p, .bstem span, .bstem div, .bstem li, .bstem td, .bstem th,
.bstem .head_user li .user a.mac_user_n,
.bstem .head_hot_search a, .bstem .hot_search_tit,
.bstem .comm_content, .bstem .themecolor p,
.bstem .screen_list.sx_tz li a,
.bstem .mac-catalog-show .wrapper_fl .screen_list li button {
    color: var(--tpl-text) !important;
}

.bstem .header:after, .bstem .mac_results li {
    border-bottom: 1px solid var(--tpl-border) !important;
}

.bstem .head_menu_b a.menu, .bstem .split_line {
    border-right: 1px solid var(--tpl-border) !important;
    background-color: var(--tpl-border) !important;
}

.bstem .all_menu_box:after {
    border-color: transparent transparent var(--hg-cream) !important;
}

/* Links */
a, a:link {
    color: var(--hg-accent-dark) !important;
}

a:hover {
    color: var(--hg-accent) !important;
}

/* === Mobile === */
@media (max-width: 768px) {
    .module_vod .vodlist_item:hover, .img-list li:hover {
        transform: none !important;
    }
    .head_box {
        background: rgba(255, 253, 245, 0.95) !important;
    }
}


/* === Logo: Replace Lottie with Text Logo === */
.head_logo .mac-logo, .head_logo img[src*="logo.json"], 
.head_logo img[src*="logo-black.json"],
.head_logo .mac-logo--head-pending {
    display: none !important;
}

.head_logo .logo, .head_logo a.logo_b {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #f5b042 0%, #e89010 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
}

.head_logo .logo::before {
    content: '黄果短剧' !important;
}

.head_logo .logo img {
    display: none !important;
}

/* Footer logo */
.foot_logo, .mac-logo--foot {
    display: none !important;
}

.foot .foot_logo_text, .foot_logo_wrap {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #e89010 !important;
}

.foot .foot_logo_text::before {
    content: '黄果短剧 · AI短剧平台' !important;
}

/* Hide lottie preload */
link[rel="preload"][href*="logo.json"] {
    display: none !important;
}


/* === Banner: Hide movie names === */
.hot_banner .vodlist_item .vodlist_titbox,
.hot_banner .vodlist_item .vodlist_title,
.hot_banner .vodlist_item .vodlist_title a,
.hot_banner .swiper-wrapper .vodlist_titbox,
.hot_banner .swiper-wrapper .vodlist_title,
.hot_banner .swiper-wrapper .vodlist_title a,
#js-home-banner-list .vodlist_titbox,
#js-home-banner-list .vodlist_title,
#js-home-banner-list .vodlist_title a,
.banner_ms_small .vodlist_titbox,
.banner_ms_small .vodlist_title,
.banner_ms_small .vodlist_title a {
    display: none !important;
}

/* Banner cards - make them pure visual */
.hot_banner .vodlist_item,
#js-home-banner-list .vodlist_item {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.hot_banner .vodlist_thumb,
#js-home-banner-list .vodlist_thumb {
    border-radius: 12px !important;
    height: 100% !important;
}

/* === 写真图集 Section === */
.hg-photo-section {
    margin: 20px 0;
    padding: 0;
}

.hg-photo-section .hg-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #3d2b00;
}

.hg-photo-section .hg-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, #f5b042 0%, #e89010 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.hg-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.hg-photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.35s ease;
    background: linear-gradient(135deg, #fff5e0, #ffefcc);
}

.hg-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 144, 16, 0.25);
}

.hg-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hg-photo-card:hover img {
    transform: scale(1.08);
}

.hg-photo-card .hg-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px 10px;
    background: linear-gradient(to top, rgba(61, 43, 0, 0.85), transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.hg-photo-card .hg-photo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f5b042, #e89010);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.hg-photo-more {
    text-align: center;
    margin-top: 16px;
}

.hg-photo-more a {
    display: inline-block;
    padding: 8px 28px;
    background: linear-gradient(135deg, #f5b042, #e89010);
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(232, 144, 16, 0.3);
    transition: all 0.3s ease;
}

.hg-photo-more a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 144, 16, 0.4);
}

@media (max-width: 768px) {
    .hg-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .hg-photo-card:hover {
        transform: none;
    }
}
