/*
Theme Name: Redstream Video Premium
Theme URI: https://example.com/
Author: OpenAI
Description: Responsive dark video theme with red accents. Premium upgrade: editable header, footer, homepage, category, watch-page and page texts from one settings panel (Redstream menu in the dashboard).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: redstream-video
*/
:root{--rv-bg:#101010;--rv-panel:#1b1b1b;--rv-panel2:#222;--rv-border:#303030;--rv-text:#f5f5f5;--rv-muted:#aaa;--rv-red:#e50914;--rv-red-hover:#ff5961;--rv-width:1500px;--rv-header-bg:#080808;--rv-footer-bg:#080808;--rv-radius:11px;--rv-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--rv-bg);color:var(--rv-text);font-family:var(--rv-font);font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
a:hover{color:var(--rv-red-hover)}
img{max-width:100%;height:auto}
button,input,textarea{font:inherit}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--rv-red-hover);outline-offset:2px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus,.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;margin:0;left:8px;top:8px;z-index:100000;padding:10px 16px;background:#fff;color:#000;border-radius:6px;font-weight:700}
.rv-container{width:min(100% - 36px,var(--rv-width));margin-inline:auto}

/* Announcement bar */
.rv-announce{background:var(--rv-red);color:#fff;font-size:14px;font-weight:600}
.rv-announce-inner{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 36px;text-align:center}
.rv-announce a{color:inherit;text-decoration:underline}
.rv-announce a:hover{color:inherit;opacity:.85}
.rv-announce-close{position:absolute;right:0;top:50%;transform:translateY(-50%);background:transparent;border:0;color:inherit;font-size:24px;line-height:1;padding:4px 8px;cursor:pointer}

/* Header */
.rv-site-header{position:relative;z-index:50;background:var(--rv-header-bg);border-bottom:1px solid #292929}
.rv-site-header.is-sticky{position:sticky;top:0}
.admin-bar .rv-site-header.is-sticky{top:32px}
.rv-header-inner{min-height:74px;display:flex;align-items:center;gap:22px}
.rv-brand-wrap{flex:0 0 auto;min-width:0}
.rv-brand{display:block;font-size:25px;font-weight:850;letter-spacing:-.5px;line-height:1.2}
.rv-brand span{color:var(--rv-red)}
.rv-brand-description{display:block;color:var(--rv-muted);font-size:12px;font-weight:400;letter-spacing:0;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-nav{flex:1 1 auto;min-width:0}
.rv-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}
.rv-menu li{position:relative;margin:0}
.rv-menu a{display:block;padding:6px 0;font-size:14px;font-weight:650;color:#ddd}
.rv-menu a:hover,.rv-menu .current-menu-item>a,.rv-menu .current-cat>a,.rv-menu .current-menu-ancestor>a{color:var(--rv-red-hover)}
.rv-menu .menu-item-has-children>a:after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:currentColor;border-bottom:0;vertical-align:middle}
.rv-menu .sub-menu{position:absolute;left:-12px;top:100%;z-index:60;min-width:210px;margin:0;padding:8px;list-style:none;display:none;background:var(--rv-panel);border:1px solid var(--rv-border);border-radius:10px;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.rv-menu li:hover>.sub-menu,.rv-menu li:focus-within>.sub-menu{display:block}
.rv-menu .sub-menu a{padding:8px 10px;border-radius:6px}
.rv-menu .sub-menu a:hover{background:rgba(255,255,255,.06)}
.rv-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.rv-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:50%;background:transparent;border:1px solid var(--rv-border);color:#ddd;cursor:pointer}
.rv-icon-btn:hover{border-color:var(--rv-red);color:#fff}
.rv-cta{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;background:var(--rv-red);color:#fff;font-size:14px;font-weight:700;white-space:nowrap}
.rv-cta:hover{background:var(--rv-red-hover);color:#fff}
.rv-menu-toggle{display:none}
.rv-bars,.rv-bars:before,.rv-bars:after{display:block;width:18px;height:2px;border-radius:2px;background:currentColor;position:relative;transition:transform .18s ease,background .18s ease}
.rv-bars:before,.rv-bars:after{content:"";position:absolute;left:0}
.rv-bars:before{top:-6px}
.rv-bars:after{top:6px}
.rv-nav-open .rv-bars{background:transparent}
.rv-nav-open .rv-bars:before{top:0;transform:rotate(45deg)}
.rv-nav-open .rv-bars:after{top:0;transform:rotate(-45deg)}
.rv-search-panel{border-top:1px solid var(--rv-border);background:var(--rv-header-bg);padding:14px 0}
.search-form{display:flex;gap:8px;align-items:center;max-width:640px}
.search-form label{flex:1;margin:0}
.search-field{width:100%;padding:11px 14px;background:#191919;color:#fff;border:1px solid #444;border-radius:8px}
.search-submit{padding:11px 18px;background:var(--rv-red);border:0;color:#fff;border-radius:8px;font-weight:700;cursor:pointer}
.search-submit:hover{background:var(--rv-red-hover)}

/* Layout and sections */
.rv-main{min-height:55vh;padding:28px 0 44px}
.rv-section{margin:0 0 38px}
.rv-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 19px}
.rv-section-heading{display:flex;align-items:center;gap:11px;margin:0;min-width:0;font-size:clamp(21px,2vw,29px);font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.rv-section-heading:before{content:"";width:5px;height:29px;flex:0 0 5px;background:var(--rv-red);border-radius:4px}
.rv-viewall{flex:0 0 auto;padding:6px 13px;border:1px solid var(--rv-border);border-radius:999px;color:var(--rv-red-hover);font-size:13px;font-weight:700}
.rv-viewall:hover{border-color:var(--rv-red);color:#fff}
.rv-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px;align-items:start}
.rv-card{min-width:0;overflow:hidden;background:var(--rv-panel);border:1px solid #2b2b2b;border-radius:var(--rv-radius);transition:transform .18s ease,border-color .18s ease}
.rv-card:hover{transform:translateY(-2px);border-color:#555}
.rv-card-media{display:block;position:relative;aspect-ratio:16/9;background:#050505;overflow:hidden}
.rv-card-media img,.rv-card-media video{display:block;width:100%;height:100%;object-fit:cover;background:#050505}
.rv-card-media video{object-fit:contain}
.rv-card-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#eee;background:linear-gradient(135deg,#191919,#050505);font-size:34px}
.rv-card-body{padding:11px 12px 13px}
.rv-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 7px;font-size:15px;font-weight:700;line-height:1.48;overflow-wrap:anywhere}
.rv-card-meta{color:var(--rv-muted);font-size:12px}
.rv-chip{display:inline-block;background:#2a1516;color:var(--rv-red-hover);border:1px solid #542024;border-radius:999px;padding:3px 9px;font-size:12px;margin:0 5px 5px 0}
@supports (background:color-mix(in srgb,red 10%,black)){.rv-chip{background:color-mix(in srgb,var(--rv-red) 16%,#101010);border-color:color-mix(in srgb,var(--rv-red) 38%,#101010)}}
.rv-chip:hover{color:#fff;border-color:var(--rv-red)}
.rv-archive-header{margin:0 0 24px;padding:0 0 17px;border-bottom:2px solid var(--rv-red)}
.rv-archive-title{margin:0 0 8px;font-size:clamp(25px,3vw,36px);line-height:1.25;font-weight:850}
.rv-archive-count{margin:0 0 8px;color:var(--rv-muted);font-size:14px}
.rv-description{color:#c7c7c7;max-width:900px}
.rv-description p{margin:8px 0}
.rv-pagination{margin-top:30px}
.rv-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.rv-pagination .page-numbers{padding:8px 12px;border-radius:6px;background:#202020;border:1px solid #333}
.rv-pagination .current{background:var(--rv-red);border-color:var(--rv-red);color:#fff}

/* Watch pages and pages */
.rv-single{max-width:1050px;margin:0 auto}
.rv-single.rv-wide{max-width:none}
.rv-single-header{margin-bottom:20px}
.rv-single-title{font-size:clamp(26px,4vw,42px);font-weight:850;line-height:1.2;margin:0 0 12px;overflow-wrap:anywhere}
.rv-single-meta{color:var(--rv-muted);font-size:13px;display:flex;gap:12px;flex-wrap:wrap}
.rv-single-player{width:100%;aspect-ratio:16/9;background:#050505;border-radius:12px;overflow:hidden;margin:0 0 18px}
.rv-single-player video,.rv-single-player iframe{width:100%;height:100%;display:block;border:0}
.rv-share{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.rv-share-label{margin-right:4px;color:var(--rv-muted);font-size:13px;font-weight:600}
.rv-share-btn{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;background:var(--rv-panel);border:1px solid var(--rv-border);color:#e8e8e8;font-size:13px;font-weight:600;line-height:1;cursor:pointer}
.rv-share-btn:hover{border-color:var(--rv-red);color:#fff}
.rv-icon{flex:0 0 auto}
.rv-adslot{margin:0 0 22px;text-align:center;overflow:hidden}
.rv-textblock{margin:0 0 22px;color:#d6d6d6;line-height:1.8;overflow-wrap:anywhere}
.rv-textblock>:first-child{margin-top:0}
.rv-textblock>:last-child{margin-bottom:0}
.rv-textblock h2,.rv-textblock h3{color:#fff;line-height:1.35}
.rv-textblock a{color:var(--rv-red-hover);text-decoration:underline}
.rv-textblock img{max-width:100%;height:auto}
.rv-text-below{margin-top:24px}
.rv-home-intro{margin-bottom:30px}
.rv-home-page-content{margin-bottom:30px}
.rv-entry-content{color:#e1e1e1;font-size:16px;line-height:1.85;overflow-wrap:anywhere}
.rv-entry-content h2,.rv-entry-content h3{color:#fff;line-height:1.35;margin-top:1.5em}
.rv-entry-content a{color:var(--rv-red-hover);text-decoration:underline}
.rv-entry-content img,.rv-entry-content video{max-width:100%;height:auto}
.rv-entry-content video{width:100%;aspect-ratio:16/9;background:#050505}
.rv-entry-content blockquote{margin:1.5em 0;padding:12px 18px;border-left:4px solid var(--rv-red);background:var(--rv-panel)}
.rv-post-categories{margin:18px 0 0}
.rv-tags{margin:24px 0 0}
.rv-postnav .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}
.rv-postnav a{display:block;height:100%;padding:12px 14px;background:var(--rv-panel);border:1px solid var(--rv-border);border-radius:10px}
.rv-postnav a:hover{border-color:var(--rv-red)}
.rv-postnav .nav-next{grid-column:2;text-align:right}
.rv-nav-label{display:block;color:var(--rv-muted);font-size:12px}
.rv-nav-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:700;line-height:1.4}
.rv-related{margin-top:42px}
.rv-seo{margin-top:42px;padding:23px;background:#181818;border:1px solid #303030;border-radius:12px;color:#d1d1d1;font-size:15px;line-height:1.9}
.rv-seo h2{margin:0 0 12px;color:#fff;font-size:22px;line-height:1.45}
.rv-seo p{margin:0 0 14px}.rv-seo p:last-child{margin-bottom:0}
.rv-empty{background:#1b1b1b;border:1px solid #303030;border-radius:10px;padding:22px;color:#bbb}

/* Comments */
.rv-comments{max-width:1050px;margin:32px auto 0}
.rv-comments-title{font-size:22px;margin:0 0 16px}
.rv-comment-list{list-style:none;margin:0 0 24px;padding:0}
.rv-comment-list .comment-body{padding:14px 16px;margin:0 0 12px;background:var(--rv-panel);border:1px solid var(--rv-border);border-radius:10px}
.rv-comment-list .children{list-style:none;margin:0;padding-left:20px}
.rv-comment-list .avatar{border-radius:50%;float:left;margin-right:12px}
.rv-comment-list .comment-meta{font-size:13px;color:var(--rv-muted);margin-bottom:8px}
.rv-comments input,.rv-comments textarea{max-width:100%;padding:10px;background:#191919;color:#fff;border:1px solid #444;border-radius:6px}
.rv-comments textarea{width:100%}
.rv-comments .submit{background:var(--rv-red);border:0;padding:10px 16px;color:#fff;border-radius:6px;cursor:pointer}

/* Footer */
.rv-footer{background:var(--rv-footer-bg);border-top:1px solid #292929;color:#aaa;font-size:14px}
.rv-footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 40px;padding:40px 0 28px}
.rv-footer-col--about{grid-column:1/-1}
.rv-footer-title{margin:0 0 14px;color:#fff;font-size:16px;font-weight:800;line-height:1.3}
.rv-footer-about{max-width:560px;color:#b8b8b8;line-height:1.75}
.rv-footer-about p{margin:0 0 12px}
.rv-footer-list{list-style:none;margin:0;padding:0}
.rv-footer-list li{margin:0 0 9px}
.rv-footer-list a{color:#c9c9c9}
.rv-footer-list a:hover{color:var(--rv-red-hover)}
.rv-socials{display:flex;flex-wrap:wrap;gap:8px}
.rv-social{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--rv-border);color:#ddd}
.rv-social:hover{background:var(--rv-red);border-color:var(--rv-red);color:#fff}
.rv-footer-bottom{padding:0 0 22px}
.rv-footer--columns .rv-footer-bottom{border-top:1px solid #292929;padding-top:18px}
.rv-footer--simple .rv-footer-bottom{padding-top:25px}
.rv-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.rv-footer-extra{margin:14px 0 0;color:#8f8f8f;font-size:13px;line-height:1.7}
.rv-footer-extra a{color:#b8b8b8}
.rv-top{position:fixed;right:18px;bottom:18px;z-index:40;width:44px;height:44px;border:0;border-radius:50%;background:var(--rv-red);color:#fff;font-size:20px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.rv-top.is-visible{opacity:1;visibility:visible;transform:none}
.rv-top:hover{background:var(--rv-red-hover)}

/* Responsive */
@media(min-width:1450px){.rv-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}}
@media(min-width:861px){.rv-footer-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr)}.rv-footer-col--about{grid-column:auto}}
@media(max-width:1100px){.rv-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.rv-container{width:min(100% - 28px,var(--rv-width))}}
@media(max-width:900px){
  .rv-header-inner{flex-wrap:wrap;gap:8px 12px;min-height:64px;padding:10px 0}
  .rv-brand-wrap{flex:1 1 0}
  .rv-menu-toggle{display:inline-flex}
  .rv-nav{order:3;flex:0 0 100%;display:none}
  .rv-nav-open .rv-nav{display:block}
  .rv-menu{flex-direction:column;align-items:stretch;gap:0;padding:6px 0 10px;border-top:1px solid var(--rv-border)}
  .rv-menu a{padding:11px 4px}
  .rv-menu .menu-item-has-children>a:after{display:none}
  .rv-menu .sub-menu{position:static;display:block;min-width:0;padding:0 0 0 14px;background:transparent;border:0;box-shadow:none}
}
@media(max-width:782px){.admin-bar .rv-site-header.is-sticky{top:46px}}
@media(max-width:700px){.rv-brand{font-size:22px}.rv-main{padding-top:20px}}
@media(max-width:600px){.rv-container{width:calc(100% - 18px)}.rv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 9px}.rv-section{margin-bottom:29px}.rv-section-heading{font-size:20px;gap:8px}.rv-section-heading:before{height:24px;width:4px;flex-basis:4px}.rv-viewall{padding:5px 11px}.rv-card{border-radius:min(var(--rv-radius),8px)}.rv-card-body{padding:8px}.rv-card-title{font-size:13px;line-height:1.45}.rv-card-meta{font-size:11px}.rv-main{padding:17px 0 30px}.rv-seo{padding:15px;margin-top:27px;font-size:14px}.rv-seo h2{font-size:19px}.rv-single-player{border-radius:8px}.rv-single-title{font-size:27px}.rv-postnav .nav-links{grid-template-columns:1fr}.rv-postnav .nav-next{grid-column:auto}.rv-footer-grid{grid-template-columns:1fr;padding-top:30px;gap:24px}.rv-cta{padding:0 14px}}
@media(max-width:360px){.rv-container{width:calc(100% - 12px)}.rv-grid{gap:12px 6px}.rv-card-body{padding:7px}.rv-card-title{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
