/*
Theme Name: ClipKadeh Pro
Theme URI: https://clipkadeh.website/
Author: Mehran Azarnia
Description: Persian RTL video sharing platform with direct S3-compatible uploads.
Version: 1.0.0
Text Domain: clipkadeh-pro
*/

:root{
--red:#e50914;
--red2:#ff3340;
--dark:#111;
--text:#191919;
--muted:#737373;
--bg:#f7f7f8;
--card:#fff;
--border:#e8e8e8;
--radius:18px;
}

*{box-sizing:border-box}
html{direction:rtl}
body{
margin:0;
background:var(--bg);
color:var(--text);
font-family:Vazirmatn,Tahoma,Arial,sans-serif;
line-height:1.8
}
a{color:inherit;text-decoration:none}
img,video{max-width:100%}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 28px));margin:auto}
.site-header{
position:sticky;top:0;z-index:100;
background:#fff;border-bottom:1px solid var(--border)
}
.header-inner{
height:68px;display:flex;align-items:center;gap:18px
}
.logo{
font-weight:900;font-size:22px;color:var(--red)
}
.logo span{color:#111}
.search{
flex:1;display:flex;max-width:620px;margin:auto
}
.search input{
width:100%;border:1px solid var(--border);
border-radius:13px 0 0 13px;padding:11px 14px;
outline:none;background:#fafafa
}
.search button{
border:0;background:#111;color:#fff;padding:0 18px;
border-radius:0 13px 13px 0
}
.nav{display:flex;gap:8px;align-items:center}
.btn{
border:0;border-radius:12px;padding:10px 16px;
background:#111;color:#fff;display:inline-flex;
align-items:center;justify-content:center;gap:7px
}
.btn.red{background:var(--red)}
.btn.light{background:#eee;color:#222}
.btn.danger{background:#b00020}
.btn:disabled{opacity:.5;cursor:not-allowed}
.main{padding:25px 0 50px}
.hero{
background:#111;color:#fff;border-radius:24px;
padding:34px;margin-bottom:25px
}
.hero h1{margin:0 0 8px;font-size:32px}
.hero p{color:#ccc;margin:0}
.section-title{
display:flex;align-items:center;justify-content:space-between;
margin:25px 0 14px
}
.grid{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:18px
}
.card{
background:var(--card);border:1px solid var(--border);
border-radius:var(--radius);overflow:hidden
}
.thumb{
aspect-ratio:16/9;background:#191919;
display:flex;align-items:center;justify-content:center;
overflow:hidden
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .play{
width:48px;height:48px;border-radius:50%;
background:#fff;color:#111;display:flex;
align-items:center;justify-content:center;font-size:20px
}
.card-body{padding:13px}
.card-title{
font-weight:800;display:-webkit-box;
-webkit-line-clamp:2;-webkit-box-orient:vertical;
overflow:hidden
}
.meta{color:var(--muted);font-size:13px;margin-top:5px}
.form-card{
background:#fff;border:1px solid var(--border);
border-radius:20px;padding:22px;max-width:720px;margin:auto
}
.field{margin-bottom:15px}
.field label{display:block;font-weight:700;margin-bottom:6px}
.field input,.field textarea,.field select{
width:100%;padding:12px 14px;border:1px solid var(--border);
border-radius:12px;outline:none;background:#fff
}
.field textarea{min-height:130px;resize:vertical}
.notice{
padding:12px 15px;border-radius:12px;background:#f0f0f0;
margin-bottom:15px
}
.notice.ok{background:#e8f8ed;color:#136b35}
.notice.error{background:#fff0f0;color:#a40000}
.video-page{
background:#000;border-radius:18px;overflow:hidden
}
.video-page video{width:100%;display:block;max-height:72vh}
.video-info{
background:#fff;border:1px solid var(--border);
padding:20px;border-radius:0 0 18px 18px
}
.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.channel-box{
display:flex;align-items:center;gap:13px;
padding:15px 0;border-bottom:1px solid var(--border)
}
.avatar{
width:48px;height:48px;border-radius:50%;
background:#111;color:#fff;display:flex;
align-items:center;justify-content:center;font-weight:900
}
.comment{
background:#fafafa;border:1px solid var(--border);
border-radius:14px;padding:12px;margin:9px 0
}
.comment-author{font-weight:800}
.dashboard{
display:grid;grid-template-columns:220px 1fr;gap:20px
}
.sidebar{
background:#fff;border:1px solid var(--border);
border-radius:18px;padding:10px;height:max-content
}
.sidebar a{
display:block;padding:11px 13px;border-radius:10px
}
.sidebar a:hover,.sidebar a.active{background:#f1f1f1}
.stat-grid{
display:grid;grid-template-columns:repeat(4,1fr);gap:13px
}
.stat{
background:#fff;border:1px solid var(--border);
border-radius:16px;padding:18px
}
.stat strong{display:block;font-size:25px}
.upload-box{
border:2px dashed #ccc;border-radius:18px;
padding:25px;text-align:center
}
.progress{
height:10px;background:#eee;border-radius:20px;
overflow:hidden;margin:12px 0
}
.progress span{
display:block;height:100%;width:0;background:var(--red);
transition:.2s
}
.empty{
padding:50px 20px;text-align:center;
color:var(--muted);background:#fff;
border:1px dashed #ccc;border-radius:18px
}
.footer{
padding:30px 0;border-top:1px solid var(--border);
background:#fff;color:var(--muted)
}
.ai-box{
background:#fff;border:1px solid var(--border);
border-radius:18px;padding:20px
}
.chat{
min-height:260px;max-height:500px;overflow:auto;
background:#fafafa;border-radius:14px;padding:15px
}
.msg{padding:10px 13px;border-radius:13px;margin:8px 0;max-width:85%}
.msg.user{background:#111;color:#fff;margin-right:auto}
.msg.ai{background:#eaeaea}
@media(max-width:900px){
.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard{grid-template-columns:1fr}
.stat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
.header-inner{height:auto;min-height:64px;flex-wrap:wrap;padding:9px 0}
.search{order:3;flex-basis:100%;max-width:none}
.grid{grid-template-columns:1fr}
.hero h1{font-size:25px}
.nav .optional{display:none}
}