/* ============================================================
   CINEMA CLUB — main.css (v3.0 Filimo-Style)
   پایه: ریست، متغیرها، تایپوگرافی، فونت
   تم: دقیقاً شبیه filimo.com
============================================================ */

/* ============================================================
   فونت محلی Vazirmatn
============================================================ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   Reset
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #f5f5f7;
    background: #0a0a0f;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button { cursor: pointer; }

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

/* ============================================================
   متغیرهای تم — Filimo Style
============================================================ */
:root {
    /* رنگ‌های اصلی فیلیمو */
    --brand:          #00bcd4;    /* فیروزه‌ای فیلیمو */
    --brand-dark:     #0097a7;    /* فیروزه‌ای تیره */
    --brand-light:    #26c6da;    /* فیروزه‌ای روشن */
    --imdb:           #f5c518;
    --gold:           #ffd700;

    /* پس‌زمینه‌ها */
    --bg:             #151515;    /* مشکی فیلیمو */
    --bg-2:           #1a1a1a;
    --bg-3:           #232323;
    --card:           #1e1e1e;
    --card-hover:     #2a2a2a;

    /* متن */
    --text:           #f5f5f7;
    --text-dim:       #a8a8b3;
    --text-mute:      #6c6c78;

    /* رنگ‌های سیستمی */
    --success:        #2ecc71;
    --danger:         #e74c3c;
    --warning:        #f39c12;
    --info:           #3498db;

    /* حاشیه‌ها */
    --border:         rgba(255, 255, 255, 0.08);
    --border-2:       rgba(255, 255, 255, 0.14);

    /* شعاع */
    --r-sm:           8px;
    --r-md:           12px;
    --r-lg:           18px;
    --r-xl:           24px;
    --r-full:         999px;

    /* سایه */
    --shadow-sm:      0 2px 8px rgba(0,0,0,.3);
    --shadow-md:      0 8px 24px rgba(0,0,0,.45);
    --shadow-lg:      0 20px 50px rgba(0,0,0,.6);
    --shadow-brand:   0 8px 24px rgba(0, 188, 212, .35);

    /* ترنزیشن */
    --tr-fast:        .15s ease;
    --tr:             .25s ease;
    --tr-slow:        .4s ease;

    /* لایه‌ها */
    --z-header:       100;
    --z-modal:        300;
    --z-toast:        9999;

    /* ابعاد */
    --container:      1400px;
    --header-h:       68px;
}

/* ============================================================
   تایپوگرافی
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p { color: var(--text-dim); }

::selection {
    background: var(--brand);
    color: #000;
}

/* ============================================================
   اسکرول‌بار (Filimo Style)
============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 188, 212, 0.5);
}

/* ============================================================
   کانتینر
============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Utilities
============================================================ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-dim   { color: var(--text-dim); }
.text-mute  { color: var(--text-mute); }
.text-brand { color: var(--brand); }
.text-gold  { color: var(--gold); }

.flex       { display: flex; }
.flex-col   { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2      { gap: 8px; }
.gap-3      { gap: 12px; }
.gap-4      { gap: 16px; }

/* ============================================================
   اسپینر
============================================================ */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2.5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   حالت خالی
============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
}

.empty-state__icon {
    font-size: 54px;
    opacity: 0.5;
}

.empty-state__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.empty-state__desc {
    font-size: 13px;
    max-width: 380px;
    line-height: 1.8;
}

/* ============================================================
   Skeleton Loading
============================================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--r-md);
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 768px) {
    :root {
        --container: 100%;
        --header-h: 60px;
    }

    body {
        font-size: 13.5px;
    }

    .container {
        padding: 0 16px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 15px; }

    ::-webkit-scrollbar {
        width: 4px;
    }
}