/*
Theme Name: Blackcat Video
Theme URI: https://example.com/
Author: OpenAI
Description: A responsive dark video directory theme with a clean editorial layout.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: blackcat-video
*/
:root{--bg:#101116;--panel:#191b23;--panel2:#20232d;--text:#f4f5f7;--muted:#a4a8b5;--line:#2b2e39;--accent:#e84b75;--accent2:#ff7b59;--radius:12px;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#ff7896}img{max-width:100%;height:auto;display:block}button,input{font:inherit}.site-wrap{min-height:100vh;display:flex;flex-direction:column}.container{width:min(var(--max),calc(100% - 36px));margin-inline:auto}.site-header{background:#15161d;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-inner{min-height:72px;display:flex;align-items:center;gap:28px}.site-brand{font-size:25px;font-weight:900;letter-spacing:-.7px;white-space:nowrap}.site-brand span{color:var(--accent)}.primary-nav{display:flex;gap:20px;align-items:center;flex:1}.primary-nav a{color:#d5d7df;font-weight:600;font-size:14px}.primary-nav a:hover,.primary-nav .current-menu-item>a{color:#ff7896}.header-search{display:flex;background:#22242d;border:1px solid #333642;border-radius:999px;overflow:hidden;width:250px}.header-search input{width:100%;min-width:0;background:transparent;border:0;color:white;padding:9px 14px;outline:0}.header-search button{background:var(--accent);border:0;color:white;padding:0 15px;cursor:pointer}.menu-toggle{display:none;background:none;border:1px solid var(--line);color:white;border-radius:8px;padding:7px 10px}.site-main{flex:1;padding:30px 0 56px}.hero{background:linear-gradient(120deg,#29202b,#1c202b 58%,#20212a);border:1px solid #37303b;border-radius:18px;padding:30px;margin-bottom:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h1{font-size:clamp(25px,4vw,38px);line-height:1.2;margin:0 0 10px}.hero p{color:#c2c3cc;margin:0;max-width:680px}.hero-tag{color:#ff9bb0;font-size:12px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px;gap:16px}.section-head h1,.section-head h2{font-size:22px;margin:0;line-height:1.3}.section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px}.video-card{min-width:0}.video-thumb{position:relative;display:block;aspect-ratio:16/10;background:#252832;border-radius:10px;overflow:hidden;border:1px solid #30333e}.video-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.video-card:hover .video-thumb img{transform:scale(1.045)}.video-placeholder{height:100%;display:grid;place-items:center;color:#747988;font-size:38px}.video-duration{position:absolute;right:8px;bottom:8px;background:#08090dcc;padding:2px 7px;border-radius:5px;font-size:11px}.video-card h3{font-size:14px;line-height:1.45;margin:9px 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-meta{font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}.ad-slot{margin:24px 0;padding:10px;text-align:center;overflow:hidden}.ad-slot:empty{display:none}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.video-player{background:#050506;border:1px solid var(--line);border-radius:12px;overflow:hidden;aspect-ratio:16/9;margin-bottom:20px}.video-player iframe,.video-player video{width:100%;height:100%;border:0;display:block}.video-player-placeholder{height:100%;display:grid;place-items:center;color:var(--muted)}.entry-title{font-size:clamp(23px,3vw,32px);line-height:1.3;margin:0 0 12px}.entry-content{color:#d6d8df;font-size:15px}.entry-content a{color:#ff7896;text-decoration:underline}.entry-content img{border-radius:8px;margin:14px 0}.entry-content p{margin:0 0 1em}.video-details{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0}.video-details dl{display:grid;grid-template-columns:100px 1fr;gap:8px;margin:0}.video-details dt{color:var(--muted)}.video-details dd{margin:0}.sidebar-box{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:18px}.sidebar-box h3{font-size:16px;margin:0 0 12px}.category-list{display:flex;flex-wrap:wrap;gap:8px}.category-list a,.tag-list a{background:#252832;border:1px solid #343744;border-radius:999px;padding:5px 10px;font-size:12px;color:#d9dbe2}.pagination{display:flex;gap:8px;justify-content:center;margin:34px 0}.page-numbers{padding:8px 13px;border:1px solid var(--line);border-radius:8px;color:#ddd}.page-numbers.current{background:var(--accent);border-color:var(--accent);color:white}.empty-state{padding:50px 20px;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--muted)}.site-footer{border-top:1px solid var(--line);background:#15161d;padding:28px 0;color:var(--muted);font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.page-content{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:15px}.breadcrumbs a{color:#d7d9e0}.mobile-nav{display:none}@media(max-width:1000px){.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content-layout{grid-template-columns:minmax(0,1fr) 260px}.primary-nav{gap:13px}.header-search{width:210px}}@media(max-width:760px){.header-inner{min-height:62px;gap:12px;flex-wrap:wrap;padding:10px 0}.site-brand{font-size:22px}.menu-toggle{display:block;margin-left:auto}.primary-nav{display:none;order:4;width:100%;flex-direction:column;align-items:flex-start;padding:10px 0 4px}.primary-nav.is-open{display:flex}.header-search{order:3;width:100%;display:none}.header-search.is-open{display:flex}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.content-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sidebar-box{margin:0}.hero{padding:22px;display:block}.hero p{font-size:14px}.site-main{padding-top:20px}.section-head h1,.section-head h2{font-size:19px}}@media(max-width:440px){.container{width:calc(100% - 24px)}.video-grid{gap:16px 9px}.video-card h3{font-size:13px}.video-meta{font-size:11px}.sidebar{grid-template-columns:1fr}.page-content{padding:17px}.video-details dl{grid-template-columns:80px 1fr}}


/* Light theme */
html[data-theme="light"]{color-scheme:light;--bg:#f4f5f8;--panel:#fff;--panel2:#eef0f4;--text:#20232b;--muted:#687080;--line:#dfe2e8}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .site-header,html[data-theme="light"] .site-footer{background:#fff;border-color:var(--line)}
html[data-theme="light"] .primary-nav a{color:#343946}
html[data-theme="light"] .header-search{background:#f1f2f5;border-color:#d9dce3}
html[data-theme="light"] .header-search input{color:#20232b}
html[data-theme="light"] .theme-toggle{background:#fff;color:#343946;border-color:#d9dce3}
html[data-theme="light"] .hero{background:linear-gradient(120deg,#fff0f4,#f0f3fa 58%,#fff);border-color:#e5dce2}
html[data-theme="light"] .hero p{color:#596171}
html[data-theme="light"] .hero-tag{color:#d93665}
html[data-theme="light"] .video-thumb{background:#e8eaf0;border-color:#dfe2e8}
html[data-theme="light"] .video-duration{background:#20232bdc;color:#fff}
html[data-theme="light"] .entry-content{color:#343946}
html[data-theme="light"] .video-details,html[data-theme="light"] .sidebar-box,html[data-theme="light"] .empty-state,html[data-theme="light"] .page-content{background:#fff;border-color:var(--line);color:#596171}
html[data-theme="light"] .category-list a,html[data-theme="light"] .tag-list a{background:#f3f4f7;border-color:#dfe2e8;color:#343946}
html[data-theme="light"] .page-numbers{color:#343946;border-color:#dfe2e8}
html[data-theme="light"] .menu-toggle{color:#343946;border-color:#dfe2e8}
.theme-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 13px;border:1px solid #383b47;border-radius:999px;background:#22242d;color:#f4f5f7;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){.theme-toggle{order:2;margin-left:0;min-height:38px;padding:0 11px}.header-search{order:4}.menu-toggle{order:3}}


/* Homepage refresh 1.1.0 */
.home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:330px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:48px 54px;margin:4px 0 42px;border:1px solid #38313f;border-radius:22px;background:radial-gradient(ellipse at 82% 40%,rgba(232,75,117,.20),transparent 38%),linear-gradient(112deg,#211b29 0%,#1c202c 55%,#24202c 100%)}
.home-hero-copy{position:relative;z-index:2;max-width:680px}.hero-eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:9px;color:#ff8ca8;font-size:11px;font-weight:800;letter-spacing:1.5px}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px var(--accent)}
.home-hero h1{font-size:clamp(34px,5vw,56px);line-height:1.12;letter-spacing:-1.8px;margin:16px 0 13px;font-weight:900}.home-hero h1 em{font-style:normal;color:#ff7798}.home-hero p{max-width:520px;color:#b9bdca;font-size:15px;margin:0}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:25px}.button-primary,.button-quiet{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 18px;border-radius:9px;font-size:13px;font-weight:800;transition:transform .2s,background .2s}.button-primary{background:var(--accent);color:#fff!important;box-shadow:0 8px 24px rgba(232,75,117,.2)}.button-primary:hover{background:#f15d85;transform:translateY(-2px);color:#fff}.button-quiet{border:1px solid #46404c;color:#e5e5ec!important;background:rgba(255,255,255,.025)}.button-quiet:hover{border-color:var(--accent);color:#ff8ca8!important}.hero-stats{display:flex;align-items:center;gap:14px;margin-top:28px;color:#aeb2bf;font-size:12px}.hero-stats strong{color:#fff;font-size:15px;margin-right:4px}.hero-stats i{height:14px;width:1px;background:#55505c}
.hero-art{position:relative;flex:0 0 290px;height:245px;display:grid;place-items:center}.hero-art-orbit{position:absolute;border:1px solid rgba(255,126,158,.22);border-radius:50%;transform:rotate(-25deg)}.orbit-one{width:260px;height:160px}.orbit-two{width:220px;height:220px;border-color:rgba(255,255,255,.10)}.hero-play{position:relative;display:grid;place-items:center;width:112px;height:112px;border-radius:32px;transform:rotate(-10deg);background:linear-gradient(145deg,#f36a91,#a92f64);box-shadow:0 20px 70px rgba(232,75,117,.35),inset 0 1px 0 rgba(255,255,255,.3)}.hero-play span{font-size:36px;color:#fff;transform:rotate(10deg);margin-left:6px}.hero-art-caption{position:absolute;bottom:12px;color:#8d8795;font-size:9px;letter-spacing:3px;font-weight:800}
.category-section{margin:0 0 42px}.section-heading{margin:0 0 18px}.section-heading h2{font-size:25px;line-height:1.25;margin:5px 0 3px;letter-spacing:-.5px}.section-heading p{font-size:13px;color:var(--muted);margin:0}.category-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.category-chip{min-width:0;display:flex;align-items:center;gap:11px;padding:14px 15px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(120deg,var(--panel),rgba(32,35,45,.65));transition:border-color .2s,transform .2s}.category-chip:hover{border-color:rgba(232,75,117,.7);transform:translateY(-2px)}.category-chip-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:rgba(232,75,117,.13);color:#ff8ca8;font-size:17px}.category-chip>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}.category-chip small{margin-left:auto;color:var(--muted);font-size:11px}.category-chip b{color:#777d8b;font-size:13px}
.latest-section{margin-top:4px}.section-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.section-more{display:inline-flex;align-items:center;gap:9px;color:#ff8ca8;font-size:13px;font-weight:750;padding-bottom:4px;white-space:nowrap}.section-more:hover{color:#fff}.home-video-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 17px}.home-video-grid .video-thumb{aspect-ratio:16/10;border-radius:11px}.home-video-grid .video-card h3{font-size:14px;margin-top:11px}.home-video-grid .video-meta{font-size:11px}.home-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:55px 20px}.home-empty strong{font-size:17px;color:var(--text)}.home-empty p{margin:0 0 8px}.empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(232,75,117,.12);color:#ff8ca8;font-size:20px;margin-bottom:4px}
html[data-theme="light"] .home-hero{background:radial-gradient(ellipse at 82% 40%,rgba(232,75,117,.13),transparent 38%),linear-gradient(112deg,#fff2f6 0%,#f1f3fa 55%,#fff 100%);border-color:#eadde4}
html[data-theme="light"] .home-hero p{color:#656c7b}html[data-theme="light"] .hero-stats{color:#737b89}html[data-theme="light"] .hero-stats strong{color:#222733}html[data-theme="light"] .hero-stats i{background:#d5d8df}html[data-theme="light"] .button-quiet{color:#353b49!important;border-color:#d6d9e1;background:rgba(255,255,255,.6)}html[data-theme="light"] .category-chip{background:linear-gradient(120deg,#fff,#f7f8fb);border-color:#e1e3e9}html[data-theme="light"] .category-chip>span:nth-child(2){color:#303644}html[data-theme="light"] .section-more:hover{color:#d93665}
@media(max-width:1000px){.home-hero{padding:38px 36px}.hero-art{flex-basis:230px;transform:scale(.9)}.category-chips{grid-template-columns:repeat(3,minmax(0,1fr))}.home-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.home-hero{min-height:0;padding:29px 24px;margin-bottom:30px}.hero-art{display:none}.home-hero h1{font-size:38px}.home-hero p{font-size:14px}.hero-stats{margin-top:22px}.category-section{margin-bottom:32px}.category-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-chip{padding:11px 10px;gap:8px}.category-chip-icon{flex-basis:30px;height:30px}.section-heading h2{font-size:22px}.home-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.section-heading-row{align-items:flex-end}.section-more{font-size:12px}}
@media(max-width:440px){.home-hero{padding:25px 19px}.home-hero h1{font-size:34px}.hero-actions{gap:8px}.button-primary,.button-quiet{padding:0 12px;font-size:12px}.category-chip small{display:none}.category-chip b{margin-left:auto}}


/* Homepage and navigation refinement 1.2.0 */
.site-brand{display:inline-flex;align-items:center;gap:10px;min-width:max-content}
.site-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#f36a91,#bd3569);color:#fff!important;font-size:19px;font-weight:900;box-shadow:0 6px 18px rgba(232,75,117,.22)}
.site-brand-name{color:var(--text);font-size:17px;letter-spacing:.3px;font-weight:900}
html[data-theme="light"] .site-brand-name{color:#252936}
.home-category-nav{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 24px;padding:0}
.home-category-nav a{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px;font-weight:700;transition:.2s}
.home-category-nav a:hover{border-color:var(--accent);color:var(--accent)}
.home-category-nav .category-nav-label{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:1px;margin-right:3px}
.video-card .video-meta .video-views{display:inline-flex;align-items:center;gap:4px}
.video-card .video-meta .video-views:before{content:"◉";font-size:10px}
.popular-section{margin:42px 0 0}
.popular-section .section-kicker{color:#ff8ca8}
.popular-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;background:rgba(232,75,117,.13);color:#ff8ca8;font-size:10px;font-weight:800}
html[data-theme="light"] .home-category-nav a{background:#fff;border-color:#e1e3e9;color:#596171}
html[data-theme="light"] .home-category-nav a:hover{color:#d93665}
@media(max-width:760px){.site-brand-name{font-size:15px}.site-brand-mark{width:31px;height:31px}.home-category-nav{gap:7px;margin-bottom:18px}.home-category-nav a{padding:6px 10px;font-size:11px}.home-category-nav .category-nav-label{width:100%}}


/* Blackcat Video 1.3.0 refinements */
.site-brand-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-thumb{background:#20232d}
.video-thumb img{width:100%;height:100%;object-fit:cover}
.video-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:2.9em}
.video-card .video-meta{row-gap:3px}
.video-grid:has(.video-card:only-child){grid-template-columns:repeat(4,minmax(0,1fr))}
.video-grid .video-card:only-child{max-width:100%;}
.video-player{background:transparent;border:0;border-radius:0;aspect-ratio:auto;overflow:visible;margin:0 0 20px}
.video-player iframe,.video-player video{width:100%;aspect-ratio:16/9;height:auto;max-height:78vh;background:#050506;border:1px solid var(--line);border-radius:12px;display:block}
.entry-content{overflow-wrap:anywhere}
.entry-content img{max-width:100%;height:auto}
@media(max-width:1000px){.video-grid:has(.video-card:only-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.video-grid:has(.video-card:only-child){grid-template-columns:repeat(2,minmax(0,1fr))}.video-card h3{min-height:2.8em}}

/* Blackcat Video 1.4.0 account navigation */
.bcv-account-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:8px 13px;border-radius:999px;background:var(--accent);color:#fff!important;font-size:12px;font-weight:800}
.bcv-account-link:hover{filter:brightness(1.08)}
@media(max-width:760px){.bcv-account-link{padding:7px 10px;font-size:11px}}
