/* ════════════════════════════════════════════════════════════
   THE CURATED NEGATIVE — MasVideos Global Stylesheet
   ════════════════════════════════════════════════════════════
   
   Targets existing masvideos-* CSS classes from hook-driven
   templates that output their own HTML via do_action() hooks.
   
   Enqueue via functions.php:
   wp_enqueue_style('tdr-masvideos', get_stylesheet_directory_uri() . '/masvideos/custom/tdr-masvideos-global.css');
   ════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────
   1. LOOP CARDS  (all content-*.php / content-*-widget.php)
   ────────────────────────────────────────────────────────── */

/* Card container — output by masvideos_*_class() */
.movie, .episode, .tv_show, .video, .person,
.masvideos-movie {
    background: var(--tdr-surface-container-low);
    border-radius: var(--tdr-radius-lg);
    overflow: hidden;
    transition: transform 500ms ease-in-out, box-shadow 500ms ease-in-out;
    position: relative;
}
.movie:hover, .episode:hover, .tv_show:hover, .video:hover, .person:hover,
.masvideos-movie:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--tdr-on-surface) 12%, transparent);
}

/* Card images — grayscale to color on hover */
.movie .masvideos-LoopMovie-link img,
.movie .masvideos-loop-movie__link img,
.masvideos-movie img,
.episode img, .tv_show img, .video img, .person img {
    width: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 500ms ease-in-out;
}
.movie:hover img, .episode:hover img, .tv_show:hover img, .video:hover img, .person:hover img,
.masvideos-movie:hover img {
    filter: grayscale(0%);
}

/* Card title */
.movie .masvideos-loop-movie__title,
.movie .masvideos-LoopMovie-title,
.masvideos-movie .masvideos-loop-movie__title,
.episode .masvideos-loop-episode__title,
.tv_show .masvideos-loop-tv_show__title,
.video .masvideos-loop-video__title,
.person .masvideos-loop-person__title {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-title-md);
    font-weight: 400;
    color: var(--tdr-on-surface);
    padding: 12px 14px 4px;
    margin: 0;
    line-height: 1.3;
}

/* Card metadata (rating, price) */
.movie .star-rating, .episode .star-rating, .tv_show .star-rating,
.video .star-rating, .person .star-rating,
.masvideos-movie .star-rating {
    color: var(--tdr-primary-container);
    font-size: var(--tdr-label-sm);
    padding: 0 14px;
}
.movie .price, .episode .price, .tv_show .price,
.video .price, .person .price,
.masvideos-movie .price {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    color: var(--tdr-on-surface-variant);
    padding: 4px 14px 12px;
}

/* Card link reset */
.movie a, .episode a, .tv_show a, .video a, .person a,
.masvideos-movie a {
    text-decoration: none;
    color: inherit;
}


/* ──────────────────────────────────────────────────────────
   2. PLAYLIST CARDS  (content-*-playlist.php)
   ────────────────────────────────────────────────────────── */

.masvideos-movie-playlist,
.masvideos-tv-show-playlist,
.masvideos-video-playlist {
    background: var(--tdr-surface-container-low);
    border-radius: var(--tdr-radius-lg);
    overflow: hidden;
    transition: transform 500ms ease-in-out, box-shadow 500ms ease-in-out;
}
.masvideos-movie-playlist:hover,
.masvideos-tv-show-playlist:hover,
.masvideos-video-playlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--tdr-on-surface) 12%, transparent);
}
.masvideos-movie-playlist img,
.masvideos-tv-show-playlist img,
.masvideos-video-playlist img {
    filter: grayscale(100%);
    transition: filter 500ms ease-in-out;
}
.masvideos-movie-playlist:hover img,
.masvideos-tv-show-playlist:hover img,
.masvideos-video-playlist:hover img {
    filter: grayscale(0%);
}

/* Single playlist summary */
.masvideos-movie-playlist .summary.entry-summary,
.masvideos-tv-show-playlist .summary.entry-summary,
.masvideos-video-playlist .summary.entry-summary {
    padding: var(--tdr-space-lg);
    font-family: var(--tdr-ff-body);
    color: var(--tdr-on-surface);
}


/* ──────────────────────────────────────────────────────────
   3. BREADCRUMB  (global/breadcrumb.php)
   ────────────────────────────────────────────────────────── */

