html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 10pt;
    font-family: Tahoma, Arial, Verdana, sans-serif;
    line-height: 1.55;
    color: #000;
    background: #fff url("/img/bg.jpg") center fixed;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: bold;
}

h1, h2, h3 {
    color: #4682b4;
}

h1 {
    font-size: 18pt;
    margin: 0 0 14px;
    padding: 0 0 2px 2px;
    border-bottom: 1px dotted #ffe8e2;
}

h2 {
    font-size: 15pt;
    margin: 14px 0 8px;
    padding-left: 6px;
    border-left: 4px solid #b0c4de;
    color: #c96f00;
}

h3 {
    font-size: 12pt;
    margin: 14px 0 8px;
    padding-left: 6px;
    border-left: 4px solid #b0c4de;
    color: #c96f00;
}

a { color: #4682b4; text-decoration: none; }
a:hover { color: #66bb88; text-decoration: underline; }

p { margin: 0 0 14px; }

.btn-primary {
    color: #fff;
    background-color: #4682b4;
    border-color: #4682b4;
    font-weight: bold;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    color: #fff;
    background-color: #3d719d;
    border-color: #4682b4;
}

.btn-default {
    color: #4682b4;
    background-color: #fff;
    border-color: #4682b4;
    font-weight: bold;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
    color: #4682b4;
    background-color: #eef3fb;
    border-color: #4682b4;
}

.navbar-top .navbar-form .btn {
    color: #fff;
    background-color: #4682b4;
    border-color: #4682b4;
}

.navbar-top .navbar-form .btn:hover,
.navbar-top .navbar-form .btn:focus {
    color: #fff;
    background-color: #3d719d;
}

.form-control {
    border-color: #4682b4;
}

.form-control:focus {
    border-color: #4682b4;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, .2);
}

.pagination > li > a,
.pagination > li > span {
    color: #4682b4;
}

.pagination > li > a:hover,
.pagination > li > a:focus {
    color: #66bb88;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
    color: #fff;
    background-color: #4682b4;
    border-color: #4682b4;
}

.navbar-top {
    min-height: 0;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background-color: #dcecf8;
    background-image: linear-gradient(180deg, #3f7fb5 0%, #8ec5e8 45%, #e9f6fe 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.navbar-top .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-top .navbar-header {
    flex: 0 0 auto;
}

.navbar-top .navbar-brand {
    display: block;
    padding: 0;
    height: auto;
}

.navbar-top .navbar-brand img {
    display: block;
    width: 380px;
    height: auto;
    pointer-events: none;
}

.navbar-top .menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 3px;
    margin: 0 0 0 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-top .menu > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 4px 10px;
    color: #4682b4;
    font-size: 10.5pt;
    line-height: 1.15;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 4px rgba(255, 255, 255, .9), 0 1px 2px rgba(255, 255, 255, .8);
    white-space: nowrap;
    border-radius: 4px;
}

.navbar-top .menu > li > a:hover {
    background: rgba(255, 255, 255, .55);
    color: #ee4588;
}

.navbar-top .menu img {
    width: auto;
    height: 42px;
}

.navbar-top .navbar-form {
    margin: 0;
    padding: 0;
    flex: 0 0 300px;
    max-width: 300px;
    border: 0;
    box-shadow: none;
}

.navbar-top .navbar-form .input-group {
    display: table;
    width: 100%;
}

.page-wrap {
    position: relative;
    flex: 1 0 auto;
    padding: 20px 15px 28px;
    background: rgba(255, 255, 255, .7);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}

.page-ad {
    float: right;
    margin: 0 0 12px 16px;
}

.page-ad #ga:empty {
    display: none;
}

.footer {
    position: static;
    width: 100%;
    margin-top: 18px;
    padding: 14px 0 16px;
    background: linear-gradient(180deg, #fff1ec 0%, #fffdfb 100%);
    border-top: 1px solid #f0dfd8;
    color: #c96f00;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 9.5pt;
    line-height: 1.5;
}

.footer-links a {
    color: #c96f00;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-share {
    margin-top: 0;
}

.footer-ip {
    font-size: 9pt;
    white-space: nowrap;
}

.footer-ip a {
    color: #c96f00;
}

.panel {
    border-radius: 4px;
}

.panel-warning > .panel-heading {
    background: #fcf8e3;
    border-color: #faebcc;
}

.mults-cover {
    float: left;
    margin: 0 18px 14px 0;
    max-width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
}

.mults-description {
    text-align: justify;
    line-height: 1.55;
    max-height: 110px;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.mults-description table {
    max-width: 100%;
}

.pay-widget iframe {
    max-width: 100%;
}

.mults-description.is-expanded {
    max-height: none;
}

.mults-more {
    margin: 6px 0 16px;
}

.mults-more a.is-open .caret {
    transform: rotate(180deg);
}

.mults-player {
    position: relative;
    min-height: 180px;
    margin: 14px 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .page-wrap:has(.mults-player) .page-ad {
        min-height: 250px;
    }
}

.mults-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin: 14px -15px;
    padding: 10px;
    background: #000;
}

.mults-stage .mults-player {
    grid-area: 1 / 1;
    min-width: 0;
    margin: 0;
}

.mults-stage .page-ad {
    grid-area: 1 / 2;
    float: none;
    margin: 0;
}

.mults-stage .mults-fallback {
    grid-column: 1 / -1;
    margin: 0;
}

.mults-player .mults-poster {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
    pointer-events: none;
}

.mults-player video {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    opacity: 0;
    transition: opacity .15s ease;
}

.mults-player.is-playing video {
    opacity: 1;
}

.mults-player.is-playing .mults-poster {
    opacity: 0;
}

.mults-player .mults-play {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mults-player.is-ready .mults-play {
    display: flex;
}

.mults-player .mults-play-icon {
    position: relative;
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    transition: background .15s ease, transform .15s ease;
}

.mults-player .mults-play-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -14px 0 0 -7px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
}

.mults-player .mults-play-label {
    display: block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    transition: background .15s ease;
}

.mults-player .mults-play:hover .mults-play-icon {
    background: rgba(0, 0, 0, .72);
    transform: scale(1.05);
}

.mults-player .mults-play:hover .mults-play-label {
    background: rgba(0, 0, 0, .72);
}

@media (max-width: 480px) {
    .mults-player .mults-play-icon {
        width: 60px;
        height: 60px;
    }

    .mults-player .mults-play-icon::after {
        margin: -12px 0 0 -6px;
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 19px;
    }

    .mults-player .mults-play-label {
        padding: 5px 12px;
        font-size: 13px;
    }
}

.mults-player .mults-play:focus-visible {
    outline: 3px solid #4682b4;
    outline-offset: -3px;
}

.mults-player.is-starting .mults-play {
    opacity: .5;
    pointer-events: none;
}

.mults-player.is-playing .mults-play {
    display: none;
}

.mults-player:not(:has(.mults-poster)) {
    aspect-ratio: 3 / 2;
}

.mults-player:not(:has(.mults-poster)) video {
    opacity: 1;
}

.mults-fallback {
    margin: 6px 0 0;
}

.js .mults-fallback {
    display: none;
}

.mults-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: #fff1ec;
    border: 1px solid #f0dfd8;
    border-radius: 4px;
}

.mults-net-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mults-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    font-weight: normal;
}

