.hero {
    background-image: url("Arknights2.webp");
    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;
    }
}