.masvideos-breadcrumb {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    color: var(--tdr-on-surface-variant);
    padding: var(--tdr-space-sm) 0;
}
.masvideos-breadcrumb a {
    color: var(--tdr-on-surface-variant);
    text-decoration: none;
    transition: color 350ms ease-in-out;
}
.masvideos-breadcrumb a:hover {
    color: var(--tdr-primary);
}
.masvideos-breadcrumb .breadcrumb-separator {
    color: var(--tdr-outline-variant);
    margin: 0 var(--tdr-space-xs);
}


/* ──────────────────────────────────────────────────────────
   4. TABS  (global/tabs.php)
   ────────────────────────────────────────────────────────── */

.masvideos-tabs {
    font-family: var(--tdr-ff-body);
}
.masvideos-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: var(--tdr-space-lg);
    padding: 0;
    margin: 0 0 var(--tdr-space-lg);
    /* No-Line Rule: no border-bottom on tab bar */
}
.masvideos-tabs ul.tabs li {
    padding: 0;
    margin: 0;
}
.masvideos-tabs ul.tabs li a {
    display: block;
    padding: var(--tdr-space-sm) 0;
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 500;
    color: var(--tdr-on-surface-variant);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 350ms ease-in-out, border-color 350ms ease-in-out;
}
.masvideos-tabs ul.tabs li a:hover {
    color: var(--tdr-on-surface);
}
.masvideos-tabs ul.tabs li.active a {
    color: var(--tdr-primary);
    border-bottom-color: var(--tdr-primary);
}
.masvideos-tabs .panel {
    padding: var(--tdr-space-lg) 0;
    font-family: var(--tdr-ff-body);
    color: var(--tdr-on-surface);
    line-height: 1.7;
}


/* ──────────────────────────────────────────────────────────
   5. NOTICES  (notices/error.php, notice.php, success.php)
   ────────────────────────────────────────────────────────── */

.masvideos-message,
.masvideos-error,
.masvideos-info {
    background: var(--tdr-surface-container);
    color: var(--tdr-on-surface);
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    padding: var(--tdr-space-md) var(--tdr-space-lg);
    border-radius: var(--tdr-radius-md);
    margin-bottom: var(--tdr-space-md);
    list-style: none;
    /* No-Line Rule: use left accent bar instead of border */
    border-left: 3px solid var(--tdr-primary);
}
.masvideos-error {
    border-left-color: var(--tdr-error);
}
.masvideos-info {
    border-left-color: var(--tdr-outline);
}
.masvideos-message a,
.masvideos-error a,
.masvideos-info a {
    color: var(--tdr-primary);
    text-decoration: none;
    font-weight: 600;
}
.masvideos-message a:hover,
.masvideos-error a:hover,
.masvideos-info a:hover {
    color: var(--tdr-on-surface);
}

/* Notice lists */
ul.masvideos-error,
ul.masvideos-message {
    padding-left: var(--tdr-space-lg);
}
ul.masvideos-error li,
ul.masvideos-message li {
    margin-bottom: var(--tdr-space-xs);
}


/* ──────────────────────────────────────────────────────────
   6. SINGLE SUB-TEMPLATES  (attributes, sources, reviews)
   ────────────────────────────────────────────────────────── */

/* Attributes Table (single-*/attributes.php) */
.movie__attributes,
.tv-show__attributes,
.video__attributes,
.person__attributes {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    margin-bottom: var(--tdr-space-lg);
}
.movie__attributes tr,
.tv-show__attributes tr,
.video__attributes tr,
.person__attributes tr {
    transition: background 350ms ease-in-out;
}
.movie__attributes tr:nth-child(even),
.tv-show__attributes tr:nth-child(even),
.video__attributes tr:nth-child(even),
.person__attributes tr:nth-child(even) {
    background: var(--tdr-surface-container-low);
}
.movie__attributes tr:hover,
.tv-show__attributes tr:hover,
.video__attributes tr:hover,
.person__attributes tr:hover {
    background: var(--tdr-surface-container);
}
.movie__attributes th,
.tv-show__attributes th,
.video__attributes th,
.person__attributes th {
    text-align: left;
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px 10px 0;
    width: 140px;
    vertical-align: top;
    /* No border */
}
.movie__attributes td,
.tv-show__attributes td,
.video__attributes td,
.person__attributes td {
    color: var(--tdr-on-surface);
    padding: 10px 0;
    /* No border — No-Line Rule */
}
.movie__attributes td p,
.tv-show__attributes td p,
.video__attributes td p,
.person__attributes td p {
    margin: 0;
}
.movie__attributes td a,
.tv-show__attributes td a,
.video__attributes td a,
.person__attributes td a {
    color: var(--tdr-primary);
    text-decoration: none;
    transition: color 350ms ease-in-out;
}
.movie__attributes td a:hover,
.tv-show__attributes td a:hover,
.video__attributes td a:hover,
.person__attributes td a:hover {
    color: var(--tdr-on-surface);
}

