.hero {
    position: relative;
    height: 90vh;
    background: url("DoctorPrisoner.webp") center/cover no-repeat;
    display: flex;

    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    color: #fff;
    overflow: hidden;
}

/* خلفية متدرجة عشان يوضح النص */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.3) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: right;
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* زر */
.hero-content .btn {
    display: inline-block;
    padding: 14px 26px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.hero-content .btn:hover {
    background: linear-gradient(135deg, #ff3333, #aa0000);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* حركة دخول */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* موبايل */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.3rem;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.meta-box-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    /* العناصر تبدأ من اليمين */
    margin: 40px auto;
    max-width: 1000px;
    padding: 10px;
}

.meta-card {
    background: linear-gradient(135deg, #1a1a1a, #111);
    flex: 1 1 220px;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 255, 204, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 255, 204, 0.4);
}

.meta-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: #00ffcc;
}

.meta-info h3 {
    margin: 0 0 5px;
    color: #00f7ff;
    font-size: 1.1rem;
}

.meta-info p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.meta-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 60%;
    background: linear-gradient(90deg, #ff4444, #00ffcc);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .meta-box-modern {
        flex-direction: column;
    }

    .meta-card {
        flex: 1 1 100%;
    }
}

.overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.hero-text {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    color: #ff4444;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #eee;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* 📱 تحسين للموبايل */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        background-attachment: scroll;
        /* الغي parallax على الموبايل عشان الأداء */
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

body {
    background-color: black;
    color: white;
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
}


.story-section {
    background-color: #111;
    color: #eee;
    padding: 60px 20px;
    direction: rtl;
}

.story-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.story-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.story-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #ccc;
}

.opinion-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 20px;
    direction: rtl;
}

.opinion-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.opinion-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00bcd4;
}

.opinion-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #ddd;
}

.trailer-section {
    background-color: #0d0d0d;
    color: #fff;
    padding: 60px 20px;
    direction: rtl;
    text-align: center;
}

.trailer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff4444;
}

.video-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.episodes-section {
    background-color: #111;
    padding: 60px 20px;
    color: #fff;
    direction: rtl;
}

.episodes-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffaa00;
}

.episode-box {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: #1d1d1d;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.episode-content {
    display: none;
    margin-top: 10px;
}

.toggle-btn {
    background-color: #444;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: right;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 5px;
}

.toggle-btn:hover {
    background-color: #666;
}

/* ===== روابط المشاهدة الرسمية ===== */
.streaming-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.streaming-links li {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.streaming-links li:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.full-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    height: 100%;
    text-decoration: none;
    color: #00f7ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.link-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.link-content p {
    font-size: 15px;
    color: #ccc;
    margin: 0;
}



.main-footer {
    background-color: #0d0d0d;
    color: #ccc;
    text-align: center;
    padding: 25px 10px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin-top: 40px;
    border-top: 1px solid #222;
    width: 100%;
    max-width: 100%;
    /* يمنع التمدد الزايد */
    overflow-x: hidden;
    /* يخفي أي زيادة بالعرض */
    box-sizing: border-box;
    /* يحسب البوردر والبَدِنغ داخل العرض */
}


.footer-title {
    color: #00e0c6;
    font-size: 20px;
    margin-bottom: 15px;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons img {
    width: 28px;
    height: 28px;
    filter: invert(70%) sepia(80%) saturate(500%) hue-rotate(120deg);
    /* تركواز */
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: invert(100%) brightness(200%);
    /* أبيض عند الهوفر */
}

.footer-email {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 15px;
}

.copyright {
    font-size: 14px;
    color: #777;
}

/* هيدر */
.main-header {
    background-color: #111;
    padding: 10px 16px;
    border-bottom: 2px solid #222;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    direction: rtl;
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Montserrat', 'Tajawal', sans-serif;
    letter-spacing: 1px;
    color: #ff0000;
    text-transform: uppercase;
    text-decoration: none;
    direction: ltr;
}

.back-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 15px;
}

.back-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

/* قسم لماذا تشاهده */
.reasons-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #1a1a1d;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 255, 204, 0.2);
}

.reasons-section h2 {
    font-size: 30px;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.reason-card {
    background-color: #222;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.3);
}

.reason-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #00ffcc;
}

.reason-card p {
    font-size: 15px;
    color: #ddd;
    line-height: 1.6;
}

.highlight-title {
    color: #d32f2f;
    text-align: center;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    position: relative;
}

