@font-face {
    font-family: Ruturk;
    src: url("../fonts/ProximaNova-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Ruturk;
    src: url("../fonts/ProximaNova-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}
body.ruturk {
    --rt-bg: #101320;
    --rt-shell: #171a2c;
    --rt-panel: #252b42;
    --rt-raised: #303853;
    --rt-line: #3a4260;
    --rt-text: #f5f3fa;
    --rt-muted: #b7bed0;
    --rt-accent: #ff83b7;
    --rt-action: #a83e74;
    --rt-blue: #a7cfe8;
    background: var(--rt-bg);
    color: var(--rt-muted);
    font: 16px/1.5 Ruturk, system-ui, sans-serif;
    min-height: 100vh;
    color-scheme: dark;
}
.ruturk a:hover { color: var(--rt-accent); }
.ruturk :focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 3px; }
.rt-shell {
    width: min(100%, 1280px);
    min-height: 100vh;
    margin-inline: auto;
    background: var(--rt-shell);
    box-shadow: 0 0 56px #05071370;
}
.rt-header {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 560px) 1fr;
    align-items: center;
    gap: 24px;
    padding: 16px 26px;
}
.rt-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: var(--rt-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}
.rt-brand span span { color: var(--rt-accent); }
.rt-search { display: flex; gap: 6px; min-width: 0; }
.rt-search input, .ruturk .rt-form input:not([type=checkbox],[type=radio],[type=hidden],[type=file],[type=submit],[type=button]),
.ruturk .rt-form textarea {
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rt-line);
    border-radius: 6px;
    background: var(--rt-bg);
    color: var(--rt-text);
    font-size: 16px;
}
.rt-search input { background: var(--rt-panel); }
.rt-button, .rt-search button {
    flex: none;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--rt-action);
    color: #fff;
    font-weight: 700;
}
.rt-button:hover, .rt-search button:hover { background: #b94880; }
.rt-account { justify-self: end; }
.rt-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 0 26px;
    border-block: 1px solid var(--rt-line);
    background: #1e2338;
}
.rt-nav a {
    display: flex;
    align-items: center;
    min-height: 45px;
    color: var(--rt-text);
    font-weight: 700;
}
.rt-premieres { padding: 10px 26px 15px; background: var(--rt-panel); }
.ruturk .rt-premieres #upcdn-latest { margin: 8px 0; }
.ruturk .rt-premieres #upcdn-latest .upe-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.ruturk .rt-premieres #upcdn-latest .upcdn-episode-card { text-align: left; }
.ruturk .rt-premieres #upcdn-latest .upe-heading h2 {
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ruturk .rt-premieres #upcdn-latest .upcdn-episode-card__title { font-size: 14px; }
.ruturk .rt-premieres #upcdn-latest .upcdn-episode-card__number { font-size: 13px; }
.rt-premieres .upe-summary { display: none; }
.rt-premieres .upe-status:empty { display: none; }
.rt-columns {
    display: grid;
    grid-template-columns: 222px minmax(0, 1fr);
    align-items: start;
}
.rt-sidebar {
    display: grid;
    gap: 12px;
    padding: 22px 16px;
    background: #1e2338;
    border-right: 1px solid var(--rt-line);
}
.rt-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 24px 28px 40px;
    overflow-wrap: anywhere;
}
.rt-heading, .rt-content > h1, .ruturk .upcdn-series-page > h1 {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rt-action);
    color: var(--rt-text);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
}
.rt-sidebar .rt-heading { color: var(--rt-accent); font-size: 15px; margin-top: 8px; }
.rt-heading a { float: right; margin: 4px 0 0 8px; font-size: .58em; color: var(--rt-blue); }
.rt-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-series-link, .rt-tabs button {
    display: block;
    padding: 7px 10px;
    background: var(--rt-panel);
    border-radius: 5px;
    color: var(--rt-text);
}
.rt-sidebar .upcdn-series-strip { display: grid; gap: 4px; }
.rt-sidebar .upcdn-series-comment { margin: 0; padding: 9px; background: var(--rt-panel); font-size: 13px; }
.rt-sidebar .upcdn-series-comment a { color: var(--rt-blue); }
.rt-sidebar .upcdn-series-comment__author { margin: 0; }
.rt-section { display: grid; gap: 14px; margin-top: 16px; min-width: 0; }
.rt-tabs .active { background: var(--rt-action); color: #fff; }
.ruturk #upcdn-series { margin: 0; }
.ruturk #upcdn-series .upcdn-series-list__grid, .rt-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ruturk .rt-content .upcdn-series-card, .rt-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rt-line);
    border-radius: 7px;
    background: var(--rt-panel);
}
.ruturk .rt-content .upcdn-series-card a { color: var(--rt-text); }
.ruturk #upcdn-series .upcdn-series-card__poster {
    aspect-ratio: 16/10;
    border-radius: 0;
    background: var(--rt-raised);
}
.ruturk #upcdn-series .upcdn-series-card__poster img { object-position: 50% 27%; }
.ruturk #upcdn-series .upcdn-series-card strong { margin: 0; padding: 10px 12px; }
.ruturk .rt-content .upcdn-series-card a:hover, .rt-news-card a:hover { color: var(--rt-accent); }
.rt-results > :not(.rt-news-card) { grid-column: 1/-1; min-width: 0; }
.rt-news-card { position: relative; padding-bottom: 8px; }
.rt-news-card a { display: block; color: var(--rt-text); }
.rt-news-card strong { display: block; padding: 9px 42px 4px 10px; }
.rt-news-card img, .rt-card-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rt-card-placeholder { display: grid; place-items: center; background: var(--rt-raised); }
.rt-news-card button { position: absolute; right: 4px; bottom: 4px; min-width: 40px; min-height: 40px; color: var(--rt-accent); }
.rt-news-card button.active { color: #fff; background: var(--rt-action); border-radius: 5px; }
.rt-breadcrumbs { font-size: 14px; color: var(--rt-blue); }
.rt-breadcrumbs:empty { display: none; }
.rt-player { aspect-ratio: 16/9; background: #080a11; border-radius: 8px; overflow: hidden; }
.rt-player iframe { display: block; border: 0; width: 100%; height: 100%; }
.rt-viewing { display: grid; gap: 14px; }
.rt-episode-picker { background: var(--rt-panel); border-radius: 6px; }
.rt-episode-picker summary { cursor: pointer; padding: 12px 16px; color: var(--rt-text); }
.rt-episode-picker ul { padding: 0 12px 12px; max-height: 320px; overflow: auto; }
.ruturk .upcdn-episode-nav a { background: var(--rt-raised); color: var(--rt-text); }
.ruturk .upcdn-episode-nav a:hover { background: var(--rt-action); }
.ruturk .upcdn-series-page { margin-top: 0; }
.ruturk .upcdn-series-page__episodes { grid-template-columns: repeat(3,minmax(0,1fr)); }
.rt-form {
    display: grid;
    gap: 12px;
    width: min(100%, 700px);
    padding: clamp(12px, 3vw, 24px);
    background: var(--rt-panel);
    border: 1px solid var(--rt-line);
    border-radius: 8px;
}
.rt-form label { display: grid; gap: 5px; }
.rt-form img, .rt-form iframe { max-width: 100%; }
.rt-form a { color: var(--rt-blue); }
.ruturk #loginModal .modal-dialog { width: min(440px, calc(100% - 24px)); margin-inline: auto; }
.ruturk #loginModal .modal-content { background-color: var(--rt-panel); }
.ruturk #loginModal .rt-form { border: 0; }
.rt-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-top: 1px solid var(--rt-line);
}
.rt-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.rt-footer-brand { font-weight: 700; color: var(--rt-text); }
@media (max-width: 920px) {
    .rt-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
    .rt-columns { grid-template-columns: minmax(0, 1fr); }
    .rt-sidebar { order: 2; border-right: 0; border-top: 1px solid var(--rt-line); }
    .rt-sidebar .upcdn-series-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ruturk .rt-premieres #upcdn-latest .upe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .rt-header { grid-template-columns: minmax(0,1fr) auto; padding: 12px 14px; }
    .rt-brand { font-size: 29px; }
    .rt-brand img { width: 42px; height: 42px; }
    .rt-search { grid-row: 2; grid-column: 1/-1; }
    .rt-nav { padding: 0 14px; gap: 2px 15px; }
    .rt-nav a { font-size: 14px; }
    .rt-premieres { padding-inline: 14px; }
    .ruturk .rt-premieres #upcdn-latest .upe-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 47%;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }
    .rt-premieres .upcdn-episode-card { scroll-snap-align: start; }
    .rt-content { padding: 18px 14px 28px; }
    .ruturk #upcdn-series .upcdn-series-list__grid { grid-template-columns: minmax(0, 1fr); }
    .ruturk #upcdn-series .upcdn-series-card__poster { aspect-ratio: 16/8; }
    .rt-results, .ruturk .upcdn-series-page__episodes { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .rt-profile-edit { grid-template-columns: minmax(0, 1fr); }
    .ruturk .rt-content .c-captcha { flex-wrap: wrap; }
    .rt-footer { padding: 16px 14px; }
}
.rt-card-placeholder img { width: 48px; height: 48px; }
.rt-search-options { display: grid; gap: 12px; }
.rt-search-options summary { cursor: pointer; }
.rt-search-options table { width: 100%; }
.rt-search-options #searchinput { width: 100% !important; }
.rt-search-options :is(input,select) { max-width: 100%; }
@media (max-width: 560px) {
    .rt-search-options table td { display: block; width: 100%; }
}

.rt-discussions:not(:has(.upcdn-series-comment)) { display: none; }
.rt-premieres #upcdn-latest { --upe-accent: var(--rt-accent); }
.rt-static { display: grid; gap: 12px; }
.rt-static #registration { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rt-static #registration input:is([type=submit],[type=button]) {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--rt-raised);
    color: var(--rt-text);
    cursor: pointer;
}
.rt-static #registration input[type=submit] { background: var(--rt-action); }
#rt-viewed:has(.upcdn-series-strip) .rt-viewed-empty { display: none; }
