.tau-wrap {
    --tau-border: #d7dce3;
    --tau-text: #1f2933;
    --tau-muted: #5f6b7a;
    --tau-panel: #ffffff;
    --tau-accent: #d92344;
    --tau-card-red: #ff383c;
    --tau-card-width: clamp(200px, 22vw, 250px);
    --tau-card-radius: clamp(20px, 3vw, 26px);
    position: relative;
    isolation: isolate;
    color: var(--tau-text);
}

.tau-filters {
    position: relative !important;
    z-index: 9999 !important;
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    pointer-events: auto !important;
}

.tau-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px;
    align-items: end;
    max-width: 100%;
}

.tau-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 12px;
    align-items: end;
}

.tau-filters label {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}

.tau-filters input,
.tau-filters select,
.tau-filters button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--tau-border);
    border-radius: 6px;
    background: #fff;
    color: var(--tau-text);
    font: inherit;
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
}

.tau-filters input,
.tau-filters select {
    padding: 0 10px;
}

.tau-filters button {
    min-height: 38px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tau-card-section {
    position: relative;
    z-index: 1;
    margin-top: 34px;
}

.tau-card-section:first-of-type {
    margin-top: 0;
}

.tau-section-title {
    max-width: 748px;
    margin: 0 auto 18px;
    color: #ff8200;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.tau-card-section[hidden] {
    display: none;
}

.tau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--tau-card-width)), var(--tau-card-width)));
    gap: 18px;
    justify-content: center;
}

.tau-card {
    position: relative;
    width: min(100%, var(--tau-card-width));
    aspect-ratio: 25 / 34;
    overflow: hidden;
    border: 0;
    border-radius: var(--tau-card-radius);
    background: #1b1f25;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.tau-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.tau-card-link:focus-visible {
    outline: 3px solid var(--tau-card-red);
    outline-offset: -6px;
}

.tau-card-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tau-card-filter {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.63);
    opacity: 0;
    transition: opacity .22s ease;
}

.tau-card:hover .tau-card-filter,
.tau-card:focus-within .tau-card-filter {
    opacity: 1;
}

.tau-card-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    align-content: stretch;
    height: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: clamp(22px, 3.4vw, 30px) clamp(14px, 2.4vw, 18px) 14px;
    color: #fff;
    opacity: 0;
    transition: opacity .22s ease;
}

.tau-back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #ff8200;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.tau-back-link:hover {
    text-decoration: underline;
}

.tau-detail-shell {
    overflow: hidden;
    box-sizing: border-box;
    width: min(100%, 800px);
    max-width: 800px;
    padding: 12px 20px 64px;
    background: #eeeeee;
    color: #20222a;
}

.tau-detail-intro {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 30px);
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto clamp(6px, 1.2vw, 10px);
}

.tau-detail-cover {
    position: relative;
    align-self: start;
    width: clamp(180px, 24vw, 260px);
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #d9d9d9;
    aspect-ratio: 25 / 34;
}