.highlight-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d32f2f;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ========== تحسين التوافق مع الهاتف ========== */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero-text h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-text p,
    .hero-content p {
        font-size: 1rem;
    }

    .story-section h2,
    .opinion-section h2,
    .trailer-section h2,
    .episodes-section h2 {
        font-size: 1.8rem;
    }

    .story-section p,
    .opinion-section p {
        font-size: 1rem;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .streaming-links ul {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column-reverse;
        gap: 10px;
        text-align: center;
        direction: ltr;
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff0000;

}

.streaming-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.streaming-links li {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.streaming-links li::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.6s;
}

.streaming-links li:hover::before {
    opacity: 1;
    pointer-events: none;
}

.streaming-links li:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.streaming-links li a {
    color: #00f7ff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.streaming-links li a:hover {
    color: #14b8a6;
}

.streaming-links li span {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.main-footer {
    background-color: #000;
    /* فوتر أسود */
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    margin-top: 60px;
    border-top: 2px solid #222;
}

.main-footer p {
    margin: 10px 0;
    font-size: 16px;
    color: #eee;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    /* يخليها أبيض على الخلفية السوداء */
}

/* منع المربع الأبيض عند التركيز */
.watch-link:focus {
    outline: none;
}

/* اجعل الرابط يغطي كامل مساحة li */
.streaming-links li {
    padding: 0;
    /* إزالة padding من li */
}

.full-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #00f7ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.link-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.link-content p {
    font-size: 15px;
    color: #ccc;
    margin: 0;
}

.main-header {
    background-color: #111;
    padding: 10px 16px;
    /* صار أنحف */
    border-bottom: 2px solid #222;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    direction: rtl;
    /* حتى الزر يكون يمين والشعار يسار */
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Montserrat', 'Tajawal', sans-serif;
    letter-spacing: 1px;
    color: #ff0000;
    text-transform: uppercase;
    text-decoration: none;
    direction: ltr;
    /* عشان الحروف ما تنقلب */
}

.back-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 15px;
}

.back-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column-reverse;
        gap: 10px;
        text-align: center;
        direction: ltr;
    }
}

/* قسم الأعمال المشابهة */
.similar-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #0d0d0d, #111111);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 255, 204, 0.25);
}

.similar-section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.similar-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.35);
}

.similar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.similar-card:hover img {
    transform: scale(1.05);
}

.similar-card-content {
    padding: 10px;
    text-align: center;
}

.similar-card-content h3 {
    color: #00ffcc;
    font-size: 1.1rem;
    margin: 8px 0;
}

.similar-card-content p {
    color: #ccc;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .similar-card img {
        height: 150px;
    }

    .similar-card-content h3 {
        font-size: 1rem;
    }

    .similar-card-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .similar-card img {
        height: 120px;
    }

    .similar-card-content h3 {
        font-size: 0.95rem;
    }

    .similar-card-content p {
        font-size: 0.75rem;
    }
}

.section-divider {
    position: relative;
    width: 100%;
    height: 1px;
    margin: 70px auto;
    background: linear-gradient(to right, transparent, #bbb, transparent);
}

.section-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #666;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* ===== episodes-guide — lively warm redesign (merged version) ===== */
section.episodes-guide {
    --bg-start: #071427;
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    --accent-a: #ff3b3b;
    --accent-b: #ffaa00;
    --muted: #9fb0bb;
    --text: #eef7f7;
    --radius: 12px;
    --shadow: 0 12px 40px rgba(2, 8, 20, 0.6);
    font-family: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    padding: 26px 14px;
    background: transparent;
    direction: rtl;
}

section.episodes-guide>.container {
    max-width: 1120px;
    margin-inline: auto;
    padding: 0;
}

section.episodes-guide>.container>h2 {
    color: var(--accent-b);
    font-size: 22px;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: .3px;
}

section.episodes-guide .eg-controls {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

section.episodes-guide .eg-note {
    color: var(--muted);
    font-size: 13px;
}

/* فلتر */
section.episodes-guide .eg-filter-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: all 220ms ease;
    font-size: 14px;
}

section.episodes-guide .eg-filter-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.95;
}

section.episodes-guide .eg-filter-btn.active {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    color: #081213;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* زر عرض/إخفاء الحلقات */
section.episodes-guide .eg-toggle {
    background: linear-gradient(90deg, var(--accent-b), var(--accent-a));
    color: #081213;
    border: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(2, 8, 20, 0.28);
    font-size: 15px;
    transition: all 200ms ease;
}

section.episodes-guide .eg-toggle:hover {
    transform: translateY(-2px) scale(1.04);
}

/* رسالة التطبيق */
section.episodes-guide .eg-status {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-b);
    margin-top: 8px;
    text-align: center;
    display: none;
}

