body.azan-page,
body.city-page,
.azan-page main,
.city-page main {
    background: #f8fafb;
    overflow-x: hidden;
}

.azan-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    font-family: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
}

.azan-shell,
.azan-shell *,
.azan-shell *::before,
.azan-shell *::after,
.city-page .azan-daily-widget,
.city-page .azan-daily-widget *,
.city-page .azan-daily-widget *::before,
.city-page .azan-daily-widget *::after {
    box-sizing: border-box;
}

.azan-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: linear-gradient(135deg, #1a1a3a, #0044bb);
    color: #fff;
    box-shadow: 0 14px 36px rgba(26, 26, 58, .14);
}

.azan-hero h1 {
    margin: 0 0 12px;
    color: #fff !important;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.azan-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.azan-page .azan-hero h1,
.azan-page .azan-hero .azan-kicker {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.azan-page .azan-hero p {
    color: rgba(255, 255, 255, .9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, .9);
}

.azan-kicker {
    margin-bottom: 8px !important;
    color: rgba(255, 255, 255, .8) !important;
    font-size: 13px !important;
    font-weight: 800;
}

.azan-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.azan-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 10px;
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.azan-page .azan-hero-actions a,
.azan-page .azan-hero-actions a:link,
.azan-page .azan-hero-actions a:visited,
.azan-page .azan-hero-actions a:hover,
.azan-page .azan-hero-actions a:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.azan-page .azan-hero-actions a :where(span, strong, b, small) {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.azan-search-panel,
.azan-city-list,
.azan-seo-text,
.azan-next,
.azan-table-section,
.azan-controls {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
}

.azan-search-panel h2,
.azan-city-list h2,
.azan-seo-text h2,
.azan-table-section h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.7;
}

.azan-search {
    position: relative;
}

.azan-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font: inherit;
}

.azan-search input:focus {
    border-color: #4488ff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(68, 136, 255, .12);
}

.azan-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .12);
}

.azan-result-item,
.azan-empty-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #1f2937;
}

.azan-result-item {
    text-decoration: none;
}

.azan-result-item + .azan-result-item {
    border-top: 1px solid #edf2f7;
}

.azan-result-item:hover {
    background: #eff6ff;
    color: #0044bb;
}

.azan-result-item small {
    color: #6b7280;
}

.azan-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    transition: opacity .16s ease;
}

.azan-city-grid.is-loading,
.azan-pagination.is-loading {
    opacity: .55;
    pointer-events: none;
}

.azan-city-grid a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    color: #111827;
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.azan-city-grid a:hover {
    border-color: #4488ff;
    box-shadow: 0 10px 24px rgba(68, 136, 255, .12);
    transform: translateY(-1px);
}

.azan-city-grid span {
    font-weight: 900;
}

.azan-city-grid small {
    color: #6b7280;
    font-weight: 700;
}

.azan-pagination {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-top: 20px;
}

.azan-pagination__summary {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.azan-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.azan-pagination__btn,
.azan-pagination__page,
.azan-pagination__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.azan-pagination__btn {
    min-width: 86px;
}

.azan-pagination__btn:not(:disabled),
.azan-pagination__page:not(:disabled) {
    cursor: pointer;
}

.azan-pagination__btn:not(:disabled):hover,
.azan-pagination__page:not(:disabled):hover {
    border-color: #4488ff;
    background: #eff6ff;
    color: #0044bb;
}

.azan-pagination__page.is-active {
    border-color: #0044bb;
    background: #0044bb;
    color: #fff;
}

.azan-pagination__btn:disabled,
.azan-pagination__page:disabled {
    opacity: .55;
}

.azan-pagination__gap {
    border-style: dashed;
    color: #9ca3af;
}

.azan-next {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
}

.azan-next span {
    color: #6b7280;
}

.azan-next strong {
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.azan-next b {
    direction: ltr;
    color: #0044bb;
    font-size: 28px;
    font-weight: 900;
}

.azan-times-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.azan-times-grid article {
    min-height: 112px;
    padding: 20px;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    background: #fff;
}

.azan-times-grid span {
    display: block;
    margin-bottom: 12px;
    color: #6b7280;
    font-weight: 800;
}

.azan-times-grid strong {
    direction: ltr;
    display: block;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
}

.city-page .city-hero__weather {
    gap: 14px;
}

.azan-daily-widget {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: #2b2b2b;
    color: #f8fafc;
    box-shadow: 0 18px 44px rgba(17, 24, 39, .16);
}

.azan-page .azan-daily-widget,
.city-page .azan-daily-widget,
.azan-page .azan-daily-widget :where(h2, p, span, strong, b),
.city-page .azan-daily-widget :where(h2, p, span, strong, b) {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc;
}

.azan-daily-widget--city-page {
    margin-top: 0;
    border-radius: 20px;
}

.azan-daily-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.azan-daily-widget__head h2 {
    margin: 0;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.7;
}

.azan-daily-widget__head p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .72) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
}

