.site-title {
    align-items: center;
    display: inline-flex;
    gap: 0.2em;
    justify-content: center;
}

.site-title img {
    height: 1.15em;
    object-fit: contain;
    width: 1.15em;
}

.film-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0 0 1rem;
}

.filter-group {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-label {
    color: #647186;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.1rem;
    text-transform: uppercase;
}

.filter-chip {
    background: #fff;
    border: 1px solid #d6e0e9;
    border-radius: 999px;
    color: #526176 !important;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 650;
    padding: 0.38rem 0.72rem;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip:focus {
    border-color: #0f79af;
    text-decoration: underline;
}

.filter-chip.active {
    background: #172b3c;
    border-color: #172b3c;
    color: #fff !important;
}

.filter-now {
    margin-left: auto;
}

.now-chip {
    border-color: #e0644c;
    color: #b33f2b !important;
}

.affiliate-disclosure {
    color: #555;
    font-size: 0.85rem;
    margin: 0.75rem 0 1rem;
}

.film-listing-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}

.film-list td {
    border-bottom: 1px solid #e8edf2;
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
}

.film-list tr:last-child td {
    border-bottom: 0;
}

.film-summary {
    flex: 1 1 15rem;
}

.film-actions {
    align-items: center;
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
    margin-left: auto;
}

.film-description {
    clear: both;
}

.amazon-video-link {
    align-items: center;
    background: #fff;
    border: 1px solid #bfd3df;
    border-radius: 0.3rem;
    color: #075c80 !important;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.26rem 0.48rem;
    text-decoration: none;
}

.amazon-video-link:hover,
.amazon-video-link:focus {
    background: #eaf6fb;
    color: #075c80 !important;
    text-decoration: underline;
}

.amazon-video-link small {
    font-size: 0.75em;
    font-weight: 400;
}

.watch-on-tv-button {
    background: #fff;
    border: 1px solid #bfd3df;
    border-radius: 0.3rem;
    color: #075c80;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.26rem 0.48rem;
}

.watch-tv-icon {
    border: 1.5px solid currentColor;
    border-radius: 0.12rem;
    display: inline-block;
    height: 0.58rem;
    position: relative;
    width: 0.8rem;
}

.watch-tv-icon::after {
    border-bottom: 1.5px solid currentColor;
    bottom: -0.24rem;
    content: "";
    left: 0.22rem;
    position: absolute;
    right: 0.22rem;
}

.now-marker,
.next-marker {
    align-items: center;
    color: #c64d38;
    display: grid;
    font-size: 0.7rem;
    font-weight: 800;
    gap: 0.55rem;
    grid-template-columns: auto 1fr;
    letter-spacing: 0.06em;
    margin: 0.7rem 0;
    text-transform: uppercase;
}

.now-marker::after,
.next-marker::after {
    border-top: 2px solid currentColor;
    content: "";
}

.next-marker {
    color: #0f79af;
}

.film-progress {
    align-items: center;
    color: #657287;
    display: grid;
    font-size: 0.68rem;
    gap: 0.45rem;
    grid-template-columns: auto minmax(5rem, 12rem) auto;
    justify-content: start;
    margin-top: 0.35rem;
}

.film-progress[hidden] {
    display: none !important;
}

.film-progress-track {
    background: #e3e9ef;
    border-radius: 999px;
    height: 0.25rem;
    overflow: hidden;
}

.film-progress-track > span {
    background: #e0644c;
    display: block;
    height: 100%;
}

.watch-on-tv-button:hover,
.watch-on-tv-button:focus {
    background: #eaf6fb;
    text-decoration: underline;
}

.watch-on-tv-dialog {
    border: 0;
    border-radius: 0.6rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    color: #232323;
    max-width: min(32rem, calc(100% - 2rem));
    padding: 1.25rem 1.4rem;
}

.watch-on-tv-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.watch-on-tv-dialog h2 {
    font-size: 1.35rem;
    margin: 0 2rem 0.8rem 0;
}

.watch-on-tv-dialog p,
.watch-on-tv-dialog li {
    line-height: 1.4;
}

.watch-on-tv-dialog ol {
    padding-left: 1.35rem;
}

.watch-on-tv-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.2rem;
    position: absolute;
    right: 0.75rem;
    top: 0.55rem;
}