section.episodes-guide .eg-status.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* كروت الحلقات */
section.episodes-guide .episode-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    transition: transform 260ms cubic-bezier(.2, .9, .3, 1), box-shadow 260ms ease, opacity 220ms linear;
    position: relative;
}

section.episodes-guide .episode-card::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 12px;
    width: 5px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
}

section.episodes-guide .episode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(2, 8, 20, 0.7);
}

section.episodes-guide .episode-card>h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

section.episodes-guide .ep-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-inline-start: 8px;
}

section.episodes-guide .ep-tag {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    font-weight: 800;
    color: #081213;
    background: linear-gradient(90deg, var(--accent-b), var(--accent-a));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

section.episodes-guide .ep-tag.V {
    background: linear-gradient(90deg, #ffb4a2, #ff7b7b);
}

section.episodes-guide .ep-tag.I {
    background: linear-gradient(90deg, #ffd6ff, #ffb3ff);
}

section.episodes-guide .ep-tag.S {
    background: linear-gradient(90deg, #ffd166, #fff2b8);
}

section.episodes-guide .episode-card p {
    margin: 10px 0 0;
    color: #e6f7f6;
    font-size: 14.5px;
    line-height: 1.68;
}

/* اخفاء/عرض */
section.episodes-guide .episode-card.collapsed p:first-of-type {
    display: -webkit-box;
    -webkit-lineclamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

section.episodes-guide .episode-card.expanded p {
    max-height: 1000px;
    opacity: 1;
}

section.episodes-guide .hidden-episode {
    display: none !important;
}

/* responsive */
@media(max-width:900px) {
    section.episodes-guide .eg-controls {
        gap: 8px;
    }

    section.episodes-guide .eg-toggle {
        font-size: 14px;
        padding: 12px 16px;
    }

    section.episodes-guide .eg-filter-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    section.episodes-guide .episode-card {
        padding: 12px 14px;
    }
}

@media(max-width:420px) {
    section.episodes-guide .eg-controls {
        flex-direction: column;
        align-items: stretch;
    }

    section.episodes-guide .eg-toggle {
        width: 100%;
    }

    section.episodes-guide .episode-card>h3 {
        font-size: 15px;
    }
}

/* شارات التحذير داخل كرت الحلقة */
section.episodes-guide .ep-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

section.episodes-guide .ep-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 20px;
    color: #081213;
    background: linear-gradient(90deg, var(--accent-b), var(--accent-a));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

section.episodes-guide .ep-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* تخصيص لكل نوع */
section.episodes-guide .ep-tag.V::before {
    content: "🛑";
}

section.episodes-guide .ep-tag.I::before {
    content: "⚠️";
}

section.episodes-guide .ep-tag.S::before {
    content: "❤️";
}

section.episodes-guide .ep-tag.V {
    background: linear-gradient(90deg, #ff7b7b, #ff3b3b);
    color: #fff;
}

section.episodes-guide .ep-tag.I {
    background: linear-gradient(90deg, #ffe066, #ffb347);
    color: #333;
}

section.episodes-guide .ep-tag.S {
    background: linear-gradient(90deg, #ffb6f2, #ff7de9);
    color: #fff;
}

.warning-line {
    background: #000;
    /* خلفية سوداء */
    color: #f9f9f9;
    /* خط فاتح */
    padding: 15px 18px;
    border-radius: 8px;
    margin-top: 18px;
    font-size: 18px;
    /* خط أكبر */
    font-weight: 600;
    /* خط أعرض */
    font-family: "Tajawal", "Cairo", sans-serif;
    /* خط أنيق */
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}

.warning-line::before {
    content: "⚠️";
    /* أيقونة تحذير */
    font-size: 22px;
    flex-shrink: 0;
}

.warning-line strong {
    color: #ff4d4d;
    /* كلمة التحذير باللون الأحمر */
    margin-right: 6px;
    font-size: 20px;
    /* أكبر من باقي النص */
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* مسافة بين الأيقونة والنص */
    padding: 8px 20px;
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
}

.footer-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.4);
}

/* متجاوب للهواتف */
@media (max-width: 480px) {
    .footer-contact-btn {
        font-size: 14px;
        padding: 6px 15px;
    }
}