.azan-daily-widget__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 22px;
}

.azan-daily-widget__item {
    display: grid;
    grid-template-columns: 28px auto minmax(58px, max-content);
    align-items: center;
    gap: 9px;
    min-height: 46px;
    color: #f8fafc;
}

.azan-daily-widget__icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #ffdc60;
}

.azan-daily-widget__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.azan-page .azan-daily-widget__icon,
.city-page .azan-daily-widget__icon {
    color: #ffdc60 !important;
    -webkit-text-fill-color: #ffdc60;
}

.azan-daily-widget__label,
.azan-daily-widget__time {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc;
    font-size: 17px;
    line-height: 1.8;
}

.azan-daily-widget__label {
    font-weight: 700;
}

.azan-daily-widget__time {
    direction: ltr;
    font-weight: 900;
    text-align: left;
}

.azan-daily-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 22px 22px;
}

.azan-daily-widget__actions a,
.azan-daily-widget__actions a:link,
.azan-daily-widget__actions a:visited,
.azan-daily-widget__actions a:hover,
.azan-daily-widget__actions a:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.azan-seo-text p {
    margin: 0;
    color: #4b5563;
    line-height: 2.1;
}

.azan-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.azan-controls label {
    display: grid;
    gap: 8px;
    min-width: 180px;
    color: #4b5563;
    font-weight: 800;
}

.azan-controls select,
.azan-controls input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font: inherit;
}

.azan-controls select:focus,
.azan-controls input:focus {
    border-color: #4488ff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(68, 136, 255, .12);
}

.azan-table-wrapper {
    overflow-x: auto;
}

.azan-table-section table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.azan-table-section th,
.azan-table-section td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.azan-table-section th {
    background: #1a1a3a;
    color: #fff !important;
    font-weight: 900;
}

.azan-table-section td {
    color: #1f2937;
}

.azan-month-row td {
    background: #0044bb;
    color: #fff !important;
    font-weight: 900;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .azan-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 12px;
    }

    .azan-hero {
        display: block;
        padding: 22px;
    }

    .azan-hero h1 {
        font-size: 23px;
        line-height: 1.7;
    }

    .azan-hero-actions {
        margin-top: 18px;
    }

    .azan-hero-actions a {
        flex: 1 1 140px;
        justify-content: center;
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .azan-search-panel,
    .azan-city-list,
    .azan-seo-text,
    .azan-next,
    .azan-table-section,
    .azan-controls {
        padding: 18px;
    }

    .azan-next {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .azan-times-grid {
        grid-template-columns: 1fr;
    }

    .azan-daily-widget {
        border-radius: 12px;
    }

    .azan-daily-widget__head {
        padding: 17px 16px 13px;
    }

    .azan-daily-widget__head h2 {
        font-size: 18px;
    }

    .azan-daily-widget__grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .azan-daily-widget__item {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        min-height: 42px;
    }

    .azan-daily-widget__label {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .azan-daily-widget__label,
    .azan-daily-widget__time {
        font-size: 15px;
    }

    .azan-daily-widget__actions {
        padding: 0 16px 16px;
    }

    .azan-city-grid {
        grid-template-columns: 1fr 1fr;
    }

    .azan-pagination__controls {
        width: 100%;
    }

    .azan-pagination__btn {
        flex: 1 1 calc(50% - 4px);
    }
}

@media (max-width: 420px) {
    .azan-city-grid {
        grid-template-columns: 1fr;
    }
}