/* Sources Table (single-*/sources.php) */
.movie-sources,
.episode-sources {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
}
.movie-sources thead th,
.episode-sources thead th {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 14px 10px 0;
    text-align: left;
    /* No border */
}
.movie-sources tbody tr,
.episode-sources tbody tr {
    transition: background 350ms ease-in-out;
}
.movie-sources tbody tr:nth-child(even),
.episode-sources tbody tr:nth-child(even) {
    background: var(--tdr-surface-container-low);
}
.movie-sources tbody tr:hover,
.episode-sources tbody tr:hover {
    background: var(--tdr-surface-container);
}
.movie-sources tbody td,
.episode-sources tbody td {
    padding: 10px 14px 10px 0;
    color: var(--tdr-on-surface);
    vertical-align: middle;
    /* No border — No-Line Rule */
}
.movie-sources .movie-source-link,
.episode-sources .episode-source-link {
    color: var(--tdr-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--tdr-label-md);
    transition: color 350ms ease-in-out;
}
.movie-sources .movie-source-link:hover,
.episode-sources .episode-source-link:hover {
    color: var(--tdr-on-surface);
}
.quality-badge {
    background: color-mix(in srgb, var(--tdr-primary) 12%, transparent);
    color: var(--tdr-primary);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-sm);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--tdr-radius-sm);
}

/* Review Comments (single-*/review.php) */
.comment_container {
    display: flex;
    gap: var(--tdr-space-md);
    padding: var(--tdr-space-lg) 0;
    /* No border — use spacing */
}
.comment_container + .comment_container {
    /* No border between reviews — 24px whitespace per DESIGN.md */
}
.comment_container .comment-text {
    flex: 1;
}

/* Review Meta (single-*/review-meta.php) */
.commentlist .meta {
    margin: 0 0 var(--tdr-space-xs);
}
.masvideos-review__author {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-title-sm);
    font-weight: 500;
    color: var(--tdr-on-surface);
}
.masvideos-review__published-date {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    color: var(--tdr-on-surface-variant);
    margin-left: var(--tdr-space-sm);
}
.masvideos-review__awaiting-approval {
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-label-md);
    color: var(--tdr-outline);
    font-style: italic;
}

/* Review Rating (single-*/review-rating.php) */
.commentlist .star-rating {
    color: var(--tdr-primary-container);
    font-size: var(--tdr-body-md);
}
.commentlist .description p {
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    color: var(--tdr-on-surface-variant);
    line-height: 1.7;
    margin: var(--tdr-space-sm) 0 0;
}
.commentlist .comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}


/* ──────────────────────────────────────────────────────────
   7. REVIEWS PAGE  (single-*-reviews.php)
   ────────────────────────────────────────────────────────── */

.masvideos-Reviews {
    font-family: var(--tdr-ff-body);
    color: var(--tdr-on-surface);
}
.masvideos-Reviews .comment-reply-title {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-title-lg);
    font-weight: 400;
    color: var(--tdr-on-surface);
    display: block;
    margin-bottom: var(--tdr-space-md);
}
.masvideos-reviews__title {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-headline-sm);
    font-weight: 400;
    color: var(--tdr-on-surface);
    margin-bottom: var(--tdr-space-lg);
}
.masvideos-Reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--tdr-space-xl);
}
.masvideos-noreviews {
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    color: var(--tdr-on-surface-variant);
}

