.hero {
    background-image: url("Deadpool.jpg");
    background-size: cover;
    background-position: center;
    height: 80vh;
    position: relative;
    color: #fff;
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff4444;
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.6;
}

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

.meta-box {
    background-color: #111;
    color: #fff;
    padding: 20px;
    text-align: right;
    font-size: 1rem;
    direction: rtl;
}

.meta-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-box li {
    margin-bottom: 8px;
}

.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;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: white;
    text-align: right;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 8px 0;
}

.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: #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);
}

/* هيدر */
.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);
}