/* beta.orx.ma — dark RTL theme, Netflix-style rows, 16:9 watch player */
:root {
    --bg: #0b0b12;
    --bg2: #14141f;
    --card: #1a1a28;
    --text: #f2f2f7;
    --muted: #9a9ab0;
    --accent: #7c3aed;
    --accent2: #a855f7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
header.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 18px;
    padding: 12px 20px;
    background: rgba(11,11,18,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #23233a;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.logo b { color: var(--accent2); }
nav.mainnav { display: flex; gap: 16px; }
nav.mainnav a { color: var(--muted); font-size: 15px; }
nav.mainnav a:hover, nav.mainnav a.active { color: var(--text); }
.searchbox { margin-inline-start: auto; display: flex; gap: 8px; }
.searchbox input {
    background: var(--bg2); color: var(--text);
    border: 1px solid #2a2a44; border-radius: 8px;
    padding: 8px 12px; width: 220px; font-size: 14px; outline: none;
}
.searchbox button {
    background: var(--accent); color: #fff; border: 0; border-radius: 8px;
    padding: 8px 16px; cursor: pointer; font-size: 14px;
}
main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.hero {
    border-radius: 16px; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #2a1a4a, #0b0b12 60%);
    padding: 40px 28px; margin-bottom: 28px;
}
.hero h1 { font-size: 30px; margin-bottom: 8px; }
.hero p { color: var(--muted); max-width: 640px; line-height: 1.7; }
.hero .cta {
    display: inline-block; margin-top: 16px;
    background: var(--accent); color: #fff; padding: 10px 22px;
    border-radius: 10px; font-weight: 700;
}
.row { margin-bottom: 30px; }
.row h2 { font-size: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.row h2 a { font-size: 14px; color: var(--accent2); font-weight: 400; }
.cards {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: thin;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 3px; }
.card {
    flex: 0 0 160px; background: var(--card); border-radius: 12px; overflow: hidden;
    transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; height: 225px; object-fit: cover; display: block; background: #23233a; }
.card .t { padding: 10px; font-size: 13px; line-height: 1.5; min-height: 58px; }
.card .meta { padding: 0 10px 10px; color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.chip {
    background: var(--bg2); border: 1px solid #2a2a44; border-radius: 999px;
    padding: 7px 16px; font-size: 14px; color: var(--text); cursor: pointer;
}
.chip.active, .chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Watch page: 16:9 player, info UNDER the player, no reels scroll */
.player-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 20px;
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.servers { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.server-btn {
    background: var(--bg2); border: 1px solid #2a2a44; border-radius: 8px;
    padding: 8px 16px; font-size: 14px; cursor: pointer; color: var(--text);
}
.server-btn.active, .server-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.info { background: var(--bg2); border-radius: 14px; padding: 20px; }
.info h1 { font-size: 24px; margin-bottom: 10px; }
.info .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.info p { color: #cfcfe0; line-height: 1.8; }
.dl-list { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.dl-list a {
    background: var(--card); border: 1px solid #2a2a44; border-radius: 8px;
    padding: 8px 14px; font-size: 13px;
}
.dl-list a:hover { border-color: var(--accent2); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px; border-top: 1px solid #23233a; margin-top: 30px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
@media (max-width: 640px) {
    .searchbox input { width: 130px; }
    .hero h1 { font-size: 22px; }
    .card { flex-basis: 140px; }
    .card img { height: 195px; }
}