/* Review Form Fields */
.masvideos-Reviews .comment-form-author label,
.masvideos-Reviews .comment-form-email label,
.masvideos-Reviews .comment-form-comment label,
.masvideos-Reviews .comment-form-rating label {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: var(--tdr-space-xs);
}
.masvideos-Reviews .comment-form-author input,
.masvideos-Reviews .comment-form-email input,
.masvideos-Reviews .comment-form-comment textarea,
.masvideos-Reviews .comment-form-rating select {
    width: 100%;
    padding: 12px 16px;
    background: var(--tdr-surface-container-lowest);
    color: var(--tdr-on-surface);
    border: 1px solid transparent;
    border-radius: var(--tdr-radius-sm);
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    outline: none;
    transition: border-color 350ms ease-in-out, box-shadow 350ms ease-in-out;
}
.masvideos-Reviews .comment-form-author input:focus,
.masvideos-Reviews .comment-form-email input:focus,
.masvideos-Reviews .comment-form-comment textarea:focus,
.masvideos-Reviews .comment-form-rating select:focus {
    border-color: color-mix(in srgb, var(--tdr-primary) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tdr-primary) 8%, transparent);
}
.masvideos-Reviews input[type="submit"],
.masvideos-Reviews #submit {
    display: inline-flex;
    align-items: center;
    gap: var(--tdr-space-sm);
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--tdr-primary), var(--tdr-primary-container));
    color: var(--tdr-on-primary);
    border: none;
    border-radius: var(--tdr-radius-sm);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
}
.masvideos-Reviews input[type="submit"]:hover,
.masvideos-Reviews #submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.masvideos-Reviews .required {
    color: var(--tdr-error);
}
.masvideos-Reviews .must-log-in {
    font-size: var(--tdr-body-md);
    color: var(--tdr-on-surface-variant);
}
.masvideos-Reviews .must-log-in a {
    color: var(--tdr-primary);
    text-decoration: none;
}
.masvideos-Reviews .logged-in-as {
    color: var(--tdr-on-surface-variant);
    font-size: var(--tdr-body-sm);
}
.masvideos-Reviews .logged-in-as a {
    color: var(--tdr-on-surface);
}
.masvideos-Reviews .masvideos-pagination {
    padding: var(--tdr-space-md) 0;
}


/* ──────────────────────────────────────────────────────────
   8. SEARCH FORM  (search-form.php)
   ────────────────────────────────────────────────────────── */

.masvideos-search {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 480px;
}
.masvideos-search .search-field {
    flex: 1;
    padding: 12px 20px;
    background: var(--tdr-surface-container-lowest);
    color: var(--tdr-on-surface);
    border: 1px solid transparent;
    border-radius: var(--tdr-radius-full) 0 0 var(--tdr-radius-full);
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    outline: none;
    transition: border-color 350ms ease-in-out, box-shadow 350ms ease-in-out;
}
.masvideos-search .search-field:focus {
    border-color: color-mix(in srgb, var(--tdr-primary) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tdr-primary) 8%, transparent);
}
.masvideos-search .search-field::placeholder {
    color: var(--tdr-on-surface-variant);
    opacity: 0.6;
}
.masvideos-search button[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--tdr-primary), var(--tdr-primary-container));
    color: var(--tdr-on-primary);
    border: none;
    border-radius: 0 var(--tdr-radius-full) var(--tdr-radius-full) 0;
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 350ms ease-in-out;
}
.masvideos-search button[type="submit"]:hover {
    opacity: 0.9;
}


/* ──────────────────────────────────────────────────────────
   9. PAGINATION  (shared across templates)
   ────────────────────────────────────────────────────────── */

.masvideos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--tdr-space-sm);
    padding: var(--tdr-space-lg) 0;
    font-family: var(--tdr-ff-label);
}
.masvideos-pagination a,
.masvideos-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--tdr-radius-full);
    font-size: var(--tdr-label-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 350ms ease-in-out;
}
.masvideos-pagination a {
    color: var(--tdr-on-surface-variant);
    background: var(--tdr-surface-container);
}
.masvideos-pagination a:hover {
    background: var(--tdr-surface-container-high);
    color: var(--tdr-on-surface);
}
.masvideos-pagination span.current {
    background: var(--tdr-primary);
    color: var(--tdr-on-primary);
}
.masvideos-pagination .dots {
    color: var(--tdr-on-surface-variant);
    background: none;
}

/* Prev/Next buttons (masvideos-button) */
.masvideos-pagination .masvideos-button,
.masvideos-Pagination .masvideos-Button {
    padding: 10px 20px;
    background: var(--tdr-surface-container-high);
    color: var(--tdr-on-surface);
    border: none;
    border-radius: var(--tdr-radius-full);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 500;
    text-decoration: none;
    transition: all 350ms ease-in-out;
}
.masvideos-pagination .masvideos-button:hover,
.masvideos-Pagination .masvideos-Button:hover {
    background: var(--tdr-surface-container-highest);
    color: var(--tdr-on-surface);
}


