.widgets-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.widgets-tab {
    background: none;
    border: none;
    padding: 0;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #9db3d9;
    cursor: pointer;
    position: relative;
    transition: color .15s ease;
	flex: 0 0 auto;
}

@media (max-width: 640px) {
    .widgets-tabs {
        gap: 16px;
    }

    .widgets-tab {
        font-size: 15px;
    }
}

.widgets-tab:hover {
    color: #d7e3ff;
}

.widgets-tab.is-active {
    color: #ffffff;
}

.widgets-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: #c68f04;
    border-radius: 2px;
}

.widgets-tab-panel {
    display: none;
}

.widgets-tab-panel.is-active {
    display: block;
}

.widgets-form {
    margin: 15px 0;
}

.widgets-field-message {
    margin-top: 6px;
    font-size: 13px;
    color: #f87171;
}

.widgets-input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.widget-color-settings {
    margin: 18px 0 20px;
    padding: 14px 16px;
    background: rgba(10, 17, 32, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
}

.widget-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.widget-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #4b5563;
    flex: 0 0 auto;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.widget-color-label {
    line-height: 1.4;
    flex: 1 1 auto;
    white-space: nowrap;
}

.widget-color-input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 2; 
}

.widget-color-reset {
    margin-top: 12px;
    align-self: flex-start;
    padding: 6px 16px;
}

.widget-layout-settings {
    margin: 18px 0 20px;
    padding: 18px 20px;
    background: rgba(10, 17, 32, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.widget-layout-label {
    min-width: 130px;
    font-weight: 500;
    color: #e2e8f0;
}

.widget-layout-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5f5;
}

.widget-layout-size-group {
    display: inline-flex;
    gap: 8px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
}

.widget-layout-size-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    color: #cbd5f5;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.widget-layout-size-option input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.widget-layout-size-option span {
    font-size: 14px;
    line-height: 1;
}

.widget-layout-size-option:hover {
    background: rgba(148, 163, 184, 0.18);
}

.widget-layout-size-option:has(input[type="radio"]:checked) {
    background: #c68f04;
    color: #0b1020;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.widget-layout-elements,
.widget-layout-border {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.js-custom-title-row {
    display: none;
}

.js-opt-custom-title {
    flex: 1 1 220px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: #020617;
    color: #e5e7eb;
}

.js-opt-custom-title:focus {
    outline: 0;
    border-color: #c68f04;
}

.widgets-settings-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 18px 0 20px;
}

.widget-settings-col {
    flex: 1 1 260px;
    min-width: 0;
}

@media (max-width: 860px) {
    .widgets-settings-layout {
        flex-direction: column;
    }
}

.js-widget-number,
.js-opt-radius {
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: #020617;
    color: #e5e7eb;
    font-size: 13px;
}

.js-widget-number:focus,
.js-opt-radius:focus {
    outline: 0;
    border-color: #c68f04;
}

.widget-rating-settings {
    margin: 18px 0 20px;
    padding: 14px 16px;
    background: rgba(10, 17, 32, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.podcasts-list {
    background: rgba(10, 17, 32, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0;
    box-sizing: border-box;
    color: #e5e7eb;
}

.podcast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #1f242c;
    padding: 10px 16px;
    border-radius: 16px 16px 0 0;
}

.podcast-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

.podcast-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.9);
}

.podcast-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-header-text {
    min-width: 0;
}

.podcast-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e5e7eb;
}

.podcast-header-brand {
    flex-shrink: 0;
}

.podcast-header-brand img {
    display: block;
    height: 28px;
    width: auto;
}

.podcast-episodes {
    margin-top: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 6px 18px 0;
    max-height: 260px;
    overflow-y: auto;
}

.podcast-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.podcast-row:last-child {
    border-bottom: none;
}

.podcast-row-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #c68f04;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.podcast-row-play:hover {
    background: #e0a71b;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    transform: translateY(-0.5px);
}

.podcast-row-icon {
    display: inline-flex;
}

.podcast-row-icon svg {
    width: 27px;
    height: 27px;
}

.podcast-row-icon-pause {
    display: none;
}

.podcast-row-play.is-playing .podcast-row-icon-play {
    display: none;
}

.podcast-row-play.is-playing .podcast-row-icon-pause {
    display: inline-flex;
}

.podcast-row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.podcast-row-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-row-progress {
    display: none;
    margin-top: 2px;
}

.podcast-row--active .podcast-row-progress {
    display: block;
}

.podcast-row-seek {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    outline: none;
    cursor: pointer;
}

.podcast-row-seek::-webkit-slider-thumb,
.podcast-row-seek::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #c68f04;
}

.podcast-row-times {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
}

.podcast-row-meta {
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podcast-row-date {
    white-space: nowrap;
}

.podcast-row-duration {
    opacity: 0.75;
}

.podcasts-loading,
.podcasts-empty,
.podcasts-error {
    font-size: 13px;
    opacity: 0.85;
}

