/* --- Original Zamalek Calendar Ticker Bar --- */
.zc-widget-container {
    display: flex;
    align-items: center;
    background-color: var(--zc-bg-color, #f0f3f8);
    padding: 8px 12px;
    font-family: var(--zc-primary-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: var(--zc-font-size, 13px);
    color: var(--zc-text-color, #1e293b);
    border-radius: 8px;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.zc-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.zc-btn-trending {
    background-color: var(--zc-primary-color, #3b52f6);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: inherit;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.zc-ticker-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

.zc-ticker-wrapper:active {
    cursor: grabbing;
}

.zc-ticker-wrapper::-webkit-scrollbar {
    display: none;
}

.zc-ticker-track {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zc-card {
    display: inline-flex;
    align-items: center;
    background-color: var(--zc-card-bg, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 12px;
    gap: 8px;
    white-space: nowrap;
    height: 44px; /* Slightly taller for new time display */
    box-sizing: border-box;
    font-size: inherit;
    font-weight: 600;
    color: var(--zc-text-color, #1e293b);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    scroll-snap-align: start;
    flex-shrink: 0;
}

a.zc-card:hover {
    border-color: var(--zc-primary-color, #3b52f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.zc-card.zc-live {
    border-color: var(--zc-live-color, #ef4444);
}

.zc-champ-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.zc-ball-icon {
    font-size: 12px;
    opacity: 0.8;
}

.zc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--zc-live-color, #ef4444);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.zc-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: zcPulse 1.2s infinite ease-in-out;
}

@keyframes zcPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.zc-team {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zc-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.zc-team-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.zc-score-time {
    font-family: Helvetica;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.zc-empty {
    opacity: 0.6;
}

.zc-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 45px;
}

.zc-date-under {
    font-family: var(--zc-secondary-font, inherit);
    font-size: 0.8em;
    opacity: 0.7;
    font-weight: 500;
}

.zc-time-under {
    font-size: 13px;
    font-weight: 800;
    color: var(--zc-text-color, #1e293b);
}

.zc-live-minute {
    color: var(--zc-live-color, #ef4444);
    font-weight: 800;
    font-size: 14px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .zc-widget-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }
    .zc-controls {
        justify-content: space-between;
        width: 100%;
    }
    .zc-ticker-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    .zc-card {
        height: 48px;
        padding: 6px 14px;
    }
}

/* --- New Poll Widget Styles (RTL) --- */
.zc-poll-wrapper {
    background: #f9f9fb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eef0f4;
}

.zc-poll-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #475569;
}

.zc-poll-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 0px !important;
}

.zc-poll-match-board {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 30px;
    margin-bottom: 16px;
    border: 1px solid #eef0f4;
}

.zc-poll-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    width: 33%;
}

.zc-poll-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 5px !important;
}

.zc-poll-time {
    text-align: center;
    width: 33%;
    font-size: 13px;
    color: #64748b;
}

.zc-poll-time strong {
    font-size: 20px;
    color: #0f172a;
}

/* --- Poll Widget Countdown --- */
.zc-poll-countdown {
    font-size: 14px;
    font-family: 'Graphology-Arabic-Bold', Helvetica;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 6px;
    direction: ltr;
}

.zc-poll-action-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eef0f4;
}

.zc-poll-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.zc-poll-message.zc-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.zc-poll-info h4 {
    margin: 0 0 4px 0;
    font-family: 'Graphology-Arabic-Bold';
    font-size: 16px;
    font-weight: 700;
}

.zc-poll-subtitle {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
}

.zc-poll-options {
    display: flex;
    gap: 12px;
}

.zc-vote-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    height: 44px;
    font-family: inherit; 
}

.zc-vote-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    z-index: 2;
}

.zc-vote-btn span {
    z-index: 2;
}

.zc-vote-btn:hover {
    border-color: #3b52f6;
    background: #f8fafc;
}

.zc-percent {
    display: none;
    font-size: 14px;
}

.zc-poll-options.zc-voted .zc-vote-btn {
    justify-content: space-between;
    cursor: default;
    border-color: #e2e8f0;
}

.zc-poll-options.zc-voted .zc-vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--fill, 0%);
    background-color: #f1f5f9;
    z-index: 1;
    transition: width 0.5s ease-in-out;
}

.zc-poll-options.zc-voted .zc-vote-btn.zc-selected {
    border-color: #3b52f6;
}

.zc-poll-options.zc-voted .zc-vote-btn.zc-selected::before {
    background-color: #e0e7ff;
}

.zc-poll-options.zc-voted .zc-percent {
    display: block;
}

@media (max-width: 768px) {
    .zc-poll-match-board { padding: 12px; }
    .zc-poll-team img { width: 36px; height: 36px; }
}

/* --- Poll Header Flex Container (Info + Share) --- */
.zc-poll-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.zc-poll-share {
    position: relative;
}

.zc-share-toggle {
    background: transparent;
    border: 1px solid #eef0f4;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.zc-share-toggle:hover {
    background: #f8fafc;
    color: #3b52f6;
    border-color: #cbd5e1;
}

.zc-share-dropdown {
    position: absolute;
    top: 45px;
    left: 0; 
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 180px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.zc-share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zc-share-dropdown button {
    background: none;
    border: none;
    padding: 10px 14px;
    text-align: right;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

.zc-share-dropdown button:hover {
    background: #f1f5f9;
    color: #0f172a;
}


/* --- Final Result Widget Styles (RTL) --- */

.zc-result-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eef0f4;
}

.zc-result-header {
    display: flex;
    align-items: normal;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #475569;
}

.zc-result-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.zc-result-date {
    font-weight: 500;
    color: #94a3b8;
}

.zc-result-board {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.zc-result-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.zc-result-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

.zc-result-team-name {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 10px;
}

.zc-result-scorers {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.zc-result-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    margin-top: 10px;
}

.zc-result-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.zc-score-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Graphology-Arabic-Bold', Helvetica, sans-serif;
}

.zc-score-divider {
    color: #cbd5e1;
    font-size: 24px;
}

@media (max-width: 768px) {
    .zc-result-team img { width: 45px; height: 45px; }
    .zc-result-team-name { font-size: 14px; }
    .zc-score-display { font-size: 24px; gap: 8px; }
    .zc-result-badge { font-size: 10px; }
}