.watch-on-tv-done {
    background: #0f79af;
    border: 0;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.watch-on-tv-note {
    color: #555;
    font-size: 0.9rem;
}

.sticky-tools {
    align-items: center;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: flex;
    right: max(0.75rem, env(safe-area-inset-right));
    max-width: calc(100% - 1.25rem);
    position: fixed;
    z-index: 1040;
}

.sticky-share {
    align-items: center;
    display: flex;
    position: relative;
}

.share-toggle {
    align-items: center;
    background: #172b3c;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 0.5rem 1.7rem rgba(20, 43, 65, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.42rem;
    padding: 0.65rem 0.9rem;
}

.share-toggle:hover,
.share-toggle:focus,
.share-toggle[aria-expanded="true"] {
    background: #0f79af;
}

.share-toggle svg {
    fill: currentColor;
    height: 1rem;
    width: 1rem;
}

.share-widget {
    margin: 1rem 0;
    min-height: 2.5rem;
}

.share-dialog {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.7rem 2.4rem rgba(0, 0, 0, 0.3);
    color: #232323;
    max-width: min(40rem, calc(100% - 1.25rem));
    padding: 1.4rem;
    width: 100%;
}

.share-dialog::backdrop {
    background: rgba(0, 0, 0, 0.58);
}

.share-dialog h2 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 2rem 0.45rem 0;
}

.share-dialog p {
    line-height: 1.4;
}

.share-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.2rem;
    position: absolute;
    right: 0.75rem;
    top: 0.55rem;
}

.share-done {
    background: #0f79af;
    border: 0;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.notification-settings-button {
    background: #fff;
    border: 1px solid #bfd3df;
    border-radius: 999px;
    color: #075c80;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.62rem 0.85rem;
    white-space: nowrap;
}

.notification-settings-button:hover,
.notification-settings-button:focus {
    background: #eaf6fb;
    text-decoration: underline;
}

.notification-control {
    margin: -0.35rem 0 0.9rem;
}

.notification-dialog {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.7rem 2.4rem rgba(0, 0, 0, 0.3);
    color: #232323;
    max-height: calc(100vh - 2rem);
    max-width: min(38rem, calc(100% - 1.25rem));
    overflow: auto;
    padding: 1.4rem;
    width: 100%;
}

.notification-dialog::backdrop {
    background: rgba(0, 0, 0, 0.58);
}

.notification-dialog h2 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 2rem 0.45rem 0;
}

.notification-dialog p,
.notification-dialog label,
.notification-dialog span,
.notification-dialog small {
    line-height: 1.4;
}

.dialog-kicker {
    color: #0f79af;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.notification-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.2rem;
    position: absolute;
    right: 0.75rem;
    top: 0.55rem;
}

.notification-dialog fieldset {
    border: 1px solid #dde5ec;
    border-radius: 0.55rem;
    margin: 1rem 0;
    padding: 0.85rem;
}

.notification-dialog legend {
    color: #526176;
    float: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0 0.25rem;
    text-transform: uppercase;
    width: auto;
}

.preference-option {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    margin: 0.35rem 0 0.75rem;
}

.preference-option input {
    flex: 0 0 auto;
    height: 1.1rem;
    margin-top: 0.15rem;
    width: 1.1rem;
}

.preference-option strong,
.preference-option small {
    display: block;
}

.preference-option small {
    color: #6b7789;
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.preference-detail {
    align-items: center;
    color: #526176;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.45rem;
    margin: -0.25rem 0 0.75rem 1.75rem;
}

.preference-detail input,
.preference-detail select {
    background: #fff;
    border: 1px solid #cfd9e2;
    border-radius: 0.35rem;
    min-width: 0;
    padding: 0.42rem 0.5rem;
}

.keyword-detail input {
    flex: 1 1 14rem;
}

.preference-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    font-size: 0.85rem;
}

.notification-save {
    background: #0f79af;
    border: 0;
    border-radius: 0.4rem;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
}

.notification-disable {
    background: #fff;
    border: 1px solid #cfd9e2;
    border-radius: 0.4rem;
    color: #526176;
    cursor: pointer;
    font-weight: 650;
    margin-left: 0.45rem;
    padding: 0.6rem 0.85rem;
}

.notification-status {
    color: #176b57;
    font-size: 0.82rem;
    min-height: 1.15rem;
}

.notification-setup-note {
    color: #6b7789;
    font-size: 0.72rem;
    margin: 0.75rem 0 0;
}

body {
    padding-bottom: 4.5rem;
}

@media (max-width: 480px) {
    .film-actions {
        width: 100%;
    }

    .amazon-video-link,
    .watch-on-tv-button {
        text-align: center;
    }

    .film-filters {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-now {
        margin-left: 0;
    }

    .sticky-tools {
        justify-content: center;
        width: auto;
    }

    .notification-settings-button {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