/* ──────────────────────────────────────────────────────────
   10. MY ACCOUNT  (myaccount/ templates)
   ────────────────────────────────────────────────────────── */

/* Wrapper */
.masvideos-MyAccount-navigation,
.masvideos-MyAccount-content {
    font-family: var(--tdr-ff-body);
    color: var(--tdr-on-surface);
}

/* Navigation sidebar */
.masvideos-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.masvideos-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
}
.masvideos-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: var(--tdr-space-sm);
    padding: 12px var(--tdr-space-md);
    color: var(--tdr-on-surface-variant);
    text-decoration: none;
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 350ms ease-in-out;
}
.masvideos-MyAccount-navigation ul li a:hover {
    background: var(--tdr-surface-container);
    color: var(--tdr-on-surface);
}
.masvideos-MyAccount-navigation ul li.is-active a {
    color: var(--tdr-primary);
    background: var(--tdr-surface-container);
    border-left-color: var(--tdr-primary);
    font-weight: 600;
}

/* Dashboard welcome */
.masvideos-MyAccount-content p {
    font-size: var(--tdr-body-md);
    line-height: 1.7;
    color: var(--tdr-on-surface);
}
.masvideos-MyAccount-content p a {
    color: var(--tdr-primary);
    text-decoration: none;
    font-weight: 500;
}
.masvideos-MyAccount-content p a:hover {
    color: var(--tdr-on-surface);
}

/* Forms (login, register, edit-account, edit-playlist, edit-video) */
.masvideos-form label,
.masvideos-form-login label,
.masvideos-form-register label {
    display: block;
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--tdr-space-xs);
}
.masvideos-form .masvideos-Input,
.masvideos-form-login .masvideos-Input,
.masvideos-form-register .masvideos-Input,
.masvideos-form input[type="text"],
.masvideos-form input[type="email"],
.masvideos-form input[type="password"],
.masvideos-form input[type="url"],
.masvideos-form input[type="number"],
.masvideos-form textarea,
.masvideos-form select {
    width: 100%;
    padding: 12px 16px;
    background: var(--tdr-surface-container-lowest);
    color: var(--tdr-on-surface);
    border: 1px solid transparent;
    border-radius: var(--tdr-radius-sm);
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
    outline: none;
    transition: border-color 350ms ease-in-out, box-shadow 350ms ease-in-out;
}
.masvideos-form .masvideos-Input:focus,
.masvideos-form-login .masvideos-Input:focus,
.masvideos-form-register .masvideos-Input:focus,
.masvideos-form input:focus,
.masvideos-form textarea:focus,
.masvideos-form select:focus {
    border-color: color-mix(in srgb, var(--tdr-primary) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tdr-primary) 8%, transparent);
}

/* Form submit buttons */
.masvideos-form .masvideos-Button,
.masvideos-form-login .masvideos-Button,
.masvideos-form-register .masvideos-Button,
.masvideos-form button[type="submit"],
.masvideos-form input[type="submit"],
.masvideos-Button.button {
    display: inline-flex;
    align-items: center;
    gap: var(--tdr-space-sm);
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--tdr-primary), var(--tdr-primary-container));
    color: var(--tdr-on-primary);
    border: none;
    border-radius: var(--tdr-radius-sm);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
}
.masvideos-form .masvideos-Button:hover,
.masvideos-form-login .masvideos-Button:hover,
.masvideos-form-register .masvideos-Button:hover,
.masvideos-form button[type="submit"]:hover,
.masvideos-form input[type="submit"]:hover,
.masvideos-Button.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Form rows spacing */
.masvideos-form-row {
    margin-bottom: var(--tdr-space-md);
}

/* Remember me checkbox */
.masvideos-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: var(--tdr-space-sm);
    font-size: var(--tdr-body-sm);
    color: var(--tdr-on-surface-variant);
    margin-bottom: var(--tdr-space-md);
    cursor: pointer;
}
.masvideos-form-login__rememberme input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tdr-primary-container);
    cursor: pointer;
}

/* Lost password / create account links */
.masvideos-LostPassword a,
.masvideos-form a {
    color: var(--tdr-primary);
    text-decoration: none;
    font-size: var(--tdr-body-sm);
    transition: color 350ms ease-in-out;
}
.masvideos-LostPassword a:hover,
.masvideos-form a:hover {
    color: var(--tdr-on-surface);
}

