.type_specialevents .breaking-news .head .txt {
    display: block;
    margin-top: -2.5em;
    padding: .15em 1.4em .1em .77em;
}
        :root {
            --primary: #272728;
            --primary-dark: #4f46e5;
            --secondary: #10b981;
            --light-bg: #f9fafb;
            --card-bg: #ffffff;
            --text: #1f2937;
            --border: #e5e7eb;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
            --radius: 16px;
            --radius-sm: 10px;
        }

.container {
    max-width: 1200px;
    margin: -21px auto 0;
}

        .app-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            background: linear-gradient(135deg, #fecf42, #fdc934);
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }

        .logo-text h1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }

        .logo-text p {
            font-size: 0.95rem;
        
        }

        .ai-badge {
           background: linear-gradient(135deg, #fecf42, #fdc934);
            color: white;
            padding: 8px 18px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin-bottom: -1px;
}

        @media (max-width: 992px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
        }

.form-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 5px;
    height: fit-content;
    transition: transform 0.3s, box-shadow 0.3s;
}



        .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .card-header i {
            color: var(--primary);
            font-size: 1.5rem;
        }

        .card-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--text);
            font-size: 1.05rem;
        }

        .form-group .label-note {
            font-weight: normal;
            font-size: 0.9rem;
        
            margin-top: 5px;
        }

        .textarea-container {
            position: relative;
        }

textarea, select, input {
    width: 100%;
    padding: 14px;
    border: 1px solid #101010;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Arabic', sans-serif;
    transition: all 0.3s;
}

        textarea {
            min-height: 180px;
            resize: vertical;
            line-height: 1.7;
        }

        textarea:focus, select:focus, input:focus {
            outline: none;
            border-color: var(--primary);
            background-color: white;
            box-shadow: 0 0 0 3px rgba(123, 0, 153, 0.15);
        }

        .char-count {
            text-align: left;
            font-size: 0.85rem;
        
            margin-top: 8px;
        }

.model-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background-color: #e9e9e9;
    font-size: 1rem;
}

.generate-btn {
    width: 100%;
    padding: 0px;
    background: linear-gradient(135deg, #1a1a1a, #1e1d1d);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 10px;
}

        .generate-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(229, 13, 13, 0.35);
        }

        .generate-btn:active {
            transform: translateY(0);
        }

        .generate-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .result-card {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            padding: 30px;
                    display: flex;
            flex-direction: column;
            min-height: 600px;
        }

        .result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .result-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .result-title i {
            color: var(--primary);
            font-size: 1.5rem;
        }

        .result-title h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text);
        }

        .result-status {
            background-color: #f3f4f6;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
        
        }

        .result-status.active {
            background-color: #d1fae5;
            color: #065f46;
        }

        .result-status.error {
            background-color: #fee2e2;
            color: #991b1b;
        }

.audio-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 30px;
    border: 2px dashed #FF5722;
    margin-bottom: 25px;
    transition: all 0.3s;
}

        .audio-display.has-audio {
            border: 2px solid var(--border);
            background-color: white;
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        
            padding: 30px 0;
        }

.empty-state i {
    font-size: 5rem;
    color: #080808;
    margin-bottom: 20px;
}

        .empty-state p {
            font-size: 1.1rem;
            max-width: 300px;
        }

        .audio-player-container {
            width: 100%;
            max-width: 500px;
            display: none;
            animation: fadeIn 0.5s ease-out;
        }

        .audio-player {
            width: 100%;
            margin-bottom: 20px;
        }

        .audio-player::-webkit-media-controls-panel {
            background-color: #f3f4f6;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .loading-container {
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            padding: 40px 0;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(123, 0, 153, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s ease-in-out infinite;
        }

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

        .loading-text {
            color: var(--primary);
            font-size: 1.2rem;
            font-weight: 500;
        }

        .loading-dots {
            display: flex;
            gap: 5px;
        }

        .loading-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--primary);
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
        .loading-dots span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            justify-content: center;
        }

        .action-btn {
            padding: 15px 25px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            min-width: 150px;
        }

        .download-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(123, 0, 153, 0.3);
        }

        .regenerate-btn {
            background-color: white;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .regenerate-btn:hover {
            background-color: #fef2f2;
            transform: translateY(-3px);
        }

        .audio-info {
            margin-top: 15px;
            padding: 15px;
            
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        .audio-info p {
            margin: 0;
            color: var(--text);
        }

        .history-section {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid var(--border);
        }

        .history-section h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .history-section h3 i {
            color: var(--primary);
        }

        .history-list {
            max-height: 200px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .history-list::-webkit-scrollbar {
            width: 6px;
        }

        .history-list::-webkit-scrollbar-thumb {
            background-color: var(--primary-light);
            border-radius: 3px;
        }

        .history-item {
            padding: 12px 15px;
            margin-bottom: 8px;
            
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }

        .history-item:hover {
            background-color: #f0f0f0;
            transform: translateX(-5px);
            border-color: var(--primary-light);
        }

        .history-title {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 5px;
            font-size: 0.95rem;
        }

        .history-preview {
            font-size: 0.85rem;
        
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .footer {
            text-align: center;
            padding: 30px 0 20px;
        
            font-size: 0.95rem;
            border-top: 1px solid var(--border);
            margin-top: 30px;
        }

        .footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .container {
                padding: 15px;
                margin-top: 15px;
            }
            
            .app-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .form-card, .result-card {
                padding: 20px;
            }
            
            .card-header h2, .result-title h2 {
                font-size: 1.3rem;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .action-btn {
                width: 100%;
            }
            
            .ai-badge {
                align-self: flex-start;
            }
            
            .audio-player-container {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            .logo-text h1 {
                font-size: 1.5rem;
            }
            
            .empty-state i {
                font-size: 3.5rem;
            }
            
            .empty-state p {
                font-size: 1rem;
            }
            
            .generate-btn {
                padding: 15px;
                font-size: 1rem;
            }
        }