/**
 * AnimeKai inner pages — shared layout.
 *
 * Loaded on every page except the home page, after styles.css/overrides.css.
 * Content is full width (no boxed .container); page-type sheets
 * (watch.css, series.css, browse.css) build on these primitives.
 */

:root {
    --ak-primary: #e45f3a;
    --ak-secondary: #36cb68;
    --ak-bg: #0c1116;
    --ak-panel: #11161b;
    --ak-panel-2: #161c22;
    --ak-line: rgba(255, 255, 255, .06);
    --ak-muted: rgba(255, 255, 255, .5);
    --ak-radius: 1.2rem;
    --ak-gutter: clamp(1rem, 2.2vw, 2.5rem);
}

/* Full-width page body under the fixed header. */
.ak-page {
    width: 100%;
    padding-left: var(--ak-gutter);
    padding-right: var(--ak-gutter);
    margin: 0 auto 3rem;
}

/* Main column + sidebar. Stacks below 1200px. */
.ak-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 2rem;
    align-items: start;
}

.ak-layout > * {
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .ak-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Dark rounded panel. */
.ak-box {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 1.5rem 1.8rem;
    margin-bottom: 2rem;
}

.ak-box > .shead {
    margin-bottom: 1.2rem;
}

/* Brand accents for WordPress-generated markup. */
.ak-inner a {
    transition: color .15s;
}

.ak-inner ::selection {
    background: var(--ak-primary);
    color: #fff;
}

/* Inner pages sit closer under the fixed header than the home hero does. */
#wrapper.inner main {
    margin-top: 7.5rem;
}

@media (max-width: 991.98px) {
    #wrapper.inner main {
        margin-top: 6rem;
    }
}

/* Lightbox markup printed by the legacy gallery stays hidden until opened. */
.blueimp-gallery:not(.blueimp-gallery-display) {
    display: none;
}

/* ---------- comments (shared by every page that calls comments_template) ---------- */
.commentx #submit.ak-send,
.cmt #submit.ak-send {
    background: var(--ak-primary);
    color: #fff;
}

.commentx #submit.ak-send:hover {
    background: #cf512e;
}
.ak-comments .shead,
.ak-recs .shead {
    padding: 0;
}

.ak-comments .shead .stitle,
.ak-recs .shead .stitle {
    font-size: 1.3rem;
}

.ak-count {
    background: #20272e;
    border-radius: .6rem;
    padding: .15rem .7rem;
    font-size: .85rem;
    color: var(--ak-muted);
}

.ak-comments .comment-list,
.ak-comments .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ak-comments .comment-list {
    margin-bottom: 1.5rem;
}

.ak-comments .comment-list .children {
    padding-left: 3.5rem;
}

.ak-comments .comment:before {
    display: none;
}

.ak-comments .comment-body {
    position: relative;
    padding: 1rem 0 1rem 4rem;
    border-bottom: 1px solid var(--ak-line);
}

.ak-comments .comment-author .avatar {
    position: absolute;
    left: 0;
    top: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.ak-comments .comment-author .fn {
    font-style: normal;
    font-weight: 500;
    color: #fff;
}

.ak-comments .comment-author .fn a {
    color: #fff;
}

.ak-comments .says {
    display: none;
}

.ak-comments .comment-metadata {
    font-size: .8rem;
}

.ak-comments .comment-metadata a {
    color: var(--ak-muted);
    text-decoration: none;
}

.ak-comments .comment-content p {
    margin: .4rem 0;
    color: rgba(255, 255, 255, .85);
}

.ak-comments .reply a {
    color: var(--ak-secondary);
    font-size: .8rem;
    text-decoration: none;
}

.ak-comments .comment-awaiting-moderation {
    color: var(--ak-primary);
    font-size: .8rem;
}

.ak-comments .comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ak-comments .comment-navigation a {
    color: var(--ak-secondary);
}

.ak-comments .comment-respond {
    background: var(--ak-panel-2);
    border-radius: 1rem;
    padding: 1.3rem;
}

.ak-comments .comment-reply-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 .8rem;
}

.ak-comments .comment-reply-title small a {
    color: var(--ak-primary);
    font-size: .8rem;
    margin-left: .5rem;
}

.ak-comment-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 .8rem;
}

.ak-comment-form > * {
    grid-column: 1 / -1;
}

.ak-comment-form > .comment-form-author,
.ak-comment-form > .comment-form-email,
.ak-comment-form > .comment-form-url {
    grid-column: auto;
}

.ak-comment-form p {
    margin: 0 0 .8rem;
}

.ak-comments .comment-notes,
.ak-comments .logged-in-as {
    font-size: .85rem;
    color: var(--ak-muted);
}

.ak-comments .logged-in-as a {
    color: var(--ak-secondary);
}

.ak-comment-form input[type="text"],
.ak-comment-form input[type="email"],
.ak-comment-form input[type="url"],
.ak-comment-form textarea {
    width: 100%;
    background: #0c1116;
    border: 1px solid var(--ak-line);
    border-radius: .6rem;
    color: #fff;
    padding: .7rem 1rem;
    font-size: .92rem;
    outline: 0;
    transition: border-color .2s;
}

.ak-comment-form textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.ak-comment-form input:focus,
.ak-comment-form textarea:focus {
    border-color: var(--ak-primary);
}

.ak-comment-form ::placeholder {
    color: rgba(255, 255, 255, .35);
}

.ak-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--ak-muted);
}

.ak-comment-form .comment-form-cookies-consent label {
    margin: 0;
}

.ak-comment-form .form-submit {
    text-align: right;
    margin: 0;
}

@media (max-width: 767.98px) {
    .ak-comment-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .ak-box.ak-comments {
        padding: 1.2rem;
    }

    .ak-comments .comment-list .children {
        padding-left: 1.5rem;
    }

    .ak-comments .comment-respond {
        padding: 1rem;
    }
}

/* Orange action button (comment Send etc.). */
.ak-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: var(--ak-primary);
    color: #fff;
    border: 0;
    border-radius: .6rem;
    padding: .6rem 1.5rem;
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}

.ak-send:hover,
.ak-send:focus {
    background: #cf512e;
    color: #fff;
}

/* Classic AnimeStream "bixbox" panel in AnimeKai colours: smaller radius,
   a header strip with an orange accent bar, then a padded body. */
.ak-bix {
    background: var(--ak-panel);
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.ak-bix-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.2rem;
    border-bottom: 1px solid var(--ak-line);
}

.ak-bix-head h1,
.ak-bix-head h2,
.ak-bix-head h3,
.ak-bix-head h4 {
    position: relative;
    margin: 0;
    padding-left: .8rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.ak-bix-head h1::before,
.ak-bix-head h2::before,
.ak-bix-head h3::before,
.ak-bix-head h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    border-radius: 2px;
    background: var(--ak-primary);
}

.ak-bix-body {
    padding: 1rem 1.2rem;
}

/* WordPress wraps comment meta in <footer>, which picks up the site footer's
   black background and padding from styles.css. */
.ak-comments footer.comment-meta {
    background: none;
    margin: 0 0 .4rem;
    padding: 0;
}

.ak-comments .reply a,
.ak-comments .comment-reply-link {
    color: var(--ak-primary);
}

#comments-box .reply a.comment-reply-link,
.ak-comments .comment-body .reply a.comment-reply-link {
    color: var(--ak-primary);
}