/* Register/Login combined form */
.masvideos-form-register-login {
    font-family: var(--tdr-ff-body);
}
.masvideos-form-register-login h2 {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-headline-sm);
    font-weight: 400;
    color: var(--tdr-on-surface);
    margin-bottom: var(--tdr-space-lg);
}

/* Required asterisk */
.masvideos-form .required {
    color: var(--tdr-error);
}

/* Account form headings */
.masvideos-edit-account h3,
.masvideos-edit-playlist h2,
.masvideos-manage-playlists h2 {
    font-family: var(--tdr-ff-headline);
    font-size: var(--tdr-headline-sm);
    font-weight: 400;
    color: var(--tdr-on-surface);
    margin-bottom: var(--tdr-space-lg);
}


/* ──────────────────────────────────────────────────────────
   11. DATA TABLES (manage-playlists.php, videos.php)
   ────────────────────────────────────────────────────────── */

.masvideos-manage-playlists table,
.masvideos-videos-table,
.masvideos-MyAccount-videos {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--tdr-ff-body);
    /* No borders — No-Line Rule */
}
.masvideos-manage-playlists thead td,
.masvideos-videos-table thead th {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px var(--tdr-space-md) 12px 0;
    text-align: left;
    /* No border */
}
.masvideos-manage-playlists tbody tr,
.masvideos-videos-table tbody tr {
    transition: background 350ms ease-in-out;
}
.masvideos-manage-playlists tbody tr:nth-child(even),
.masvideos-videos-table tbody tr:nth-child(even) {
    background: var(--tdr-surface-container-low);
}
.masvideos-manage-playlists tbody tr:hover,
.masvideos-videos-table tbody tr:hover {
    background: var(--tdr-surface-container);
}
.masvideos-manage-playlists tbody td,
.masvideos-videos-table tbody td {
    padding: 12px var(--tdr-space-md) 12px 0;
    color: var(--tdr-on-surface);
    font-size: var(--tdr-body-md);
    /* No border */
}
.masvideos-manage-playlists tbody td a.view,
.masvideos-videos-table tbody td a {
    color: var(--tdr-primary);
    text-decoration: none;
    transition: color 350ms ease-in-out;
}
.masvideos-manage-playlists tbody td a.view:hover,
.masvideos-videos-table tbody td a:hover {
    color: var(--tdr-on-surface);
}

/* Table action buttons */
.masvideos-manage-playlists .masvideos-button,
.masvideos-videos-table .masvideos-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: transparent;
    color: var(--tdr-primary);
    border: 1px solid var(--tdr-outline-variant);
    border-radius: var(--tdr-radius-sm);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-sm);
    font-weight: 600;
    text-decoration: none;
    margin-right: var(--tdr-space-xs);
    transition: all 350ms ease-in-out;
}
.masvideos-manage-playlists .masvideos-button:hover,
.masvideos-videos-table .masvideos-button:hover {
    background: color-mix(in srgb, var(--tdr-primary) 10%, transparent);
    color: var(--tdr-primary);
}
.masvideos-manage-playlists .masvideos-button.delete,
.masvideos-videos-table .masvideos-button.delete {
    color: var(--tdr-error);
    border-color: color-mix(in srgb, var(--tdr-error) 30%, transparent);
}
.masvideos-manage-playlists .masvideos-button.delete:hover,
.masvideos-videos-table .masvideos-button.delete:hover {
    background: color-mix(in srgb, var(--tdr-error) 10%, transparent);
}

/* No-data messages */
.masvideos-Message,
.masvideos-message--info {
    background: var(--tdr-surface-container);
    color: var(--tdr-on-surface);
    padding: var(--tdr-space-xl) var(--tdr-space-lg);
    border-radius: var(--tdr-radius-md);
    text-align: center;
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-md);
}
.masvideos-Message .masvideos-Button,
.masvideos-message--info .masvideos-Button {
    margin-right: var(--tdr-space-sm);
}


/* ──────────────────────────────────────────────────────────
   12. GLOBAL PHOTOSWIPE  (global/photoswipe.php — minimal)
   ────────────────────────────────────────────────────────── */

/* PhotoSwipe uses its own overlay — leave mostly as-is.
   Just ensure the background matches dark mode. */
.pswp__bg {
    background: var(--tdr-surface) !important;
    opacity: 0.95 !important;
}


