/* =====================================================================
   MovieDokan – genre / taxonomy archive banner + filters (taxonomy.php)
   Loaded after custom.css so these rules win.
   ===================================================================== */

/* ---------- GENRE / TAXONOMY ARCHIVE ---------- */
.md-tax-banner {
    position: relative; overflow: hidden; isolation: isolate;
    margin: 0 0 14px; padding: 26px 24px 22px; border-radius: 18px;
    background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--md-tax-c, #e50914) 55%, transparent) 0%, transparent 60%),
                linear-gradient(135deg, #17090b, #0e0e13 70%);
    border: 1px solid rgba(255,255,255,.07);
}
.md-tax-banner .md-tax-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--md-tax-c, #e50914) 55%, #fff); }
.md-tax-banner { display: block; float: none; clear: both; }
.md-tax-banner h1.md-tax-title { margin: 4px 0 0 !important; padding: 0 !important; font-size: 32px !important; line-height: 1.1 !important; font-weight: 900 !important; color: #fff !important; text-align: left !important; background: none !important; }
.md-tax-banner .md-tax-stats { margin-top: 8px; font-size: 13.5px; color: #b6b9c4; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.md-tax-banner .md-tax-stats b { color: #fff; }
.md-tax-banner .md-tax-stats .is-new { color: #4ade80; }
.md-tax-banner .md-tax-logo {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: -1;
    width: 110px; height: 110px; border-radius: 50%; opacity: .9;
    box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 20px 50px -10px rgba(0,0,0,.8);
}
.md-tax-banner .md-tax-ic { position: absolute; right: -6px; bottom: -26px; z-index: -1; font-size: 130px; line-height: 1; opacity: .1; }
.md-tax-banner .md-tax-desc { margin-top: 10px; max-width: 620px; font-size: 13.5px; line-height: 1.55; color: #a3a6b2; }
.md-tax-banner .md-tax-desc p { margin: 0; }

.md-tax-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.md-tax-bar a, .md-tax-sort select {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 15px; border-radius: 20px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    color: #d5d7df !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; cursor: pointer; font-family: inherit;
}
.md-tax-bar a.is-on { background: #e50914; border-color: #e50914; color: #fff !important; }
.md-tax-bar a .md-n { font-size: 11.5px; font-weight: 700; opacity: .7; }
.md-tax-sort { position: relative; margin-left: auto; flex: none; }
.md-tax-sort select {
    -webkit-appearance: none; appearance: none; padding: 0 30px 0 32px; outline: 0;
    background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.md-tax-sort select option { background: #17181f; color: #fff; }
.md-tax-sort:before { content: "⇅"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #d5d7df; pointer-events: none; }
.md-tax-empty { padding: 40px 10px; text-align: center; color: #8b8d98; font-size: 14px; }

@media (max-width: 767px) {
    .md-tax-banner { padding: 20px 16px 18px; border-radius: 16px; }
    .md-tax-banner { display: block; float: none; clear: both; }
.md-tax-banner h1.md-tax-title { font-size: 26px !important; }
    .md-tax-banner .md-tax-stats { font-size: 12.5px; }
    .md-tax-banner .md-tax-logo { width: 76px; height: 76px; right: 14px; }
    .md-tax-banner .md-tax-ic { font-size: 100px; }
    .md-tax-bar { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding-left: 2px; overflow-y: visible; }
    .md-tax-bar::-webkit-scrollbar { display: none; }
    .md-tax-bar a { height: 32px; padding: 0 13px; font-size: 13px; flex: none; }
    .md-tax-sort select { height: 32px; font-size: 13px; }
    /* 3 posters per row on phones (genre pages only) */
    .module .content.md-tax-page .items:not(.owl-carousel):not(.owl-theme) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 7px; }
    .module .content.md-tax-page .items .item { padding: 4px 4px 8px; border-radius: 10px; }
    .module .content.md-tax-page .items .item .poster { border-radius: 7px; }
    .module .content.md-tax-page .items .item .data { padding: 6px 1px 0; }
    .module .content.md-tax-page .items .item .data h3,
    .module .content.md-tax-page .items .item .data h3 a { font-size: 11.5px !important; line-height: 1.3 !important; }
    .module .content.md-tax-page .items .item .posted-time { font-size: 10px !important; }
}

/* ---------- ICONS in the Info / Screenshot / Watch Online / Download buttons (inc/parts/single/md-jump.php) ----------
   The buttons keep the theme's old tab look (ul.smenu); only the icons are new. */
ul.smenu.md-jump li[hidden] { display: none !important; }
ul.smenu.md-jump li a { gap: 7px; }
.md-jump .md-jb-ic {
    flex: none; width: 17px; height: 17px; overflow: visible;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.md-jump .md-jb-info .md-jb-ic { color: #60a5fa; }
.md-jump .md-jb-shot .md-jb-ic { color: #c084fc; }
.md-jump .md-jb-play .md-jb-ic { color: #ff4d5a; }
.md-jump .md-jb-dl   .md-jb-ic { color: #34d399; }
.md-jump .md-jb-ep   .md-jb-ic { color: #fbbf24; }
.md-jump a.selected .md-jb-ic { color: #fff; }

/* Info: the dot bounces */
.md-jump .md-jb-info .md-jb-anim { animation: md-jb-bounce 2.2s ease-in-out infinite; }
.md-jump .md-jb-ep .md-jb-anim { animation: md-jb-bounce 2.2s ease-in-out infinite; }
@keyframes md-jb-bounce { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-2.8px); } 80% { transform: translateY(0); } 88% { transform: translateY(-1.2px); } }
/* Screenshot: flash + lens click */
.md-jump .md-jb-shot .md-jb-anim { transform-box: fill-box; transform-origin: center; animation: md-jb-flash 3s ease-in-out infinite; }
.md-jump .md-jb-shot .md-jb-lens { transform-box: fill-box; transform-origin: center; animation: md-jb-lens 3s ease-in-out infinite; }
@keyframes md-jb-flash { 0%, 72%, 100% { transform: scale(1); opacity: 1; } 78% { transform: scale(2.6); opacity: .35; } 86% { transform: scale(1); opacity: 1; } }
@keyframes md-jb-lens { 0%, 72%, 100% { transform: scale(1); } 78% { transform: scale(.72); } 86% { transform: scale(1); } }
/* Watch Online: play heartbeat + ripple ring */
.md-jump .md-jb-play .md-jb-anim { transform-box: fill-box; transform-origin: center; animation: md-jb-beat 1.8s ease-in-out infinite; }
.md-jump .md-jb-play .md-jb-ring { transform-box: fill-box; transform-origin: center; animation: md-jb-ring 1.8s ease-out infinite; }
@keyframes md-jb-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } }
@keyframes md-jb-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
/* Download: arrow drops into the tray */
.md-jump .md-jb-dl .md-jb-anim { animation: md-jb-drop 1.6s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes md-jb-drop { 0% { transform: translateY(-4px); opacity: 0; } 25% { opacity: 1; } 60% { transform: translateY(1.5px); } 75%, 100% { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .md-jump .md-jb-anim, .md-jump .md-jb-ring, .md-jump .md-jb-lens { animation: none !important; }
}
/* phones: small buttons in two rows (2 + 2) — nothing to scroll */
@media (max-width: 767px) {
    ul.smenu.md-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 100%; padding: 4px; overflow: visible; }
    ul.smenu.md-jump li { min-width: 0; }
    ul.smenu.md-jump li a { display: flex; justify-content: center; width: 100% !important; gap: 5px; padding: 8px 6px; font-size: 12.5px; letter-spacing: 0; border-radius: 8px; }
    .md-jump .md-jb-ic { width: 14px; height: 14px; }
}