.tau-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.tau-detail-cover .tau-detail-nsfw-badge {
    position: absolute;
    top: clamp(12px, 4%, 18px);
    right: clamp(12px, 4%, 18px);
    z-index: 2;
    display: block;
    width: clamp(42px, 22%, 58px) !important;
    max-width: 58px !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.tau-detail-header,
.tau-detail-intro,
.tau-detail-info,
.tau-detail-panel {
    box-sizing: border-box;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.tau-detail-header {
    padding: 28px 0 24px;
}

.tau-detail-header h1 {
    margin: 0;
    color: #008bd8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.tau-detail-header p {
    margin: 8px 0 0;
    color: #777;
    font-size: 19px;
    font-weight: 400;
}

.tau-detail h4 {
    color: #fff;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.tau-detail-panel {
    border-radius: 28px;
    background: #fff;
}

.tau-detail-panel + .tau-detail-panel {
    margin-top: 30px;
}

.tau-detail-panel h2 {
    margin: 0 0 8px;
    color: #ff8200;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.tau-detail-synopsis {
    padding: 24px 26px 30px;
    color: #20222a;
    font-size: 17px;
    line-height: 1.3;
}

.tau-detail-synopsis p {
    margin: 0 0 22px;
}

.tau-detail-synopsis p:last-child {
    margin-bottom: 0;
}

.tau-detail-info {
    align-self: start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 5px 34px;
}

.tau-detail-block {
    display: grid;
    gap: 10px;
    align-content: start;
}

.tau-detail-block p {
    display: grid;
    grid-template-columns: 22px max-content minmax(0, 1fr);
    gap: 4px;
    align-items: start;
    margin: 0;
    color: #111;
    font-size: 18px;
    line-height: 1.34;
}

.tau-detail-block strong {
    color: #ff8200;
    font-weight: 600;
}

.tau-detail-block span {
    color: #111;
}

.tau-detail-icon {
    width: 24px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.tau-detail-block .tau-detail-accent {
    color: #008bd8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tau-detail-link-list a {
    color: #008bd8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tau-detail-link-list a:hover {
    color: #006aa5;
}

.tau-detail-trailer {
    padding: 34px 26px 38px;
}

.tau-detail-trailer iframe {
    display: block;
    width: min(640px, 100%);
    aspect-ratio: 16 / 9;
    margin: 28px auto 0;
    border: 0;
}

.tau-detail-more-news {
    margin: 24px 0 0;
    padding: 0 26px;
    color: #20222a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.tau-detail-more-news a {
    color: #008bd8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tau-detail-more-news a:hover {
    color: #006aa5;
}

.tau-card:hover .tau-card-body,
.tau-card:focus-within .tau-card-body {
    opacity: 1;
}

.tau-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.2px;
}

.tau-meta-row strong {
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
}

.tau-meta-row span {
    margin-right: auto;
    white-space: nowrap;
}

.tau-card h4 {
    margin: 0;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.1px;
    text-shadow: 0 13px 19px rgba(0, 0, 0, 0.24);
    overflow-wrap: break-word;
    word-break: break-word;
}

.tau-alt-title {
    margin: 0;
    color: #fff;
    font-family: "SF Pro Text", "Segoe UI", Arial, sans-serif;
    font-size: clamp(10px, 1.5vw, 11px);
    font-style: italic;
    line-height: 13px;
    text-shadow: 0 13px 19px rgba(0, 0, 0, 0.24);
}

.tau-details,
.tau-small,
.tau-tags,
.tau-studio,
.tau-source {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
}

.tau-details,
.tau-small,
.tau-tags {
    display: none;
}

.tau-tags {
    color: #fff;
    font-weight: 650;
}

.tau-studio,
.tau-source {
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(10px, 1.5vw, 11px);
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tau-card-info {
    display: grid;
    gap: 3px;
    align-self: end;
    grid-row: 4 / 6;
    min-width: 0;
}

.tau-nsfw-badge {
    display: block;
    position: absolute;
    top: clamp(12px, 4%, 18px);
    right: clamp(12px, 4%, 18px);
    z-index: 4;
    width: clamp(42px, 18%, 58px);
    height: auto;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.35));
    transition: opacity .22s ease;
    pointer-events: none;
}

.tau-card:hover .tau-nsfw-badge,
.tau-card:focus-within .tau-nsfw-badge {
    opacity: 1;
}

.tau-studio strong,
.tau-source strong {
    font-weight: 400;
}

.tau-score-row {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    align-self: end;
    justify-self: end;
    grid-row: 6;
    min-height: 18px;
    overflow: hidden;
    color: #ff8200;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(10px, 1.6vw, 11px);
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0.2px;
    text-align: left;
}

.tau-score-row strong + strong::before {
    content: "| ";
}

.tau-card:hover .tau-score-row,
.tau-card:focus-within .tau-score-row {
    justify-self: end;
    align-self: end;
    color: #ff8200;
    text-align: left;
}

.tau-trailer {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.tau-trailer:hover {
    text-decoration: underline;
}

.tau-more {
    color: #fff;
    font-size: 13px;
}

.tau-more summary {
    width: fit-content;
    cursor: pointer;
    color: var(--tau-text);
    color: #fff;
    font-weight: 700;
}

.tau-more p {
    margin: 8px 0 0;
    line-height: 1.45;
}

.tau-loading {
    margin: 20px 0 0;
    color: var(--tau-muted);
    pointer-events: none;
}

.tau-modal[hidden] {
    display: none;
}

.tau-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 16, 24, 0.74);
}

.tau-modal-panel {
    position: relative;
    width: min(960px, 100%);
    border-radius: 8px;
    background: #0b1118;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.tau-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.tau-modal-frame {
    aspect-ratio: 16 / 9;
}

.tau-modal-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px 8px 0 0;
}

.tau-modal-link {
    display: inline-block;
    padding: 12px 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.tau-modal-link:hover {
    text-decoration: underline;
}

body.tau-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .tau-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tau-detail-intro {
        grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
        gap: clamp(20px, 3vw, 30px);
    }

    .tau-detail-cover img {
        min-height: 0;
    }

    .tau-detail-header h1 {
        font-size: 34px;
    }

    .tau-detail-info {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .tau-search-row,
    .tau-filter-row {
        grid-template-columns: 1fr;
    }

    .tau-detail-header,
    .tau-detail-intro,
    .tau-detail-synopsis,
    .tau-detail-info {
        width: min(100% - 28px, 1080px);
    }

    .tau-detail-header {
        padding-top: 24px;
    }

    .tau-detail-header h1 {
        font-size: 28px;
    }

    .tau-detail-header p,
    .tau-detail-synopsis {
        font-size: 15px;
    }

    .tau-detail-intro {
        grid-template-columns: 1fr;
    }

    .tau-detail-cover {
        width: min(100%, 260px);
    }

    .tau-detail-cover img {
        min-height: 0;
        aspect-ratio: 25 / 34;
    }

    .tau-detail-trailer {
        margin-left: 14px;
    }
}
