
/* TVOTT Story Time – Frontend Custom UI */

body.tvott-story-time-frontend {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: #e5e7eb;
}

.tvott-story-time-main {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.25rem 4rem;
}

.tvott-story-list-header h1 {
    font-size: 2.4rem;
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
}

.tvott-story-list-header p {
    margin: 0 0 1.5rem;
    color: #9ca3af;
    font-size: 0.98rem;
}

.tvott-story-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.tvott-story-search input[type="text"] {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    outline: none;
}
.tvott-story-search input[type="text"]::placeholder {
    color: #6b7280;
}
.tvott-story-search input[type="text"]:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.tvott-story-search button {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #0b1120;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}
.tvott-story-search button:hover {
    filter: brightness(1.05);
}

/* Story grid */

.tvott-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tvott-story-card {
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.98));
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}
.tvott-story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 60%);
    transition: opacity 0.25s ease-out;
    pointer-events: none;
}
.tvott-story-card:hover::before {
    opacity: 1;
}

.tvott-story-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}
.tvott-story-card-title a {
    color: #e5e7eb;
    text-decoration: none;
}
.tvott-story-card-title a:hover {
    color: #fbbf24;
}

.tvott-story-card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.tvott-story-card-summary {
    font-size: 0.9rem;
    color: #d1d5db;
}

.tvott-story-card-read {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    color: #e5e7eb;
    text-decoration: none;
}
.tvott-story-card-read:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Pagination */

.tvott-story-pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.tvott-story-pagination a {
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}
.tvott-story-pagination a:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Single story & chapter */

.tvott-story-single,
.tvott-story-chapter {
    max-width: 780px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.05), rgba(15, 23, 42, 0.98));
    border-radius: 1.5rem;
    padding: 2rem 1.75rem 1.9rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
}

.tvott-story-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.tvott-story-header h2 {
    margin: 0.4rem 0 0.3rem;
    font-size: 1.1rem;
    color: #fbbf24;
}
.tvott-story-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tvott-story-summary {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.92rem;
    color: #e5e7eb;
}

.tvott-story-content {
    margin-top: 1.2rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #e5e7eb;
}
.tvott-story-content p {
    margin: 0 0 0.85rem;
}

.tvott-story-chapter-list {
    margin-top: 1.3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
}
.tvott-story-chapter-list h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}
.tvott-story-chapter-list ol {
    margin: 0;
    padding-left: 1.2rem;
}
.tvott-story-chapter-list a {
    color: #fbbf24;
    text-decoration: none;
}
.tvott-story-chapter-list a:hover {
    text-decoration: underline;
}

/* Chapter nav */

.tvott-story-chapter-nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tvott-story-chapter-nav a {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    text-decoration: none;
}
.tvott-story-chapter-nav a.back {
    border-style: dashed;
}
.tvott-story-chapter-nav a:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

/* Copyright seal */

.tvott-story-footer {
    margin-top: 1.75rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
}
.tvott-story-copyright {
    font-size: 0.78rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Submission form */

.tvott-story-submit-form {
    max-width: 720px;
    margin: 2rem auto;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.05), rgba(15, 23, 42, 0.98));
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem 1.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
}
.tvott-story-submit-form .tvott-field {
    margin-bottom: 1rem;
}
.tvott-story-submit-form label {
    display: block;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    color: #9ca3af;
}
.tvott-story-submit-form input[type="text"],
.tvott-story-submit-form input[type="email"],
.tvott-story-submit-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.9rem;
}
.tvott-story-submit-form textarea {
    resize: vertical;
    min-height: 120px;
}
.tvott-story-submit-form input[type="text"]:focus,
.tvott-story-submit-form input[type="email"]:focus,
.tvott-story-submit-form textarea:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.tvott-story-submit-form input[type="checkbox"] {
    margin-right: 0.4rem;
}

.tvott-story-submit-form button[type="submit"] {
    margin-top: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #0b1120;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-size: 0.82rem;
}
.tvott-story-submit-form button[type="submit"]:hover {
    filter: brightness(1.05);
}

.tvott-story-submit-message {
    max-width: 720px;
    margin: 1.25rem auto;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.8);
    color: #bbf7d0;
    font-size: 0.88rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .tvott-story-time-main {
        padding: 0 1rem 3rem;
        margin-top: 2rem;
    }
    .tvott-story-single,
    .tvott-story-chapter,
    .tvott-story-submit-form {
        padding: 1.35rem 1.05rem 1.5rem;
        border-radius: 1rem;
    }
}