.mults-actions .btn .glyphicon {
    top: 0;
}

.mults-actions .btn:hover,
.mults-actions .btn:focus,
.mults-actions .btn:active {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.mults-actions .mults-tale {
    color: #4682b4;
    font-weight: bold;
}

.mults-actions .mults-tale:hover,
.mults-actions .mults-tale:focus,
.mults-actions .mults-tale:active {
    color: #3d719d;
    background-color: #eef3fb;
    border-color: #4682b4;
}

.mults-net-group {
    display: inline-flex;
    align-items: stretch;
}

.mults-net-group .btn {
    margin-left: -1px;
    border-radius: 0;
}

.mults-net-group .btn:first-child {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mults-net-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.mults-net-group .btn:hover,
.mults-net-group .btn:focus {
    position: relative;
    z-index: 1;
}

.mults-fileinfo {
    margin-top: 14px;
    padding: 8px 10px;
    border-left: 4px solid #c96f00;
    font: 8pt "Courier New", monospace;
    color: #555;
}

.mults-fileinfo b {
    color: #c96f00;
}

.mults-list {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
}

.mults-list td {
    padding: 7px 8px;
    border-bottom: 1px solid #f1e4d8;
    vertical-align: middle;
}

.mults-list tr.series-row td {
    padding-top: 20px;
    border-bottom: 0;
    color: #c96f00;
    font-weight: bold;
}

.mults-list .mults-year {
    color: #888;
    white-space: nowrap;
}

.center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.admin-nav {
    margin: 0 0 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.admin-nav a {
    margin: 0 4px;
}

.search-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 14px;
}

.search-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.search-options input[type="radio"],
.search-options input[type="checkbox"] {
    margin: 0;
}

.ad-inline {
    margin: 16px 0;
}

.catalog-pager {
    margin: 22px 0 10px;
}

.catalog-pager-pages {
    text-align: center;
}

.catalog-pager .pagination {
    margin: 0 0 10px;
}

.catalog-pager-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 24px;
    color: #666;
}

.catalog-by {
    color: #666;
}

.mults-icon {
    width: 24px;
    text-align: center;
}

.mults-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfcfcf;
    vertical-align: middle;
}

