/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
        min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #0f172a; /* Slate 900 */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    direction: rtl;
    padding: 1rem;
    font-family: inherit;
}

/* Background Shapes Animation */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: #9333ea; /* Purple */
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background-color: #4f46e5; /* Indigo */
    animation-direction: reverse;
    animation-duration: 12s;
}

.shape-3 {
    top: 40%;
    left: 20%;
    width: 250px;
    height: 250px;
    background-color: #db2777; /* Pink */
    opacity: 0.2;
    animation-duration: 8s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Main Container & Glass Panel */
.main-container {
    width: 100%;
    max-width: 600px; /* Wider for episode list */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to left, #a5b4fc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #94a3b8; /* Slate 400 */
    font-size: 0.875rem;
}

/* Info Box */
.info-box {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.info-box h3 {
    font-size: 1rem;
    color: #e2e8f0;
}

/* Episode List & Cards */
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.episode-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.episode-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.episode-link {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
}

.play-icon {
    font-size: 0.8rem;
    color: #6366f1;
}

/* Copy Button */
.btn-copy {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.btn-copy:hover {
    background: #6366f1;
    color: white;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* MX Player Warning */
.mx-player-section {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}
.mx-player-section h3 {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-align: center;
}
.warning-card {
    background: rgba(0,0,0,0.2);
    border-color: rgba(234, 179, 8, 0.2);
}

/* Footer & Actions */
.footer-action {
    text-align: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    color: white;
}

.btn-dark {
    background: #334155;
}
.btn-dark:hover {
    background: #475569;
}

.footer {
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Toast Notification for Copy */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 640px) {
    .glass-panel {
        padding: 1.5rem;
    }
}