/* ──────────────────────────────────────────────────────────
   13. VIDEO ARCHIVE — 16:9 LANDSCAPE CARD VARIANT
   ────────────────────────────────────────────────────────── */

/* Video archive overrides for landscape thumbnails */
body.post-type-archive-video .va-card-thumb,
body.tax-video_cat .va-card-thumb {
    aspect-ratio: 16 / 9;
}

/* Duration badge on video cards */
body.post-type-archive-video .va-duration,
body.tax-video_cat .va-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: color-mix(in srgb, var(--tdr-surface) 75%, transparent);
    color: var(--tdr-on-surface);
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-sm);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--tdr-radius-sm);
    backdrop-filter: blur(4px);
}

/* Video archive 3-col grid */
body.post-type-archive-video .va-grid,
body.tax-video_cat .va-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tdr-space-lg);
}
@media (max-width: 900px) {
    body.post-type-archive-video .va-grid,
    body.tax-video_cat .va-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    body.post-type-archive-video .va-grid,
    body.tax-video_cat .va-grid {
        grid-template-columns: 1fr;
    }
}


/* ──────────────────────────────────────────────────────────
   14. PERSON ARCHIVE — PORTRAIT CARD VARIANT
   ────────────────────────────────────────────────────────── */

/* Person archive portrait cards */
body.post-type-archive-person .pa-card-thumb,
body.tax-person_cat .pa-card-thumb {
    aspect-ratio: 3 / 4;
}

/* Person archive 5-col grid */
body.post-type-archive-person .pa-grid,
body.tax-person_cat .pa-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--tdr-space-lg);
}
@media (max-width: 1200px) {
    body.post-type-archive-person .pa-grid,
    body.tax-person_cat .pa-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    body.post-type-archive-person .pa-grid,
    body.tax-person_cat .pa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    body.post-type-archive-person .pa-grid,
    body.tax-person_cat .pa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Person card centered text */
body.post-type-archive-person .pa-card,
body.tax-person_cat .pa-card {
    text-align: center;
}


/* ──────────────────────────────────────────────────────────
   15. SINGLE PERSON — 2-COLUMN PORTRAIT LAYOUT
   ────────────────────────────────────────────────────────── */

/* Person attributes table in global context */
body.single-person .person__attributes th {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: var(--tdr-space-sm) var(--tdr-space-md) var(--tdr-space-sm) 0;
    border-bottom: 1px solid var(--tdr-outline-variant);
    white-space: nowrap;
    vertical-align: top;
}
body.single-person .person__attributes td {
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-sm);
    color: var(--tdr-on-surface);
    padding: var(--tdr-space-sm) 0;
    border-bottom: 1px solid var(--tdr-outline-variant);
}
body.single-person .person__attributes td a {
    color: var(--tdr-primary);
    text-decoration: none;
}
body.single-person .person__attributes td a:hover {
    color: var(--tdr-on-surface);
}


/* ──────────────────────────────────────────────────────────
   16. SINGLE TV SHOW / VIDEO — ATTRIBUTES TABLE
   ────────────────────────────────────────────────────────── */

body.single-tv_show .tv-show__attributes,
body.single-video .video__attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--tdr-space-lg);
}
body.single-tv_show .tv-show__attributes th,
body.single-video .video__attributes th {
    font-family: var(--tdr-ff-label);
    font-size: var(--tdr-label-md);
    font-weight: 600;
    color: var(--tdr-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: var(--tdr-space-sm) var(--tdr-space-md) var(--tdr-space-sm) 0;
    border-bottom: 1px solid var(--tdr-outline-variant);
    white-space: nowrap;
    vertical-align: top;
    width: 140px;
}
body.single-tv_show .tv-show__attributes td,
body.single-video .video__attributes td {
    font-family: var(--tdr-ff-body);
    font-size: var(--tdr-body-sm);
    color: var(--tdr-on-surface);
    padding: var(--tdr-space-sm) 0;
    border-bottom: 1px solid var(--tdr-outline-variant);
}
body.single-tv_show .tv-show__attributes td p,
body.single-video .video__attributes td p {
    margin: 0;
}
body.single-tv_show .tv-show__attributes td a,
body.single-video .video__attributes td a {
    color: var(--tdr-primary);
    text-decoration: none;
}
body.single-tv_show .tv-show__attributes td a:hover,
body.single-video .video__attributes td a:hover {
    color: var(--tdr-on-surface);
}