.text-muted {
    color: #888;
}

.about-nav {
    margin: 0 0 18px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.about-nav a {
    display: inline-block;
    margin-right: 16px;
    font-weight: bold;
}

.about-stats {
    margin: 12px 0 18px;
    padding: 10px 14px;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
}

.faq details {
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.faq summary {
    cursor: pointer;
    font-weight: bold;
    color: #4682b4;
}

.faq summary:hover {
    color: #ff421a;
}

.faq p {
    margin: 8px 0 2px;
    text-align: justify;
}

.pay-widget {
    margin: 16px 0;
}

.stats-graph {
    max-width: 100%;
    height: auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.catalog-series {
    grid-column: 1 / -1;
    margin-top: 14px;
    color: #c96f00;
    font-weight: bold;
}

.catalog-cell {
    position: relative;
    min-width: 0;
}

.catalog-meta {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    pointer-events: none;
    color: #fff;
    font-size: 8.5pt;
    line-height: 1.4;
}

.catalog-torrent {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .62);
    white-space: nowrap;
}

.catalog-card {
    margin-bottom: 18px;
    text-align: center;
}

.catalog-grid .catalog-card {
    margin-bottom: 0;
}

.catalog-card .thumbnail {
    margin-bottom: 0;
    padding: 4px;
    text-decoration: none;
}

.catalog-card .imgblock {
    position: relative;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 4 / 3;
}

.catalog-card .imgblock img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card .imgtext {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    color: #fff;
    font-size: 9pt;
    line-height: 1.2;
    background: rgba(0, 0, 0, .55);
}

.catalog-card .imgtext small {
    font-size: 8pt;
}

.catalog-filter {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #efd8d2;
    border-radius: 4px;
    background: #fafafa;
}

.catalog-filter-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.3;
    color: #222;
}

#sform {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.catalog-filter > label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.catalog-filter > label input {
    margin: 0;
}

.catalog-filter > label input[type="checkbox"],
.search-options input[type="checkbox"],
.search-options input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #4682b4;
    cursor: pointer;
}

.catalog-search {
    margin-top: 16px;
}

.catalog-search .input-group {
    width: 100%;
}

.series-block {
    margin-top: 12px;
}

.alert {
    border-radius: 4px;
}

.catalog-filter + .alert {
    margin-top: 14px;
}

.pagination {
    margin: 16px 0;
}

.pagination-total {
    text-align: center;
    color: #777;
    margin-bottom: 12px;
}

.admin-table td, .admin-table th {
    vertical-align: middle !important;
}

