/* Audycje use the existing Rexi typography, cards and red/charcoal palette.
   Keep sizing local: the theme uses content-box and fixed-width flex children. */
.audycje_archive,
.audycje_single {
    --audycje-red: #d90000;
    --audycje-ink: #242424;
    --audycje-muted: #626262;
    width: 100%;
    min-width: 0;
    font-family: "Roboto", sans-serif;
}
.audycje_archive,
.audycje_archive *,
.audycje_archive *::before,
.audycje_archive *::after,
.audycje_single,
.audycje_single *,
.audycje_single *::before,
.audycje_single *::after {
    box-sizing: border-box;
}
.audycje_archive > .banner,
.audycje_single > .banner {
    width: 100%;
    min-width: 0;
}
.audycje_archive .maxwidth.pagepadding,
.audycje_single .maxwidth.pagepadding {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    padding-left: clamp(16px, 2.5vw, 32px);
    padding-right: clamp(16px, 2.5vw, 32px);
    margin-left: auto;
    margin-right: auto;
}
.audycje_archive #mainsection {
    padding-top: 32px;
    padding-bottom: 20px;
}
.audycje_archive #mainsection .maxwidth,
.audycje_archive #mainsection .row {
    display: block;
    width: 100%;
    min-width: 0;
}
.audycje_archive #mainsection .contentpadding { padding-right: 0; }
.audycje_archive #mainsection h1 {
    font-family: "Raleway", sans-serif;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.12;
    font-weight: 700;
    padding: 0 0 14px;
    margin: 0;
    overflow-wrap: anywhere;
}
.audycje_archive #mainsection .textrexi {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 0;
    margin: 0;
}
.audycje_archive #mainsection .single_back { margin-bottom: 16px; }
.audycje_archive #posts_section { padding-top: 8px; padding-bottom: 80px !important; }
.audycje_archive .blog_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    grid-template-areas: "results filters";
    gap: 32px;
    width: 100%;
    align-items: start;
}
.audycje_archive .blog_main {
    grid-area: results;
    width: 100%;
    min-width: 0;
}
.audycje_archive .blog_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    min-width: 0;
}
.audycje_archive .blog_card { width: 100%; min-width: 0; text-align: left; }
.audycje_archive .blog_card_link,
.audycje_archive .blog_card_body { min-width: 0; }
.audycje_archive .blog_card_cat { max-width: calc(100% - 24px); overflow-wrap: anywhere; background: var(--audycje-red); }
.audycje_archive .blog_card_date,
.audycje_single .single_meta,
.audycje_single .single_meta_item { color: var(--audycje-muted); }
.audycje_archive .blog_card_title,
.audycje_archive .blog_card_excerpt,
.audycje_single .single_title { overflow-wrap: anywhere; }
.audycje_badges { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.audycje_badge { display: inline-flex; background: #242424; color: #fff; border-radius: 4px; padding: 5px 9px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.audycje_archive .blog_read_more,
.audycje_archive .blog_card:hover .blog_card_title,
.audycje_single .single_back,
.audycje_single a.single_meta_cat,
.audycje_single .single_nav_dir { color: var(--audycje-red); }
.audycje_archive a:focus-visible,
.audycje_single a:focus-visible,
.audycje_archive button:focus-visible,
.audycje_single button:focus-visible,
.audycje_archive input:focus-visible,
.audycje_archive select:focus-visible,
.audycje_single input:focus-visible,
.audycje_single select:focus-visible { outline: 3px solid var(--audycje-red); outline-offset: 4px; }

/* Filters come first in document order and stay above the results on tablets/phones. */
.audycje_archive .blog_sidebar {
    grid-area: filters;
    display: block;
    width: 100%;
    min-width: 0;
}
.audycje_archive .blog_sidebar .sidebar_widget {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 22px;
}
.audycje_archive .sidebar_widget .sidebar_title { line-height: 1.3; text-align: left; }
.audycje_filters { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; text-align: left; }
.audycje_filter_field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.audycje_filters label { font-size: 13px; line-height: 1.4; font-weight: 700; color: #333; }
.audycje_filters input[type=search],
.audycje_filters select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #fff;
    color: #333;
    padding: 11px 12px;
    font: 16px "Roboto", sans-serif;
}
.audycje_filters button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 2px solid var(--audycje-red);
    border-radius: 6px;
    padding: 11px 14px;
    background: var(--audycje-red);
    color: #fff;
    font: 700 14px "Roboto", sans-serif;
    cursor: pointer;
}
.audycje_filters button:hover { background: #b60000; border-color: #b60000; }
.audycje_reset { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #555; text-decoration: underline; text-underline-offset: 3px; }
.audycje_search_summary { margin: 0 0 20px; color: #555; text-align: left; overflow-wrap: anywhere; }
.audycje_term_description { max-width: 820px; color: #555; text-align: left; font-size: 16px; line-height: 1.65; }
.audycje_archive .audycje_empty {
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 2px solid #4b4b4b;
    border-radius: 8px;
    background: #fff;
    text-align: left;
}
.audycje_empty h2 { font-family: "Raleway", sans-serif; font-size: clamp(22px, 2.2vw, 28px) !important; line-height: 1.3 !important; margin: 0 0 12px !important; color: #333; }
.audycje_empty p { max-width: 560px; font-size: 15px; line-height: 1.65; margin: 0; }
.audycje_empty .single_nav_all { width: auto; max-width: 100%; min-height: 46px; margin-top: 22px; white-space: normal; text-align: center; }
.audycje_pagination ul.page-numbers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border: 0; height: auto; }
.audycje_pagination ul.page-numbers li { margin: 0; padding: 0; list-style: none; }
.audycje_pagination .page-numbers { min-height: 44px; }
.audycje_pagination .page-numbers.current,
.audycje_pagination a.page-numbers:hover { background: var(--audycje-red); border-color: var(--audycje-red); }

/* Local media players and article navigation. */
.audycje_players{width:100%;max-width:940px;margin-inline:auto;display:flex;flex-direction:column;gap:24px}
.audycje_players:empty{display:none}
.audycje_player_top{padding-top:clamp(20px,3vw,40px);padding-bottom:clamp(20px,3vw,40px)}
.audycje_player_top .maxwidth{width:100%;align-items:center}
.audycje_player{box-sizing:border-box;width:100%;overflow:hidden;border:2px solid #4b4b4b;border-radius:8px;background:#242424;color:#fff;text-align:left}
.audycje_player_heading{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#fff;color:#242424}
.audycje_player_heading h2{font-family:"Raleway",sans-serif;font-size:20px!important;line-height:1.3!important;font-weight:700;margin:0!important;color:#242424}
.audycje_player_type{display:inline-flex;padding:4px 7px;background:var(--audycje-red);border-radius:3px;color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.audycje_media{display:block;width:100%;max-width:100%;margin:0}
video.audycje_media{aspect-ratio:16/9;object-fit:contain;background:#101010;max-height:75vh}
.audycje_youtube{display:block;width:100%;max-width:100%;min-height:200px;aspect-ratio:16/9;border:0;background:#101010}
audio.audycje_media{box-sizing:border-box;padding:14px;height:80px;background:#242424}
.audycje_player--enhanced audio.audycje_media{height:0;padding:0}
.audycje_player [hidden]{display:none!important}
.audycje_controls{padding:14px 20px 12px}
.audycje_timeline{display:flex;align-items:center;gap:10px;font-size:12px;font-variant-numeric:tabular-nums}
.audycje_timeline>span{flex:0 0 auto;min-width:32px}
.audycje_timeline>input{flex:1;min-width:30px}
.audycje_player input[type=range]{padding:0;margin:0;height:26px;accent-color:#ff3131;cursor:pointer;background:transparent;border:0;box-shadow:none}
.audycje_player input[type=range]:disabled{opacity:.5;cursor:default}
.audycje_buttons{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}
.audycje_buttons button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:40px;min-width:40px;padding:8px 10px;border:1px solid #666;border-radius:4px;color:#fff;background:#343434;font:500 13px "Roboto",sans-serif;cursor:pointer;line-height:1.2}
.audycje_buttons button:hover{background:#494949;border-color:#aaa}
.audycje_buttons .audycje_play{background:var(--audycje-red);border-color:var(--audycje-red);font-weight:700;min-width:108px}
.audycje_buttons .audycje_play:hover{background:#b60000;border-color:#b60000}
.audycje_volume{display:flex;align-items:center;gap:8px}
.audycje_volume input{width:80px}
.audycje_rate{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#eee;white-space:nowrap}
.audycje_rate select{min-height:40px;box-sizing:border-box;min-width:68px;padding:6px;border:1px solid #666;border-radius:4px;background:#343434;color:#fff;font:13px "Roboto",sans-serif}
.audycje_player_status{margin:0!important;padding:0 20px;color:#fff;font-size:13px!important;line-height:1.5!important}
.audycje_player_status:empty{display:none}
.audycje_player_status:not(:empty){padding-top:6px;padding-bottom:8px}
.audycje_media_file{display:inline-flex;gap:6px;padding:0 20px 14px;color:#ddd!important;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.audycje_media_file:hover{color:#fff!important}
.audycje_player:fullscreen{display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;width:100%;height:100%;background:#101010}
.audycje_player:fullscreen .audycje_player_heading,.audycje_player:fullscreen .audycje_media_file{display:none}
.audycje_player:fullscreen video{flex:1;min-height:0;max-height:calc(100vh - 110px);aspect-ratio:auto}
.audycje_player:fullscreen .audycje_controls{flex-shrink:0}
.audycje_sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.audycje_single .single_title,.audycje_archive .blog_card_title{overflow-wrap:anywhere}
.audycje_comments{width:100%;max-width:820px;text-align:left}
.audycje_comments input:not([type=checkbox]),.audycje_comments textarea{max-width:100%;box-sizing:border-box}
.audycje_single .single_content{overflow-wrap:anywhere}
.audycje_single .single_content video,.audycje_single .single_content iframe{max-width:100%}
.audycje_single .single_content .wp-block-table{overflow-x:auto}
.audycje_content_pages{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

.audycje_single .single_meta { max-width: 100%; overflow-wrap: anywhere; }
.audycje_single .single_meta_item { min-width: 0; }
.audycje_single .single_nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.audycje_single .single_nav_center,
.audycje_single .single_nav_link { min-width: 0; max-width: 100%; }
.audycje_single .single_nav_all { max-width: 100%; min-height: 46px; white-space: normal; text-align: center; }
.audycje_single .single_nav_dir { overflow-wrap: anywhere; }
.audycje_player_heading { flex-wrap: wrap; }
.audycje_buttons button,
.audycje_rate select { min-height: 44px; }
.audycje_volume,
.audycje_rate { max-width: 100%; }
.audycje_timeline > input { width: 0; }
.audycje_single .single_content iframe { width: 100%; }

@media (max-width: 1000px) {
    .audycje_archive .blog_layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "filters" "results";
        gap: 24px;
    }
    .audycje_archive .blog_sidebar .sidebar_widget { padding: 20px; }
}
@media (max-width: 680px) {
    .audycje_single .single_nav { grid-template-columns: minmax(0, 1fr); }
    .audycje_single .single_nav_side:empty { display: none; }
    .audycje_single .single_nav_center { width: 100%; }
}
@media (max-width: 600px) {
    .audycje_archive #mainsection { padding-top: 24px; }
    .audycje_archive #posts_section { padding-bottom: 56px !important; }
    .audycje_archive .blog_grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .audycje_archive .blog_card_body { padding: 20px; }
    .audycje_player_heading { padding: 15px 14px; gap: 9px; }
    .audycje_player_heading h2 { font-size: 18px !important; }
    .audycje_controls { padding: 12px 14px; }
    .audycje_buttons { gap: 8px; }
    .audycje_buttons .audycje_play { min-width: 98px; }
    .audycje_volume input { width: 55px; }
    .audycje_rate { margin-left: 0; }
    .audycje_rate > select { min-width: 64px; }
    .audycje_buttons [data-fullscreen] span { display: none; }
    .audycje_player_status { padding-left: 14px; padding-right: 14px; }
    .audycje_media_file { padding-left: 14px; }
    .audycje_single .single_title { font-size: clamp(28px, 7vw, 38px); line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
    .audycje_archive .blog_card,
    .audycje_archive .blog_card_thumb img,
    .audycje_archive .blog_read_more::after { transition: none; }
    .audycje_archive .blog_card:hover,
    .audycje_archive .blog_card:hover .blog_card_thumb img { transform: none; }
}