.admin-table th,
.admin-table th a {
    white-space: nowrap;
}

.admin-table .thumb {
    width: 36px;
    height: 27px;
    object-fit: cover;
}

.admin-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 12px 0;
}

.admin-search .admin-search-input {
    width: 300px;
    max-width: 100%;
}

.admin-search .radio-inline {
    margin: 0;
    white-space: nowrap;
}

.admin-search .btn {
    flex: 0 0 auto;
}

.admin-form th {
    width: 170px;
    text-align: right;
    font-weight: normal;
}

.admin-form td {
    text-align: left;
}

.admin-form .admin-input-num,
.admin-form .admin-input-time {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.admin-form .admin-input-num {
    width: 110px;
}

.admin-form .admin-input-time {
    width: 120px;
}

.admin-form .admin-unit {
    margin-left: 6px;
    white-space: nowrap;
}

.admin-form .admin-select-short {
    display: inline-block;
    width: 190px;
    max-width: 100%;
    margin-left: 8px;
    vertical-align: middle;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.admin-pagination .pagination {
    margin: 0;
}

.admin-pagination .pagination-total {
    margin: 0;
}

body.admin-popup {
    padding: 16px;
    background: #fff;
}

body.admin-popup h1 {
    margin-top: 0;
}

.stat-bar {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 30px;
}

.stat-bar span {
    display: block;
    width: 7px;
    background: #789;
    min-height: 2px;
}

@media (max-width: 1199px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-top .navbar-brand img {
        width: 330px;
    }

    .navbar-top .menu {
        gap: 3px;
    }

    .navbar-top .menu > li > a {
        padding: 3px 6px;
        font-size: 10pt;
    }

    .navbar-top .menu img {
        height: 38px;
    }

    .navbar-top .navbar-form {
        flex: 0 0 250px;
        max-width: 250px;
    }
}

@media (max-width: 991px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .navbar-top .container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar-top .navbar-header {
        display: flex;
        justify-content: center;
    }

    .navbar-top .navbar-brand img {
        width: 340px;
    }

    .navbar-top .menu {
        justify-content: center;
        margin: 4px 0 0;
        gap: 8px;
    }

    .navbar-top .menu > li > a {
        padding: 3px 12px;
        font-size: 10.5pt;
    }

    .navbar-top .menu img {
        height: 40px;
    }

    .navbar-top .navbar-form {
        flex: 0 0 auto;
        width: 100%;
        max-width: 520px;
        margin: 8px 0 0;
    }

    .page-ad {
        float: none;
        margin: 0 0 12px;
        text-align: center;
    }

    .mults-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .mults-stage .page-ad {
        grid-area: 1 / 1;
        justify-self: center;
    }

    .mults-stage .mults-player {
        grid-area: 2 / 1;
    }

    .mults-stage .mults-fallback {
        grid-area: 3 / 1;
    }
}

@media (max-width: 719px) {
    .navbar-top .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 10px;
    }

    .navbar-top .navbar-header {
        display: flex;
        justify-content: center;
    }

    .navbar-top .navbar-brand img {
        width: 270px;
    }

    .navbar-top .menu {
        justify-content: center;
        margin: 6px 0 0;
        gap: 2px;
    }

    .navbar-top .menu > li {
        flex: 1 1 0;
    }

    .navbar-top .menu > li > a {
        padding: 4px 2px;
        font-size: 10pt;
    }

    .navbar-top .menu img {
        height: 34px;
    }

    .navbar-top .navbar-form {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin: 10px 0 0;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body {
        font-size: 11pt;
    }

    .footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-links {
        gap: 2px 14px;
        font-size: 9pt;
    }

    .footer-meta {
        width: 100%;
        justify-content: space-between;
    }

    .mults-cover {
        float: none;
        display: block;
        margin: 0 auto 14px;
    }

    .mults-list .mults-year {
        display: none;
    }
}

@media (max-width: 359px) {
    .navbar-top .navbar-brand img {
        width: 235px;
    }
}
